Feed an audio stream into chromium

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Feed an audio stream into chromium

Postby zyfan » Wed Jan 20, 2021 4:55 am

I'm working on a project and need to get chromium audio output data and to feed audio stream back in chromium.
In CEF there is already an AudioHandler API, audio output data can be accessed through this API, which is great.
I was wondering how could I feed audio stream in? Is it possible to implement such a feature?
zyfan
Newbie
 
Posts: 4
Joined: Wed Jan 20, 2021 4:43 am

Re: Feed an audio stream into chromium

Postby magreenblatt » Wed Jan 20, 2021 1:45 pm

What are you intending to do with the audio stream that you feed back in?
magreenblatt
Site Admin
 
Posts: 10939
Joined: Fri May 29, 2009 6:57 pm

Re: Feed an audio stream into chromium

Postby zyfan » Wed Jan 20, 2021 9:21 pm

I would like to bridge the audio io between webpage and a softphone/softswitch system, in an unobtrusive manner. And CEF seems to be a good way to handle this. Not sure about the difficulty of adding such features to CEF. Is there any plan to do this for CEF development team? Or could you please give me some guidance? like the where should I start, etc.
Many thanks.
zyfan
Newbie
 
Posts: 4
Joined: Wed Jan 20, 2021 4:43 am

Re: Feed an audio stream into chromium

Postby magreenblatt » Wed Jan 20, 2021 9:28 pm

You could encode the response as an audio file and feed it back into the browser using standard APIs like Web Audio.
magreenblatt
Site Admin
 
Posts: 10939
Joined: Fri May 29, 2009 6:57 pm

Re: Feed an audio stream into chromium

Postby zyfan » Wed Jan 20, 2021 10:35 pm

Thank you for the rapid reply.
In my case, both audio input and audio output of chromium are realtime streams, it would be impossible for realtime communication if I encode the response as an audio file then feed in. And I can't modify the webpage which the softswitch is bridged with, that's why an unobtrusive way is needed.
zyfan
Newbie
 
Posts: 4
Joined: Wed Jan 20, 2021 4:43 am

Re: Feed an audio stream into chromium

Postby zyfan » Thu Jan 21, 2021 9:17 pm

I'm not so much familiar with the audio system of chromium, so it would be great if you could give me some pointers? Such like where should I start with if I give it a try to implement the feed in api myself.

Thank you so much.
zyfan
Newbie
 
Posts: 4
Joined: Wed Jan 20, 2021 4:43 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 3 guests