@agentproto/voice-groq
Groq provider for @agentproto/voice. Talks to api.groq.com
directly over HTTP; no agent framework is imported.
- STT (file): Whisper on Groq,
POST /openai/v1/audio/transcriptions
(multipart, response_format: "verbose_json"). Default model
whisper-large-v3-turbo; override with stt.modelId. Raw PCM is wrapped in
a WAV container first.
- No streaming STT, no TTS, no realtime: Groq offers none of them through
this API.
openStream throws.
- Diarization is not offered (the endpoint returns no speaker labels).
The key is read lazily from GROQ_API_KEY and is only sent as a bearer
header.
import { createGroqProvider } from "@agentproto/voice-groq"
const groq = createGroqProvider()
const { text } = await groq.stt!.transcribe({ bytes, mimeType: "audio/ogg" }, { language: "fr" })
Tests run against a simulated transport (no network, no key).