Need help to use VAD feature of webRTC in pulseaudio

1,466 views
Skip to first unread message

ABDUL MOIZ

unread,
Sep 6, 2011, 5:22:56 AM9/6/11
to discuss-webrtc
Hi,

Can anybody suggest me how to use VAD(Voice Activity Detection)
of webRTC in pulseaudio (ubuntu 11.04)



Regards,
Abdul Moiz

Henrik Andreasson

unread,
Sep 6, 2011, 7:16:59 AM9/6/11
to discuss...@googlegroups.com
Hi,

the VoECodec:.SetVADStatus() API should do the trick.


FYI - VAD support is independent of the underlying audio layer.

ABDUL MOIZ

unread,
Sep 6, 2011, 8:41:16 AM9/6/11
to discuss...@googlegroups.com
Hi,

        I am doing only audio RTP streaming across the network.I want to enable the parameters like AEC,AGC,Noise suppression,VAD. But I am unable to find proper examples for that.
Can you please tell me where can i find the startup examples (other than the sample peer-to-peer server-client example in getting started guide)

Regards,
Abdul Moiz

Henrik Andreasson

unread,
Sep 6, 2011, 9:56:36 AM9/6/11
to discuss...@googlegroups.com
On Windows you can try the voe_ui_win_test to try out the VQE components (AGC, AEC etc.) in real time.

From command line (works on all platforms), the voe_cmd_test app is a simple application that lets you test the same parts.

ABDUL MOIZ

unread,
Sep 6, 2011, 10:35:14 AM9/6/11
to discuss...@googlegroups.com
hi,

 ok. I have tested and check the VAD funtionality by voe_cmd_test binary. But I want to print message when VAD=1 and during the speak time and silence time. can you please suggest which part of the VAD algorithm code is responsible for that

ABDUL MOIZ

unread,
Sep 6, 2011, 10:43:47 AM9/6/11
to discuss...@googlegroups.com
Hi,

        Ok. I have tested and check the VAD funtionality by voe_cmd_test binary.
But I want to print messages or generate interrupts  (when VAD=1) during the speech time and silence time.
So can you please suggest which part of the VAD algorithm code is responsible which differentiates speech from silence, so that i can generate an interrupt messages (dbus messages) at only speech time.


Regards,
Abdul Moiz

Jan Linden

unread,
Sep 6, 2011, 11:10:35 AM9/6/11
to discuss...@googlegroups.com
What you're looking for is the return value from the VAD algorithm. It should be straightforward to find if you take a look at the code.

Jan.

ABDUL MOIZ

unread,
Sep 7, 2011, 7:33:27 AM9/7/11
to discuss...@googlegroups.com
Hi,

          I have tested with voe_cmd_test binary and got the log in webrtc_trace.txt
In the log I could not find the APIs for VAD like

int RegisterRxVadObserver(int channel, VoERxVadCallback& observer);
void OnRxVad(int channel, int vadDecision);

which I think is required for VAD if I am not wrong.
I searched in code also but could not find that they are being called anywhere.

Can you please help me how VAD is being used in voe_cmd_test example and the called APIs for it.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages