https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can I use different tts or stt
# ❓・ai-evy-support
t
@AI Evy How can I use different tts or stt?
a
Thanks for tagging me @tonny11112. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, Retell AI provides built-in TTS (Text-to-Speech) options that you can configure when creating or updating agents [(1) ]() [(2) ]() [(3) ]() . For TTS configuration, you can set the
voice_id
parameter to choose from available voices . The available voice options include ElevenLabs voices (like
"11labs-Adrian"
) , OpenAI voices (like
"openai-Alloy"
) , and Deepgram voices (like
"deepgram-Angus"
) [(1) ]() [(4) ]() [(2) ]() [(3) ]() . You can also configure
fallback_voice_ids
to use alternative voices when the primary TTS provider experiences outages :
Copy code
javascript
const agentResponse = await client.agent.create({
  response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
  voice_id: '11labs-Adrian',
}) ;
[(2) ]() For STT configuration, you can set the
stt_mode
parameter to either
"fast"
or
"accurate"
depending on whether you want to focus on latency or accuracy [(1) ]() [(4) ]() [(3) ]() . You can also configure the
language
parameter to optimize speech recognition for different languages and dialects . Regarding custom STT/TTS integration, there's a Discord discussion about integrating third-party providers like Reverie for Indic language support [(5) ]() . The suggested approach involves using streaming STT for real-time voice-to-text and plugging it into Retell's pipeline: Audio → Custom STT → LLM → Custom TTS → Retell playback . However, the official documentation doesn't provide detailed instructions for custom STT/TTS integration. For specific implementation guidance on using external STT/TTS providers, I'd recommend checking out these resources: - [Contact Sales]() - [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] List Agents](https://docs.retellai.com/api-references/list-agents) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) [[3] Get Agent](https://docs.retellai.com/api-references/get-agent) [[4] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[5] Integrate Reverie STT and TTS for Indic Language Support](https://discord.com/channels/1186424376300679209/1400343548599079043) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.