AzureSTT
Azure (Cognitive Services) speech-to-text provider. Creates a configured Azure Speech STT provider for use in a voice agent.Constructor
Azure Speech key. Falls back to the
AZURE_SPEECH_KEY env var.Azure Speech region. Falls back to the
AZURE_REGION env var, then 'eastus'.Recognition language code. Default:
'en-US'.Input audio sample rate in Hz. Default:
16000.Enable a phrase list to bias recognition.
Phrases to bias recognition toward.
close
closeEmitter
emit
getRuntimeConfig
listenerCount
off
on
once
onSttTranscript
processAudio
removeAllListeners
streamTranscribe
AzureOpenAISTT
Azure OpenAI speech-to-text provider. Creates a configured Azure OpenAI transcription provider for use in a voice agent.Constructor
Azure OpenAI API key. Falls back to the
AZURE_API_KEY then AZURE_OPENAI_API_KEY env vars, then null.Azure OpenAI resource endpoint. Falls back to the
AZURE_OPENAI_ENDPOINT env var, then null.Azure deployment name. Falls back to the
AZURE_OPENAI_STT_DEPLOYMENT env var, then null.Azure OpenAI REST API version. Default:
'2025-03-01-preview'.Transcription model name. Default:
''.Transcription language code. Default:
'en'.Whether to use streaming transcription. Default:
false.Input audio sample rate in Hz. Default:
48000.Output audio sample rate in Hz. Default:
24000.Optional prompt to bias transcription. Default:
null.Sampling temperature. Default:
null.Response format, e.g.
'json', 'text'. Default: 'json'.Turn-detection mode, e.g.
'server_vad'. Default: 'server_vad'.