linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] get amplitiude of voice in mediastreamer2


From: Rishav Ambasta
Subject: Re: [Linphone-developers] get amplitiude of voice in mediastreamer2
Date: Tue, 23 May 2017 16:15:37 +0530

In 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.
 
Date: 2017-05-04 15:41
Subject: [Linphone-developers] get amplitiude of voice in mediastreamer2
Hi,
       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 Ambasta
Save Plants, Save Life ...

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--
Rishav Ambasta
Save Plants, Save Life ...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]