Your first translated call.
Four steps from a test key to two people talking in different languages. Plan on about ten minutes.
1Get a test key
Create a project in the Console and copy a test secret key. Test keys behave exactly like live keys and are never billed.
export ORZLE_API_KEY=orz_test_sk_...2Create a session
A session holds the participants. Set the customer to auto and ORZLE detects their language for you.
curl https://api.orzletechnology.com/v1/sessions \
-H "Authorization: Bearer $ORZLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connector": { "type": "websocket" },
"participants": [
{ "label": "Agent", "speak_language": "en-IN", "listen_language": "en-IN" },
{ "label": "Customer", "speak_language": "auto", "listen_language": "hi-IN" }
],
"latency_mode": "balanced",
"transcripts": { "enabled": true }
}'3Mint a client token
Browsers and apps join with a short-lived token for one participant, so your secret key stays on your server.
curl https://api.orzletechnology.com/v1/client-tokens \
-H "Authorization: Bearer $ORZLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "session_id": "ses_2Nf8kQ7v", "participant_id": "par_C3d4", "ttl_seconds": 600 }'4Stream audio
Open the participant stream URL from the session response and send audio. Translated audio, transcripts and events stream back. When the call ends you receive a session.ended webhook with usage.