Probably an unusual request, but here goes...
I'm trying to create a script (ideally in Python, but open to other options) that will stream an mp3 file from a computer to an Android Phone's microphone input. I guess this would require exposing the computer to the phone as a USB microphone, then playing the mp3 file out of that sound device. I can play the mp3 via sounddevice easily enough but don't know where to start setting the phone's mic input as a sound output or vice-versa. I wondered about ADB or something like that, but am well out of my depth now.
Basically I have some voice recordings that I'd like to put into a voice changer app, but the app can only record from the microphone and doesn't have an option to change pre-recorded files.
Maybe someone's seen or done something like this before?
Related
I'm trying to use a Samsung Galaxy S6 Edge Android 5.1.1 (rooted) as an basic audio/video live stream equipment but I can't route audio from an external USB card Behringer UCA202 Class Compliant 1.0 to default phone camera application.
Default camera app has the option to create a live event on Youtube and works great, but unfortunately only can get audio from internal speaker as I expected. The sound card is working and I can get sound using others audio record apps.
Any option to change default Audio Input from internal mic to USB Audio IN? Maybe AlsaMixer is the way to go? I look for some kind of virtual mixers on PlayStore but unsuccessfully.
The only post I see asking something similar is this one:
Change Android Audio Record Default Input Source
but it's from three years ago :(
I want to ask you if there is an API that plays a sound file (mp3,...) instead of microphone or change the input from microphone to speaker like stereo mix on windows .
I think you're looking for this question:
Stream audio to a phone call Android
Summary: You need to be rooted if you want to achieve that
I am trying to investigate if it is possible to get hold of audio stream on android device (for example android tv) which I can use for some purpose from inside my app (my app can be system app). Lets say something is playing on an android device (it could be anything that use the audio part of an android device). From my application , I would like to intercept the audio stream to analyze it, to record it, etc.
Any advice is appreciated.
This seems like the simplest question, but all my attempts have been unsuccessful, and all my searching has been unhelpful.
I like to make custom voicemail greetings. Rather than simply talk into the mic like most people, I like to record into a quality mic, process them, add effects, etc and save them as a MP3 or WAV.
The problem is, the only way I've found so far to transfer the greeting to my phone, is to call my voicemail and when recording the greeting, hold the phone up to my pc speakers. Obviously the quality loss is tremendous.
I thought I should be able to just plug a cable from the headphone jack of my pc, into the audio jack of the phone, and play it directly into the phone when the voicemail is recording, however I've tried tons of cables and tons of software and can't get it to work.
Is there any way to play an audio file directly into the phone, to record the voicemail greeting? Phone is a galaxy S1, carrier is Tmobile.
I want to make an app that makes it possible to connect an iPod or mp3 player to my Android device and let the Android speakers function as external speakers.
The ideal situation would be to actually read from speaker output so I can connect a stereo mini jack cable.
Is it possible to read from the headset output with the Android SDK?
A second option would be to use a mono mini jack instead. I could maybe directly read from microphone and output as a music player. Although, having to use a mono mini jack would be a huge disadvantage, because most people don't own such a cable.
UPDATE
For my second option I found this link that would let me take a special adapter onto a stereo cable so the iPod output can go into the mic input. It's a TRRS adapter. This works, but still isn't the ideal solution to me. http://www.techlife.net/2012/12/add-an-audio-input-to-android.html
ANOTHER UPDATE
I did a test with only a mono cable, but it seems that the mic is not recognized, so I really need the TRRS adapter to make sure that the mic is on. I found some apps that can help me with measuring input volume. I think I can achieve my goal for myself with the adapter, but reading from headset output would be nicer and could actually result in building an app.
You need to understand some basic things...
Audio output lets you "take audio out of your device".
It's not audio input that would let you "insert audio signal into your device".
So the concept that you've presented cannot work, because this socket is not able to receive audio signal through normal stereo jack cable (and connector).
You could try to make it work with a device that supports the headphones/mic set (it's a different kind of 3.5 mm jack connector). It's so called TRRS (four-conductor). But to use it in your project you probably would need some cable/socket soldering and maybe even some sort of microporcessor to help processing the signals.