Author Message
DroidMan
Joined: May 25, 2018
Messages: 8
Offline
Basically what i want is get audio stream during call and pass it to Google api for speech to text and translation.

Please suggest a way. Thanks
Dmitry_Shikulin
Joined: Dec 20, 2016
Messages: 58
Offline
Hi DroidMan,

As already answered in https://www.devconnectprogram.com/forums/posts/list/22166.page - there is no API which can be used to get audio stream.
The only workaround could be probably using some sniffing tools such as Wireshark - collect and decrypt audio packets in UDP and save as audio file.
But once again there is nothing to do using ClientSDK.

Best regards,
Dmitry
DroidMan
Joined: May 25, 2018
Messages: 8
Offline
Thanks.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
While the capability may not be present in Breeze to replicate an audio stream and send it to an application server for analysis, if the call terminates on a station on Communication Manager, Applications Enablement Services DMCC APIs can be used to access the audio stream and have that RTP packet stream sent to an application server.

Please start with this document if that interests you/meets your needs.
https://www.devconnectprogram.com/fileMedia/download/7eeb6799-15a6-4701-ae96-57d819b482eb
DroidMan
Joined: May 25, 2018
Messages: 8
Offline
Thanks JohnBiggs for your response.

Your solution is helpful..
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
I see you edited out "real time"... I was going to post that the AE Services approach provides real time media stream (within a few hundred ms) of when the speaker spoke. Just like a 'normal' phone call.
DroidMan
Joined: May 25, 2018
Messages: 8
Offline
Yes, Exactly I am looking for realtime media stream. Please Post that will be really helpful. Thanks.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
The document I posted a link to is your best starting point.
https://www.devconnectprogram.com/fileMedia/download/7eeb6799-15a6-4701-ae96-57d819b482eb
Go to:   
Mobile view