prism_09
10/06/2025, 3:11 PMAI Evy
10/06/2025, 3:11 PMAI Evy
10/06/2025, 3:11 PMjavascript
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) ]()
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) ]()
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) ;AI Evy
10/06/2025, 3:11 PMvoice_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)AI Evy
10/06/2025, 3:11 PMAI Evy
10/06/2025, 3:11 PM