![]() |
How to edit audio in a phone call before it's sent over the network
When in a phone call, is there a way to intercept and modify the audio that comes from the phone's microphone before it is sent over the cellular network. Or even change it completely. If it is possible, a lot of apps can be made that use this feature, like an answer machine app and others. Does anyone have a clue? I have a good programming experience but I am still not so familiar with linux.
-----EDIT 19/10/2011 I used pulseaudio's 'pactl list' command to inspect the pulseaudio configuration to find out what happens while in the following cases: - when the phone is idle - playing audio using paplay - within an active call - playing audio and within a call at the same time I reached the following results: - When in a call, the phone application does the following: - it creates a new sink input on the pulse server whose driver is "voice-cs-call-sink-input.c" - it mutes all the sink inputs on the server - it switches the main sink and source's buffers to the "alternative" one. To be specific: for the sink "sink.hw0" and the source "source.hw0" it sets the property "x-maemo.alsa_source.buffers" to "alternative" instead of "primary". What I did was that I made a program that uses the pulseaudio api to unmute the sink inputs. I tested but still no sound other than that of the call. So I thought then that I'd try to change the buffers back to the value "primary" but that's where I got stuck. I use QTCreator for the development. And I made use of the example made by a fine man at http://www.ypass.net/blog/2009/10/pu...-device-lists/. But when it gets to changing the sink or source properties I would need to use the "pulsecore" library. but in no way does my application compile correctly when i include anything from this library. I get all kinds of errors. So what I need now is that someone help me with either a simple project using the pulsecore library( I guess) and doing any simple task that would compile correctly on QTCreator. or provide me with another idea or method to be able to change that property. |
Re: How to edit audio in a phone call before it's sent over the network
Guys,Even tell me if it is ever feasible or not
|
Re: How to edit audio in a phone call before it's sent over the network
It must be feasible, with gstreamer and pulseaudio. But I will not even dare to try...
|
Re: How to edit audio in a phone call before it's sent over the network
Quote:
|
Re: How to edit audio in a phone call before it's sent over the network
Quick reply...
Pulseaudio is so customisable, anything is possible... http://en.wikipedia.org/wiki/Pulseaudio Somebody with experience, give a hint, please! EDIT: Create your own sink and src Route microphone src to your sink Your application takes sound from your sink and outputs it to your src Make all applications use your src instead of microphone src |
Re: How to edit audio in a phone call before it's sent over the network
I meant somebody with experience with gstreamer and\or pulse audio to just tell me the idea of how it should be done or a hint about it.
|
Re: How to edit audio in a phone call before it's sent over the network
Quote:
maybe the guy who made the fm-carkit knows how audio is routed and can give clues to whether or not i can be routed to something else first? |
Re: How to edit audio in a phone call before it's sent over the network
Does the page 8 of the N900 schematics help you answer that question?
http://wiki.maemo.org/N900_Hardware_Schematic |
Re: How to edit audio in a phone call before it's sent over the network
Maybe a beginning at
http://talk.maemo.org/showthread.php...=audio+routing |
Re: How to edit audio in a phone call before it's sent over the network
Quote:
Quote:
Thanks guys for the help. |
All times are GMT. The time now is 15:01. |
vBulletin® Version 3.8.8