After a lot of browsing through the source code of Android I was unable to find any methods that would allow recording from the system audio output. Only recording from the MIC is available.
So do you have any ideas (maybe via NDK) how to make recording possible from other sources (system out audio, FM radio, bluetooth headset)? Is there any way to utilize /dev/audio without rooting the phone?
Related
Hi
I am attempting to implement the Handsfree Device (rather than Hands Free Gateway) profile on the Sensation XE. After a lot of digging around it is apparent that the audio routing supported by Android is not capable of routing a audio to the BT SCO separately from that sent to the local earpiece or speaker.
This makes it impossible to implement a standard Handsfree Device using official (or even internal) Android APIs.
However two further options remain before I give up on this altogether. These are as follows:
1) Modify the BT chipset configuration such that it accepts SCO data over the HCI link (rather than via PCM link from the Audio Codec).
or
2) Modify the Audio Codec configuration such that it directly routes audio from handset local audio devices (mic and earpiece/speaker) to the Bt SCO (rather than routing it to the radio).
To attempt either of these, I need to know what devices are actually used (and ideally how the Audio Codec is wired up).
If anyone knows the answer to either of these questions it would be much appreciated.
Cheers
Robinov
Is there any way of selectively sending audio from different apps to different output streams on an Android pbone?
For instance, I would like to send music from my phone to Bluetooth to be played over my car's audio system while satnav directions are played through my phone's speaker so as not to interrupt the music.
I'm sure it must be possible, but I haven't managed to find any way of doing it.
I am creating an application were I record VOIP call using media recorder, other than Samsung device call get connected audio feed also received at both end and call get recorded with both audio and video. But when comes to Samsung device we are facing problem to record audio stream in recorded call. During our initial finding it was observed that Samsung device does not allow sharing of Mic when it is in use. We had tried with different audio source which are available, if I comment this two lines
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
call gets connected and both user's are able to here each other voice, but with recorded file have only video recorded with no audio.
If i use uncomment above lines then audio feed is not heard during the call but recorded file has both audio and video, hence we came to the conclusion that Samsung device does not allow sharing of mic when is consumed by some other resource.
VOICE_CALL (not working)
MIC (not working)
VOICE_DOWNLINK (not working)
VOICE_UPLINK (not working)
DEFAULT (not working)
CAMCORDER (not working)
VOICE_COMMUNICATION (not working)
VOICE_RECOGNITION (not working)
I had also tried several call recording Audio/Video application some of them are listed below along with the test result
AZ Screen Recorder - Fail
SCR Screen Recorder - Fail
Screen Recorder 5+ - Fail
Background Video Recorder - Fail
Mobizen for Samsung - Fail
Is it possible to share mic in Samsung device when it is already consumed or mic is already in use by any other application ?
Hello,
I have a question is there an option to change audio system codecs? I am not talking about bluetooth codecs but system codecs in general.
My problem is with application Lego Boost. When I play sound it is slooooooooooowed and distorted but only on phones speakers. When I connect any bluetooth earphones sound is ok. Bluetooth uses LDAC so I guess that problem is that OnePlus uses some unsupported by application sound codecs.
Maybe there is some app that can change system sound codecs? I did not found any system settings for that.
I use 10.3.0 Android system.
Thanks in advance.
Hello. I've run into a strange problem on my RN7P (running on latest stable miui 12 release). When I record a video through either the stock camera app or 3rd party camera apps, the left and right channels of the audio get summed to mono. I used to be able to get stereo audio before but suddenly this happened.
I tested the native voice recorder app and that still gives me proper stereo audio with no problem, and so the issue is definitely not with the microphones. This mono audio problem happens only when I record videos.
Is there a setting somewhere that I messed up? There are no audio settings on the stock camera app and in the 3rd party app (Open Camera), I have the audio settings set to stereo which still doesn't work.