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: Fri, 26 May 2017 23:04:46 +0530

Finally! Its working !!!
Was able to get the pcm data and also managed to generate a raw wav file off the 16-bit samples captured at 48kHz.

src/audiofilters/msfilerec.c was a good advice.
Thank You !!


On 23 May 2017 at 17:13, address@hidden <address@hidden> wrote:
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.
 
Date: 2017-05-23 19:15
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
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 ...

_______________________________________________
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]