STT

class pipecat.services.groq.stt.GroqSTTService(*, model='whisper-large-v3-turbo', api_key=None, base_url='https://api.groq.com/openai/v1', language=Language.EN, prompt=None, temperature=None, **kwargs)[source]

Bases: BaseWhisperSTTService

Groq Whisper speech-to-text service.

Uses Groq’s Whisper API to convert audio to text. Requires a Groq API key set via the api_key parameter or GROQ_API_KEY environment variable.

Parameters:
  • model (str) – Whisper model to use. Defaults to “whisper-large-v3-turbo”.

  • api_key (str | None) – Groq API key. Defaults to None.

  • base_url (str) – API base URL. Defaults to “https://api.groq.com/openai/v1”.

  • language (Language | None) – Language of the audio input. Defaults to English.

  • prompt (str | None) – Optional text to guide the model’s style or continue a previous segment.

  • temperature (float | None) – Optional sampling temperature between 0 and 1. Defaults to 0.0.

  • **kwargs – Additional arguments passed to BaseWhisperSTTService.