A web-based chat application powered by Groq's LLM API with audio transcription and text-to-speech capabilities.
/
├── 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
GET /
- Main web interfacePOST /transcribe-audio
- Transcribe audio recordingsPOST /chat
- Send chat messages to Groq LLMPOST /text-to-speech
- Convert text to speechThe application features 19 different PlayHT voices through Groq's API:
GROQ_API_KEY
- Your Groq API keyThis project is based on the original Val Town project by yawnxyz/groqAudioChat, with additional features and improvements including: