|
From: | Rishav Ambasta |
Subject: | Re: [Linphone-developers] get amplitiude of voice in mediastreamer2 |
Date: | Fri, 26 May 2017 23:04:46 +0530 |
You can get more details from follow file:src/audiofilters/msfilerec.c ----> static void rec_process(MSFilter *f)This file defined a filter which get pcm data from a sound card or another filter and copy it to an wav audio file.You can get the data you wantfrom the struct named mblk_t.From: Rishav AmbastaDate: 2017-05-23 19:15Subject: Re: [Linphone-developers] get amplitiude of voice in mediastreamer2In linphone, I basically needed to implement a voice-meter while a caller is spaking during a call, thus needed the amplitude of a input voice.
Thanks for your advice, right now I am able to find the code for getting a reader MSFilter soundread initialized.
Its located in audio_stream_start_from_io function() of audiostream.c in the following line :stream->soundread = ms_snd_card_create_reader(io->input.soundcard); Can you please elaborate the process of getting the raw pcm data from the output pin of soundread ?On 4 May 2017 at 13:39, address@hidden <address@hidden> wrote:1. we can get Amplitude of voice from raw pcm data.2. alsa or oss could output raw pcm data.do like this:recordCard = ms_snd_card_manager_get_default_capture_card( ms_snd_card_manager_get()); msReader = ms_snd_card_create_reader(recordCard); Then raw pcm data could be found in msReader output pin.From: Rishav AmbastaDate: 2017-05-04 15:41Subject: [Linphone-developers] get amplitiude of voice in mediastreamer2Hi,
Given a sampling rate, is it possible to get the amplitiude of the voice, in each sample in mediastreamer2?
If yes, where to look for it?
Regards,Rishav AmbastaSave Plants, Save Life ...
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developer s
--Rishav AmbastaSave Plants, Save Life ...
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone- developers
Save Plants, Save Life ...
[Prev in Thread] | Current Thread | [Next in Thread] |