Writing an android application which will allow users to play music and record to that music. I've been using media player to play the background track and MediaRecorder to record in a background thread. When recording I get my voice from the mic and the output from the headphones. Is there a way to stop the output stream from being recorded as well? I'm using a 2012 Galaxy Nexus phone to test this.
I was using headphones with try connector which I think was the culprit. I tried with a regular trs connector and I only received the microphone feed.
Related
I'd like to create an App that plays an audio file/stream to the microphone to allow a video communication App to capture the sound as input.
To Play the Audio I'm currently using the AudioTrack class.
The closest question is this one, but still unanswered.
I am building an app in which I am attending meeting and I am using library HBRecorder
to record screen, I am able to record both audio and video when using phone's speaker and wired headphones, but problem comes when I use bluetooth headphones, while using bluetooth headphones I am able to record my voice but the other person voice is not getting recorded who is in meeting with me.
Any help appreciated
I tried all possible audio input sources for HBRecorder, like DEFAULT, MIC, and CAMCORDER but none worked for me using bluetooth headphones
hbRecorder!!.setAudioSource("CAMCORDER")
I want to record user's singing for karaoke. I used audio recorder API of android to record audio. My requirement is to record only user's singing for karaoke, I do not want karaoke getting mixed with user's singing. So I used ear phone to listen to karaoke and record user's singing through ear phone. My problem is, in some of the device karoake gets mixed with users singing. Also audio quality is very bad. I'm using MIC audio source with 8000 frequency and channel in mono. I got little success with audio source camcoder but recorded audio is of low quality. Is there any way to improve audio quality? Also is camcoder is supported in all device? Is there any other way to record only users singing?. Your response will be helpful. Thank you.
I'm developing a sort of alarm clock application and I need to play my sound specifically through the phone audio and not through Bluetooth. (I learned this the hard way as I missed all three of my set alarms this morning because the alarms played through my Bluetooth headset)
How can I play a sound that only plays through phone audio and not Bluetooth?
I had similar requirement when user select an option, i need to play audio from speaker. so i changed audio stream type to ring like mp.setAudioStreamType(AudioManager.STREAM_RING) and it worked. Hope this works for you too. (NOTE: some phones have limitation that audio is played from both speaker and bluetooth)
Is it possible to record sound from android device's sound.
I mean.
Android record their sound itself.
or
Android Self Recording. ???
See MediaRecorder here and AudioRecord here
I have tried them both. I managed to record mic's input, but it didn't work for recording a VoIP call...