Need help for on the fly recording and playback

49 views
Skip to first unread message

ABDUL MOIZ

unread,
Sep 28, 2011, 9:50:59 AM9/28/11
to discuss-webrtc

Hi,

I am able to run the voe_cmd_test without any problems.
Are there any settings in webrtc so that I can test on the fly
recording and playback on the same system(i.e without the need of
encoding/decoding and RTP packetizing)


Regards,
Abdul Moiz

Magnus Flodman

unread,
Sep 29, 2011, 6:55:20 AM9/29/11
to discuss-webrtc
'VoEFile::StartRecordingMicrophone' and 'VoE::StartRecordingPlayout'
in the VoiceEngine file API can record in raw format and should do
what you're looking for.

See http://www.webrtc.org/reference/webrtc-internals/voefile for more
information.

-Magnus

ABDUL MOIZ

unread,
Sep 30, 2011, 1:54:51 AM9/30/11
to discuss...@googlegroups.com
Thanks for the reply

ABDUL MOIZ

unread,
Sep 30, 2011, 9:42:18 AM9/30/11
to discuss...@googlegroups.com
Hi,

               I have tried those APIs , but the function call is getting failed.

This is what I have tried:

        CodecInst format;
        VoEFile* file = VoEFile::GetInterface(ve);

        format.plfreq = 16000; strcpy(format.plname, "L16");
        if(file->StartRecordingMicrophone("RecordedPlayout16kHz.wav", &format)!=0)
                printf("\nRecording Mic failed\n");
        sleep(10);
        if(file->StopRecordingMicrophone()!=0)
                printf("\nStop Recording failed\n");


Can you please help me in the above issue.
And the above APIs are only for capturing. Are there not any API for playout.


Regards,
Abdul Moiz

Niklas Enbom

unread,
Oct 3, 2011, 8:31:22 AM10/3/11
to discuss...@googlegroups.com
voe_auto_test has test cases for these calls that you should be able to use as a starting point.

Niklas
Reply all
Reply to author
Forward
0 new messages