-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi, I’m Sanjay.
I’m working on inbound audio streaming for my AI calling agent. The audio input is working correctly, but the audio output is not. I'm sending audio output JSON packets to the WebSocket using μ-law encoding at an 8000 sample rate, but the receiver isn't getting any audio. I identified the issue as being on Plivo's side. I also tried using a different codec, such as X-L16 with the same sample rate, but it still didn’t work. Here is my output packet code:
payload = base64.b64encode(audio).decode("utf-8")
data = {
"event": "playAudio",
"media": {
"contentType": "audio/x-mulaw",
"sampleRate": 8000,
"payload": payload
}
}
websocket.send(json.dumps(data))Please review this and let me know if I have made any mistakes
Metadata
Metadata
Assignees
Labels
No labels