How to change the audio output of an application - Android - Xposed Framework Modules

Hello! . I want to change the audio output of any application to a specific one such as multimedia, ringtone, or notifications.
My example is that youtube audio output is executed in multimedia, so if I put some audio in the browser, it will interrupt youtube, because the browser also runs in multimedia, instead if it is executed as a notification, the audio of Youtube would not stop.
Is there any application in playstore or xposed module that configure the audio output of each application?.
Thanks.

Related

[Q] Sound redirection

Hello
I have a car sound system that includes bluetooth support. When I do a phone call, the system mutes FM, or switches MP3 player to pause, and pushes the voice call to loudspeakers.
I have a problem with all GPS software: they put sound out to media stream. Media stream can be read by my sound system, but only when ... reading media stream. When sound system is configured to play radio from FM, or read MP3, it iwll ignore media stream from BT.
=> I need to redirect, on phone side, either, all media stream, or, all stream from selected softwares (Gmap, Navigation, ABE, Trapster ... ) to, either Ring stream, or VoiceCall stream.
Are there existing apps doing this ?
Does kernel support dmix ? I know what I need can be done on a desktop Linux using Alsa-Dmix
For those who did not know there are several sound streams on their phones, install from Market any Volume Control application ... (I prefer the one with a blue circle logo).
I have installed LinuxInstaller, and run things in the background. I am looking at ALSA ATM. I have all Linux options in hand, but I am not sure Alsa can be managed via chroot; and I am not sure Dmix is supported anyway ...
Tanks for help.
Please use the Q&A Forum for questions Thanks
Moving to Q&A

Downmix to mono audio (for headphones) possible?

I have an .avi file with a 5.1 audio stream, but the stream is messed up - most of the sound is coming out of the FR channel, because it was improperly encoded from a mono or stereo source. I can watch the video ok on a pc if I use gomplayer and set up AC3 decoder to downmix to mono - the audio from all channels is mixed and played through L and R channels of headphones.
The Question is:
Does android have an app or a plugin to downmix to mono audio, for Nexus 7?
I know Voodoo control panel can do this, but it doesn't work with N7.
I also tried a number of players -
mx player, mobo player pro, moboplayer, dice player, vplayer, rock player lite, bs player. There may have been a few more I don't recall at the moment.
None of these players have the option to downmix to mono.
Can anyone help please?
Thanks.
Forgive me, I'd like to bump the thread to see if anyone knows of a more elegant solution.
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
edditnyc said:
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
Click to expand...
Click to collapse
How does choosing one of the Virtual Room Effect options downmix the sound to monaural? And which option does downmix to mono?
*bump*
I too would love mono mix sound!
Stereo-to-mono effect on Windows PC and Android
First of all, a free audio-player app called AIMP on Google Play, Android, has a Settings -> Sound -> Output -> "Mix to mono" setting, which will be useful for this need.
Secondly, while I don't know which Android app he's talking about, edditnyc is most probably right, because on a Windows PC, and depending on the sound card, you can right-click the speaker icon in the system tray (bottom right corner), click Playback devices, right-click Speakers, click Properties, click the Enhancements tab (if it doesn't exist then perhaps the sound card doesn't support the feature or the latest drivers for the sound card aren't installed), scroll down and tick Headphone Virtualization. And while this does not downmix stereo or others channels to mono, it does something that emulates this effect of mixing stereo to mono on the PC; it allows you to hear sounds that are originally only playing on the left speaker, for example, on the right speaker. And to the best of my knowledge, this should work with all sound that plays from any program on the computer, including audio players, video players, and games.
Hope this helps those who need this for technical issues or for unilateral hearing loss, at least until Microsoft and Google start to recognize this need in their accessibility settings.

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?

Sound detection library for android without using mic

I am creating an android application that plays a beep sound whenever it detects a pre-defined sound. In another way, I have three drum/piano/vocal sequence mp3 file with me which is stored along with the apk assets. After installation, the three files moved to the internal memory. Whenever I play any audio/video in any of the video/audio player(eg:youtube/vlc) on my mobile, if the music sequence of the playing audio matches any of the already stored three mp3 files, Then a beep sound should produce. This is my aim. But I am hard to find such a library to compare music that is playing inside the mobile with another app. Google assistant and Shazam app just listen to audio from the mic and compare the audio. But in my case, I need to compare audio which is the playing device itself.
Note: The app will be running 24X7 by listening to the sounds played on the device. This application is not intended to build an unethical product. This is used for an industrial purpose.
If somebody needs more clarification, I will update the question

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