Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [android-audiorecord]

Questions related to audio recording in Android. For issues not so closely related to Android, use [audio-recording] tag.

android-audiorecord
0 votes
1 answer
21 views

Using Android's MediaRecorder with a Bluetooth Microphone

Problem I am unable to get Android's MediaRecorder to record audio from a connected Bluetooth microphone. Instead audio recordings use the device's inbuilt microphone Question Has anyone found a ...
RatherBeSailing's user avatar
0 votes
0 answers
17 views

Why the time obtained from AudioTimestamp() is always 6ms earlier than the time obtained from SystemClock.elapsedRealtimeNanos()?

I'm working on recording Android phone audio and its timestamp. The sampling rate is 11025 Hz and 16 bits. I read the timestamp right after audioRecord.read() by both SystemClock and AudioTimestamp(). ...
Aria_Z's user avatar
  • 13
0 votes
2 answers
118 views

How to enable echo-cancellation on Android Voip App?

My Voip App is using OpenSL/ES(Android NDK API) for the microphone and speaker control. But echo canceller doesn't work on this App. When I call, I hear an echo. I am investigating that how to enable ...
Toshi's user avatar
  • 1
0 votes
0 answers
55 views

Detect the voice of multiple person speaking

I want to create an Android application that, when I use my own TTS (Text-to-Speech) function to speak, listens to the surrounding sounds and triggers an event when it detects someone else speaking. ...
叶辰哲's user avatar
0 votes
0 answers
71 views

How to avoid audio output switching from remote_submix to speaker when the microphone is turned on?

Background I have two Android phones. One is the Server and the other is the Client. I can flash my own images on these two phones by modifying the aosp source code. So I can record from device ...
sysescool's user avatar
0 votes
1 answer
43 views

MediaRecorder incorrect bitrate in output file?

I'm trying to understand how bitrate works in MediaRecorder I have set for example 192 kbps: MediaRecorder.setAudioEncodingBitRate(192000) but when I retrieve the bitrate from MediaStore (or from any ...
user924's user avatar
  • 11.1k
0 votes
1 answer
71 views

Audio recording from BT device (car radio/head unit) can cause automatic phone calls?

In the latest update (which was recently) for one of my app (a video recorder) for Android smartphones I have added an option to record audio from a connected BT device. It can be done with the ...
user924's user avatar
  • 11.1k
0 votes
0 answers
92 views

How to use audio/WebRtcAudioRecord rather than voiceengine/WebRtcAudioRecord

The WebRTC project has two WebRtcAudioRecord classes, one in the audio package, which is a new implementation, and another in the voiceengine package, which is an old implementation. I don't know how ...
zhou yi's user avatar
0 votes
1 answer
361 views

Can not record during calls

I'm using React Native to implement an Android app that helps us record outgoing calls. After the user types a phone number and clicks call, I start Recorder and then navigate the user to the phone ...
Hao.Le's user avatar
  • 188
0 votes
0 answers
58 views

Getting Error -38 during AudioRecord native read and AudioSystem.INVALID_OPERATION

I am trying to pass audio packets to the VoIP server through the DatagramPacket, This is my class for Audio Streaming When we are trying to call audioRecorder.Read() function then every time getting &...
user21005291's user avatar
0 votes
0 answers
58 views

ContentResolver.insert() creates audio file of "audio/aac" mime type with .aac extension instead of .m4a

The following codec creates audio file for AAC codec with .aac extension filename - audio.aac instead of audio.m4a: val contentValues = ContentValues().apply { put(MediaStore.Audio.Media....
user25's user avatar
  • 3,095
1 vote
1 answer
206 views

Audio recording silenced upon Play Store app installation

I am using library for screen video and audio recording in my react native app. I run into an issue where also maintainer has no clue what is going on. Library: HBRecorder Issue : HBRecorder Android ...
rkenan's user avatar
  • 13
1 vote
2 answers
60 views

Audio record glitchy audio

I'm using AudioRecord class to record internal audio. Sometimes this code works and records the audio perfectly but sometimes it is glitchy. I tried different record techniques but none of them worked ...
AllahinAskeri's user avatar
0 votes
0 answers
20 views

Buffering Android AudioRecord read with System.arraycopy

Description: I'm doing some realtime-ish audio processing on Android. Mic audio is 1.) immediately looped back to playback device, and 2.) accumulated in a buffer that is periodically sent to server ...
Jimbro's user avatar
  • 19
0 votes
1 answer
205 views

Kotlin - Encoding Raw PCM data to ACC encoded using Media Codec and Muxer

Hi guys so I'm trying to encode the pcm audio received from android audiorecorder into aac encoding using Media Codec (The reason is I need both the raw pcm data but I also want to save it into a m4a ...
Hannes Bezuidenhout's user avatar

15 30 50 per page
1
2 3 4 5
23