[Top][All Lists]

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

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

From: address@hidden
Subject: Re: [Linphone-developers] get amplitiude of voice in mediastreamer2
Date: Tue, 23 May 2017 19:43:15 +0800

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 want from the struct named mblk_t.
From: Rishav Ambasta
Date: 2017-05-23 19:15
To: linphone-developers
Subject: Re: [Linphone-developers] get amplitiude of voice in mediastreamer2
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
       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?

Rishav Ambasta
Save Plants, Save Life ...

Linphone-developers mailing list

Rishav Ambasta
Save Plants, Save Life ...

reply via email to

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