[Q] A way of streaming audio from microphone over Wi-Fi - Android Q&A, Help & Troubleshooting

General discussion > Questions and Answers > [Q:Android] A way of streaming sound from microphone over Wi-Fi
^ If the question could be removed from the general discussion, that would probably be ideal. I humbly appologize for misplacing it, won't happen again. ​
Hey there, how's your day going?
Now, this is not a can-it-be-done kind of question, because the IP Webcam app already does just that - it exposes the audio from microphone via http on localhost:8080/audio.wav and .ogg for anyone to access.
The thing is that the app also does a pleyhora of other things - most notably video streaming, which makes the app one hell of a bad boy when it comes to battery consumption. And not only that, the audio streaming - as implemented - is severely delayed and the format / compression used can't really be adjusted to alleviate that issue, which in turn renders it impossible to turn the droid into a remote microphone (which would be an awesome thing to do ).
And since I don't think the author has ever released a source code (I stand to be corrected), I'm asking whether there is an app dedicated just and only to audio streaming (obviously couldn't find any, hence I'm asking) or whether I'll have to act a dev once again.

Related

[Q] Netflix still working? Video out to Pioneer deck? GPS? Other Misc Issues

1. I haven't seen anything posted but I could have sworn there was a link somewhere to a modified flash player that allowed netflix to work on the TB?
2. Also is there ANY WAY to get Netflix, Pandora, or ANY application to do video output to any Pioneer deck?
If not, OK, is there a way to use the TB or ANY android phone as a GPS nav with a Pioneer for example? The deck connects to an ipod/iphone directly and allows you to output video from apps including MotionX GPS which works great!
3. Verizon is the FIRST provider I have been with that has had this issue but if you are on the phone with two people and try and end one call it actually kills both calls and SOMETIMES redials the last person you were speaking to. It doesn't always work unforunately. They claim it affects all phones but the iPhone 4 I have I haven't had that issue on. I was on with tech support for over an hour trying to get them to understand the problem, then they acknowledged it was a defect in the phone that was not fixable. THEN they said it was a network limitation with Verizon.
Thanks in advance for any answers.
bumpity bump

[Q] usb dac/usbhost

Hey all. I want to use a USB DAC on my prime, I know its not possible on the stock prime, but I would be willing to unlock/root to do it. I've rooted android devices before, but its been a purely "paint by numbers" affair for me. I see people talking about things in the dev threads that go way over my head. Does anyone know a good rom I can use that will give me USBHOST functionality to use a DAC, or failing that could someone somehow customize the ability to do so into the rom?
I am an audiophile, and the primes onboard DAC makes my ears want to bleed and my sr225i's want to melt. And please dont try and tell me to get beats audio, or some other software EQ mod, I'm tired of people being like "HURR DURR GET BEATS AUDIO/DSP AUDIO", while they listen to music on their cheap skullcandy headphones. Sorry, didnt mean to rant. I just really dont want to buy an ifad but it is looking like that is the only option.
Anyway... I just need a stock/bloatware removed rom (a little overclocking wouldent hurt either), with the ability to rock a USB DAC. I tried using the search function but there wasnt really any informative answers out there, which is truely disconcerting. I am really at a loss for what to do here.
So no one has any info on a usb audio enabled rom/kernal? No other audiophiles here? Dissapointing.
It might get support when we are updated to Jellybean. See here:
from Wikipedia (http://en.wikipedia.org/wiki/Android_version_history)
4.1 June 27, 2012
Vsync timing across all drawing and animation done by the Android framework, including application rendering, touch events, screen composition and display refresh
Triple buffering in the graphics pipeline
Enhanced accessibility
Bi-directional text and other language support
User-installable keyboard maps
Expandable notifications
Automatically re-sizable app widgets
Bluetooth data transfer for Android Beam
Offline voice dictation
Improved voice search
Improved camera app
High resolution contact photos
Google Now
Multichannel audio[68]
USB Audio (for external sound DACs)
Audio chaining (also known as gapless playback)

[Q] Route audio from media out to mic. in internally

Hi,
First time posting here, but not new to rooting and flashing. All thanks to xda and it's user.
So, I want route the audio coming out from phone's speaker/headphone or w/e output device to microphone internally.
For example,
If my friend is listening to a song and he calls me and asks which song is this, I want to able to route the audio to Shazam or Soundhound without the use of another device (although that's not the reason for the problem)
Anothe example is, Whatsapp. Lets say I am listening to a song (locally on device or on a radio app in my cell), I want to able to use that quick audio message button in Whatsapp to record that song, internally, so if there bunch of people in the car, their sound doesn't get recorded.
And I can think of tonnes of situations where this could be used like when you are talking to someone on phone, use song/sounds/audio phrases direct from phone. Like a using some famous/quote but instead of you quoting them, using the actual person's sound from your local storage/youtube or any other audio app storage. Using sound effects, all internally. You can get so creative.
And this is something that is done by music producers all the time, routing audio and play it with recorded audio, but all done with hardware. It could be easily done using software or hardware on a computer.
I thought of using the 3.5 audio jack with mic to route the audio using wire by connecting them but I would require that special hardware (modded 3.5 jack wire) all the time and won't really help other people much. A software solution would be a lot more helpful.
I did try using this app, called SoundAbout to fix my problem but it didn't help much, or maybe I was doing something wrong.
ps. This is the 2nd time I am writing this lol. First time xda logged me out and I lost the whole thing. Would be nice if there was a app (for windows) that would copy any text written in any dialog box automatically (just like autofill feature but for larger text fields) and keep updating it on the fly. For example, text in the Title box gets copied in the app after each character punched with 5 histories. Same goes for Message box. In case of Firefox crash or accidental refresh or like in my case getting logged out, there is text stored in another app that can be retrieved. I am sure there are solutions used by devs. as they do tonnes of coding. Please share you thoughts.
Also please feel free to give any advice regarding right category, title, tags etc. so that this thread is organized and easily searchable.
I am searching for solution too. Some professionals are needed to check on these:
1. https://github.com/jurihock/voicesmith solving to step between the mic & audio feed processing
2. `system/ect/mixer_paths.xml` file can be hacked (maybe alter in some devices)?
3. This is just for more understanding: https://developer.android.com/guide/topics/media/sharing-audio-input
Did you figure it out? Are there not any Chinese or Russian apps that will bypass this restriction?

Bluetooth and system notification sounds

I know we had this issue before, and I don't want to revive old hostilities. I'd like to make this clean and objective discussion.
As you probable know by now, some time ago Google have decided to make android phones play *any* sound to *any* connected BT device, no matter if those devices are capable of playing those sounds or not, and no matter if the users are using (wearing) those devices or not. And this results, for example, in missing text messages, when your head phone is still switched on but you're not wearing it. It also will interrupt your favourite song that you're listening to on your car's radio, with a loud and nasty sound over your car's speaker. And it will also keep you from hearing medical alarm signals if your head phone is in your pocket.
As far as I know, this change in BT behaviour was introduced somewhere between Android 7 and Android 8 (LOS 14 and LOS 15), and as far as my programming knowledge goes, it should be possible to reverse these changes, to make a phone play system sounds over the phone's speaker, while music and calls are still routed to a paired and active BT devices.
So, my questions are these:
What is the big advantage of the present BT behaviour compared to the old behaviour?
How much work or effort would it take for LOS developers to re-code the BT behaviour from LOS 14 back into LOS 17 and above?
If you need help: how can normal people like me with no big development skills help you with this? Would it be a question of money?
How much (in)stability would current and future LOS versions gain through the necessary changes?
Would making these changes be illegal in any way? Would Google sue LOS developers, or would Google send their Men In Black, if LOS developers dared to undo Googles decision?
Although I do not understand the cleverness behind Google's decision, and frankly, no one I talked to about this did understand it, I'd rather make this a discussion about the possibility to undo these BT changes. It would be very obliging to get some useful answers to these questions. Thanks in advance!
Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
I can't for the life of me understand why anyone would want it this way. I, for one, see notifications and media audio as separate things that serve different purposes. I regularly pull out my bluetooth earbuds or turn off my bluetooth-linked hi-fi system without remembering to disconnect them at my phone. It's one thing if I go to youtube or play music and can't hear it because of this, but another thing entirely to miss a day's worth of notifications.
A lot of people have been really vocal about this -- just read some of the stories -- but these devs are so sure of themselves that they won't even offer a toggle setting for this. I'm tired of the arguing... LineageOS is free software and I'll patch and build it to suit my needs. But like you, I am not an Android developer, and I don't even know where to start to look for what controls this. I'm sure it's just a couple of lines tucked away in some file, but all I can do is ask, please, for someone out there with greater skills than me to show me what to change!
So I've been digging into the source but it's really above my head... seems like there must be a config file or set of constants somewhere. I'll keep digging and share if I find anything.
Another approach that seems possibly doable is an app that routes the notification sounds through the alarm stream. I have a calendar app that is configured to sound through the alarm stream and that sounds the way I want -- through both the device speakers and any bluetooth or wired headphones.
Sorry about the delay:
htsmi said:
Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
Click to expand...
Click to collapse
The answers given by Google's team are living arrogance, a disgrace to themselves and an insult to the users!
Any (good) news on this subject?

Forcing calls to go through A2DP in Android, while using the phone's built-in microphone.

Hello,
This issue has been driving me insane. It seems like some simple, artificial limitation that no one seems to circumvent. As the title suggests, I'm trying to force phone calls and especially VoiP calls (Discord, whatsapp..etc), to go through the high bitrate A2DP profile instead of the horrible HSP/HFP profile that butchers audio quality and uses the horrible bluetooth microphone.
For instance when music is streamed through a bot in Discord i have to listen to it in horrible earpiece-level phone call quality.
I feel like there's got to be a tweak, a Magisk module, a custom ROM functionality with root access that allow for this, something.. I found a couple old XDA posts about this but no solutions. Oh and also tried Lesser AudioSwitch on multiple Android versions, none worked.
It seems inherent to all bluetooth headphones which is a shame, they could cost 10k $, but the quality would still be sh*t in calls, both in and out, since mic is not close to the mouth.
I always loved Android for giving users more control, but sadly seems like this is more and more going away. What i want here, can very easily be done on PC.
Thank you for your time reading, really hope someone can help.

Categories

Resources