https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i find the voice id
# ❓・ai-evy-support
p
@AI Evy how do i find the voice id
a
Thanks for tagging me @prism_09. I'll look through relevant sources and get back to you shortly.
### Answer There are several ways to find voice IDs in Retell AI: 1. List all available voices using the API: [(1) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const voiceResponses = await client.voice.list() ;
console.log(voiceResponses) ;
This will return all voices with their
voice_id
,
voice_name
,
provider
, and other details . 2. Get details of a specific voice if you know the ID: [(2) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const voiceResponse = await client.voice.retrieve('11labs-Adrian') ;
console.log(voiceResponse.provider) ;
3. Find the voice ID from an existing agent: [(3) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
The agent response will include the
voice_id
field showing which voice the agent is using . As mentioned in the Discord discussion, you can also export an agent from the dashboard to see its voice ID [(4) ]() . Voice ID formats: - ElevenLabs voices use the format:
11labs-[VoiceName]
(e.g.,
11labs-Adrian
) [(2) ]() [(1) ]() - OpenAI voices use the format:
openai-[VoiceName]
(e.g.,
openai-Alloy
) [(5) ]() - Deepgram voices use the format:
deepgram-[VoiceName]
(e.g.,
deepgram-Angus
)
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.