Kwint wrote: > Hi, Jaroslav > > I've already posted message to sipxtapi dev forum about call recording. > As I can understand, using your patch I can record audio from microphone. > I suggested, that it is better to record preprocessed by speex library sound, > in mpSpeexPreProcess for example, because, when using > sipxAudioSetNoiseReductionMode the other side will hear denoised sound, but > we will get noisy WAV file. So, when recording denoised audio we will have > exact conversation copy in WAV file. > I'm not sure if my point of view is right... Alexander Chemeris told, that > it's a strange idea to record denoised sound :/ > > What do you think about that ? > > Regards, > Kwint > <--------------------===================================--------------------> > DELFI mail pašto sistema http://www.mail.lt > > Hi
I don't know whether you know about this picture: http://sipx-wiki.calivia.com/index.php/SipXmediaLib It shows a so called flowgraph - which is made of resources which process frames. Flowgraph does topological order of these resources and executes methods in these resources to process frames. These resources should be unaware of the architecture outside of them and should have a simple function - for example one does splitting, other one does mixing, another recording. Therefore you shouldnt record anything in mprSpeexPreProcess. You can add a recorder to it if you want. This picture of flowgraph isnt complete, it doesnt show where the recorders are attached. My call recording patch records audio from mic after MprMixer that is on the mic side of flowgraph, this way you get sound that was preprocessed by speex just like you wanted. You also get any DTMF you send to the other party, and hear any files you decide to play to them. 2nd input is whats going out of MprBridge into MprMixer on the speaker sound, so you also hear the sound from the other party. My patch causes sipxtapi to record to PCM WAV file not RAW WAV like it was before. Jaroslav Libak _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
