[Q] How to record Sound with USB Sound Card - Android Q&A, Help & Troubleshooting

I would like to create an app which could record the Sound from the microphone which is plugged into an USB Sound Card.
Like this apps:
USB Audio Recorder
USB Audio Recorder PRO
AudioFi - USB Audio Recorder
I couldn't use this apps because I need to implement some several features. I finished my bachelors degree in informatics.
It is sufficient that the app is only running on Android Lollipop and higher.
I found some sources which handles that topic but I wasn't able to develop such an app.
Could someone please give me an example how to communicate with an Sound Card and how to set the Sample Rate and the Bit depth.
sources:
source.android.com/devices/audio/usb.html
source.android.com/devices/audio/implement.html

Related

Can I use an external mic?

Is it possible for me to use my Sony ECM-MS907 stereo mic with the SGS2 to record high quality live audio, much like I do with my portable mini disc recorder?
http://www.dv247.com/microphones/sony-ecm-ms907-battery-powered-stereo-condenser-microphone--5872
And even if is possible, I'd need some software on the phone to adjust the mic level, and I'd want to be able to have the mic override the built in mic when recording HD video. Basically, I want to record HD video with high quality audio all from the phone instead of recording audio on my minidisc simultaneously while recording video footage and then having the hassle of trying to sync AV afterwards. I somehow don't think it's possible to do what I want on this phone, but it seems some people have had success plugging mics into the iphone via the headphone socket.
i simple search on the xda forum showed me a lot of results
it's better than starting a new thread
click here

[Q] multi-channel USB audio

I'm experimenting with writing an app that uses AudioTrack to play audio (for purposes of testing, sine waves generated within the app) from my Verizon Samsung Galaxy Note II to my ESI U46XL USB audio interface. It works perfectly in stereo mode, but when I initialize AudioTrack with CHANNEL_OUT_5POINT1 and attempt to feed it a 6-channel stream, the sound that plays back doesn't sound anything like that stream.
I'm suspecting that the USB audio driver is the problem, since anything higher-level would also impose its limitations on the HDMI audio, wouldn't it? Google says that "Android 4.1 supports multichannel audio on devices that have hardware multichannel audio out through the HDMI port." But can anyone confirm my suspicion? I was also thinking maybe the 16-bit interleaved PCM format isn't used for > 2 channels, but I've tried every other format I can think of with no luck.
I'm hoping the problem is anywhere except for the USB audio driver, because then I can bypass whatever it is one way or another.

Direct audio streaming/bypassing audio mixer in Android (something like wasapi).

Hi. Is there app or kernel that allows stream audio from certain app, directly to internal DAC, bypassing Android audio mixier? I'm looking for something similar to wasapi plugin for Foobar2k in Windows but for Android. The thing I want to do is to give my audio player exclusive control of h/w audio and block other audio sources to be mixed together.
AudioManager is NOT what I want, because it only mutes all other sources.
My device is Xperia Z3 Compact with Android 5.1.
Thanks for help.
bump
bump
any ideas?

app to route all voice input to primary mic.

Hello,
I have a huawei android using the emui 3.0 and the secondary mic on the phone's fried but primary one (the one underneath the phone alongside USB port) still works so normal voicecalls and recordings are good but when I try and make a video or do a skype/whatsapp videocall the phone stops taking in sound.
Is there an app for routing sound intake to microphones that can divert all the sound input to the primary mic that's still working that way I could use it to record videos and make videocalls. I'd prefer to not root this (I don't think that's even a possibility on this phone) and hopefully an app could resolve it or any other workaround that gets me to start videocalls without having to plugin headphones.
Thank you

Switch/force audio source system-wide or per-app in Android 11

Hello,
I am searching for a solution to switch audio source (microphone) from default to my desired output, per-app or system-wide.
Specifically, I use iRig Stream USB device which is basically a USB DAC device (it captures external audio signal, eg. from a mixer or external microphone and replaces default audio from built-in mic in audio/video apps (e.g. camera app), so it's perfect for live dj sets, facebook, twitch, etc).
While using any of audio recorder apps, audio source is sucessfully switched to USB DAC, but when using Camera apps built-in microphone is used.
Only app that has built-in audio output switch is Open Camera, but it's not as good as stock camera and I also need to go live with specific apps (Facebook, Twitch, etc.)
I found out that there is an app called Lesser AudioSwitch that forces audio to switch to desired output, but as stated by the author, it's not working anymore on A11.
I am currently using Poco X3 NFC, Android 11. rooted. Been switching between ArrowOS, LineageOS and Xiaomi.EU roms but with no luck.
Are there any alternatives or workarounds for this, a standalone app, Magisk module or a script? Thanks in advance.
Check this link. If it can helpful https://t.me/zelosstuff

Categories

Resources