388 questions
1
vote
0
answers
75
views
Android AudioRecord read method returns 0 when not on foreground
We've got an android application which records sound in a foreground service. Everything works as expected (AudioRecord initialization, audio recording, processing...) until restart of the device.
...
0
votes
0
answers
81
views
How to save PCM file and play its audio at the same time?
I made a recorder that has also a playback function (for birding, basically). It captures audio with AudioRecord. While recording, it saves a PCM file (the capture process and save of the PCM are ...
0
votes
0
answers
193
views
Audio Recording with Android OS 14 Not working Properly
I am using Audio Recorder for Record Audio up to Android OS 13 it was working fine but with Android OS 14, it is not working properly.
Basically inside the application User records audio for 15 ...
2
votes
0
answers
185
views
Android Capacitor Plugin > releaseBuffer: mUnreleased out of range, !(stepCount:480 <= mUnreleased:128 <= mFrameCount:1440), BufferSizeInFrames:1440
Hello ladies and gentleman, could I please ask for little assistance here? I'm not really good with Android development and trying to create Capacitor plugin that streams audio recorded from mic over ...
0
votes
0
answers
116
views
Android native code not creating AudioRecord on Asus Tinkerboard 2S
I am trying to use Picovoice on the Tinkerboard 2S and I am getting these logs when trying to initialise a process
2023-10-20 20:58:02.838 282-520 AudioFlinger audioserver ...
0
votes
1
answer
169
views
Android Java sound recorded with AudioRecord has noise when played
I'm recording voice using AudioRecord, send it to server, receive it on both Android and Web. On Android, I'm playing the audio using AudioTrack, and there's a "tttttt" noise. On web, such ...
1
vote
2
answers
93
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 ...
1
vote
1
answer
527
views
sample android phone mic using AudioRecord with Beeware
Beeware makes accessible the android.media classes MediaPlayer,Media.Recorder and AudioRecord from Python script and I already managed to play and record audio on galaxy23 with Beeware. However ...
1
vote
1
answer
239
views
AudioRecord read() does not return same amount of bytes as requested in sizeInBytes
I have built voice recording feature in my app and have launched it in production for few months. From error logs, I have found that sometimes, the read() method in AudioRecord will return different ...
2
votes
1
answer
548
views
Android: Record and Playback audio from different devices
I'm trying to record and play audio using different devices with AudioRecord and AudioTrack and setting preferredDevice to set the devices to each.
audioRecord = AudioRecord(
...
1
vote
0
answers
1k
views
Android audioRecord to wav without saving as File (Kotlin)
I'm using AudioRecord to record an audio. What I need is to save the recorded audio as one Array/Variable in a playable format (wav).
I need to use AudioRecord because parallel to getting the audio I ...
1
vote
0
answers
115
views
Android: record audio produced by my application
I write a Android plugin for Unity3d which can record sound produced by the plugin's client (Unity3d game).
Android has AudioRecord API which I assume can accomplish the task. The problem, however, is ...
0
votes
1
answer
2k
views
Samsung phone will not allow Audio Recording at lock screen
I have an application that uses the microphone to allow a user to interact with the device. I am able to user AudioRecord to get a recorder, and this works great. My issue is that if the Samsung ...
1
vote
0
answers
65
views
How to add delay to a placback in Android
The idea: I am trying to do an application like speech jammers. In theory when you listen yourself with a delay, you cant be able to speak properly.
So i am recording input from mic then playing it ...
5
votes
1
answer
9k
views
Is there any way to determine which mic of Android phone is being used for recording?
I have been working on a VoIP application (usually operated in speaker mode). The problem I am facing is that the behavior of audio recording is quite different for different models of smartphones.
...