Android webrtc audio recording with native api

1,891 views
Skip to first unread message

Dalibor Zdravkovic

unread,
Oct 13, 2016, 12:30:51 PM10/13/16
to discuss-webrtc
I'm using android native webrtc library with java jni wrappers in my android application.

Is there any way to connect android android.media.AudioRecord object with local or remote webrtc audio source or audio track to record audio data in some buffer for further processing eg. saving in file or analyzing etc. 

Akshay Shah

unread,
May 18, 2017, 1:05:43 AM5/18/17
to discuss-webrtc
Did you find a way to do this?

minhtri...@gmail.com

unread,
Nov 24, 2018, 5:03:54 AM11/24/18
to discuss-webrtc
https://github.com/zjr84/AppRTCMobile?fbclid=IwAR0FsHmvbEZuyqYn2M48WUIOC2lQV5Ll8vtY8mg6IkC8g_vqiUHR71qIk_U

Vào 23:30:51 UTC+7 Thứ Năm, ngày 13 tháng 10 năm 2016, Dalibor Zdravkovic đã viết:

Henrik Andreasson

unread,
Nov 26, 2018, 4:04:01 AM11/26/18
to discuss...@googlegroups.com
You can add a SamplesReadyCallback to the AMD builder to get a callback with a copy of recorded audio samples.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/d741d308-71c7-48c2-83e8-34a4b482c818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Henrik Andreasson

unread,
Nov 26, 2018, 4:09:27 AM11/26/18
to discuss...@googlegroups.com
The AppRTCMobile demo supports recording to file here. You must also create and inject the ADM according to the sample.

Anand Forex

unread,
Mar 10, 2019, 4:57:28 AM3/10/19
to discuss-webrtc
Hi how we can do local audio recording.

anto gian

unread,
Dec 3, 2019, 2:42:19 AM12/3/19
to discuss-webrtc
What do you mean by "AMD builder"?

Henrik Andreasson

unread,
Dec 3, 2019, 4:04:12 AM12/3/19
to discuss-webrtc
I meant the ADM (Audio Device Module) builder. The callback for recorded audio samples is added to the builder here.

See this article for details on the Builder design pattern in Android.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

Henrik Andreasson

unread,
Dec 3, 2019, 4:08:55 AM12/3/19
to discuss-webrtc
(correction) The callback is called onWebRtcAudioRecordSamplesReady
Reply all
Reply to author
Forward
0 new messages