Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Visitor
Posts: 1
Registered: ‎03-02-2014
My Device: Q10

Is there a way to capture AND modify the incoming audio waveform of a call on-the-fly before sending to earpiece, speaker, etc.?

Hi, I'm new at app development (but with experience in coding). There's an idea I have been thinking about for a while and I've recently started researching what BB10 provides in terms of core APIs that can allow me to do what I want. Basically, I want to intercept the "incoming" audio waveform during a call and modify it on the fly before sending it back on its original path to the output (earpiece, speaker, etc). In essence, what I want to do is something similar to the echo or noise cancellation available via the audio library (see snd_pcm_open_name).

 

Now, I've looked carefully through the Phone and Audio APIs in the native SDK, but I found nothing that could allow me to capture AND modify or overwrite the call audio itself in real-time before being played at output . I could theoretically capture the incoming call audio, modify it and play it separately, but that would be in parallel with the original call process, and hence, either one of two undesriable scenarios would presumably take place, either:

(a) the builtin phone's call waveform will take precedence and block or override playing my modified waveform on the same output "device" (earpiece, speaker, etc.), or

(b) maybe there is a way to allow playing both waveforms simulatenously, which is still bad.

The problem with these scenarios is that, as far as I could tell, there is no way to block the original waveform itself of the ongoing call.

 

I would really appreciate it if the experienced guys here can provide feedback. To summarize the question, is there a way to capture AND modify the incoming audio from an ongoing phone call on-the-fly, thereby overriding the default process of playback of the original waveform?

 

Amr

Highlighted
Developer
Posts: 16,999
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Is there a way to capture AND modify the incoming audio waveform of a call on-the-fly before sending to earpiece, speaker, etc.?

no
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter