FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
dcm31

dcm31

groqAudioChat

Project created from val URLs
Public
Like
groqAudioChat
Home
Code
5
handlers
4
ui
5
README.md
H
groqAudioChat
H
index.ts
Branches
4
Pull requests
Remixes
1
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
3/26/2025
Viewing readonly version of refactor-multifile branch: v18
View latest version
README.md

Groq Audio Chat

A web-based chat application powered by Groq's LLM API with audio transcription and text-to-speech capabilities.

Features

  • Chat with the Llama-3.3-70b-versatile model through Groq API
  • Audio input via microphone (speech-to-text)
  • Text-to-speech output for AI responses
  • Concise mode for shorter responses
  • Toggle TTS on/off

Project Structure

/
├── index.ts                 # Main entry point
├── handlers/                # API endpoint handlers
│   ├── index.ts             # Exports all handlers
│   ├── audio.ts             # Audio transcription handler
│   ├── chat.ts              # Chat completion handler
│   └── tts.ts               # Text-to-speech handler
└── ui/                      # UI components
    ├── index.ts             # Exports all UI components
    ├── html.ts              # HTML template
    ├── styles.ts            # CSS styles
    ├── tailwind.ts          # Tailwind configuration
    └── alpine.ts            # Alpine.js code

API Endpoints

  • GET / - Main web interface
  • POST /transcribe-audio - Transcribe audio recordings
  • POST /chat - Send chat messages to Groq LLM
  • POST /text-to-speech - Convert text to speech

Environment Variables

  • GROQ_API_KEY - Your Groq API key

Technologies Used

  • Hono - Lightweight web framework
  • Alpine.js - Front-end JavaScript framework
  • Tailwind CSS - Utility-first CSS framework
  • Groq API - LLM provider with Llama-3.3-70b-versatile model
  • Groq Whisper API - Audio transcription
  • PlayHT (via Groq) - Text-to-speech synthesis
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.