sagar_67805
08/04/2025, 8:02 AMAI Evy
08/04/2025, 8:02 AMAI Evy
08/04/2025, 8:02 AMAI Evy
08/04/2025, 8:02 AMAI Evy
08/04/2025, 8:02 AMsagar_67805
08/04/2025, 8:05 AMAI Evy
08/04/2025, 8:05 AMAI Evy
08/04/2025, 8:06 AMcreate-web-call
2. The access token is used to start the call with retellWebClient.startCall()
The documentation mentions that "if you do not start the call within 30s obtaining the access token, we will invalidate it and the call will be marked with error" , which suggests there's some time-sensitive processing happening.
When starting a call, the SDK allows optional configuration that might affect initialization time :
javascript
await retellWebClient.startCall({
accessToken: createCallResponse.access_token,
sampleRate: 24000, // (Optional) set sample rate of the audio capture and playback
// (Optional) device id of the mic.
captureDeviceId: "default",
// (Optional) device id of the speaker
playbackDeviceId: "0ec1807fd0fe6e51b990660ec4e2ebb78sdfcba51e279815d00c423ce03407ff",
// (Optional) Whether to emit "audio" events that contain raw pcm audio bytes represented by Float32Array
emitRawAudioSamples: false,
}) ;
The 5-second initialization delay you're experiencing isn't specifically addressed in the available documentation. For targeted assistance with this specific SDK initialization issue:
- Visit [Contact Sales]()
- Visit [)
Would you like a general answer based on my knowledge instead?AI Evy
08/04/2025, 8:06 AMAI Evy
08/04/2025, 8:06 AM