How can we send audio back to Genesys via WebSocket?
I'm using the Azure TTS service, and after generating the audioData, I convert it to a Uint8Array before sending it to Genesys. However, during a call, the audio I hear is distorted. To troubleshoot, I wrote the audioData to a file, and it played back clearly.
Yes, I am receiving the audio buffer from Genesys and successfully performing speech-to-text . However, for Azure STT to function, you’ll need to convert the audio buffer you receive into one of the formats supported by Azure Cognitive Services.
Hi , thank you for your response, just would like to check which runtime env that you were using because when i try using nodejs it doesnt work to convert the mulaw format to PCM
So can you please let me know to which format you have converted and if possible can you please provide any reference.
Hi @imran , thank you for answering and it was helpful, but can you also please provide any TS reference for speech to text in handling streams of audio buffer data that was getting from audio connector .
Hey @varun , it seems like you're having a tough time figuring this out. I think you need to specify the audio format for the input stream you're creating recognizer with Azure STT.
I am seeing that Genesys drops the Websocket connection after open event. Wondering if this could be the cause. @imran Are you aware if Genesys has an error log where I can see what could be wrong with my Audio Connector server?
@spaliwal Genesys will close the socket connection if it does not receive a response from the server. To keep the connection alive, you should at least respond to ping messages or send some audio data.