Using Android as Audio Input Output - android

I Have an Android and Windows 7 setup and my audio socket is not functional on my windows 7 machine, I want to use my android as a replacement for my audio socket enabling me to connect external audio devices such as headsets or speaker using Bluetooth or preferably USB connection. Is this possible? I saw some article about using the phone as mic(input), but non so far for using it as input/output.

Install for example JetAudio(with jetCast plugin) on windows 7 device, on jetCast create steam, on Android device you can used already existed radio player or crate your own Online radio streaming app for Android.
Easy way.

Related

Using specific network with libVLC on Android

I'm using libVLC in my Android app to stream video over rtsp from the camera that I'm connected to over WiFi.
In general, streaming works fine, but there seems to be streaming problem if I'm connected do the camera by WiFi (that provides no internet) and also have got mobile data turned on. I use bindProcessToNetwork to make sure that the streaming is done via my WiFi network. On some devices (like Huawei Mate 10 with Android 9) the streaming works ok (it seems to use WiFi and ignore having mobile data on), but on other devices (like Samsung Note 10 with Android 10) when I use new networking API it seems that VLC is trying to connect via the mobile data, and only after some time when it fails it decides to use my camera's WiFi (despite the fact that I used bindProcessToNetwork).
I get an error log
VLC-std: Unable to determine our source address: This computer has an invalid IP address: 0.0.0.0
Suprisingly, it works fine if I connect to my WiFi from the system settings...
I found some comments that media streaming is done in a separate process, and it ignores calling to bindProcessToNetwork but on some devices (and Android versions) is seems to work and on others it does not.
I already asked this question on the Videolan forum, but with no luck.
Is there a way to force libVLC to stream using a specified network?
I don't think LibVLC can do this, and it's a bit out of scope of a multimedia framework.
I would handle this on the app side if I were you, using something like How do I connect to a specific Wi-Fi network in Android programmatically?

Android, AOA2, USB Isochronous Audio Streaming

Using AOA v2 protocol, a android device can output its audio stream to some accessory connected over an USB. But is it possible for the accessory to send over its audio stream to android device so that the android device will act as an USB speaker?
I'm actually planning to write a USB speaker driver using AOA protocol, but I just got stuck here. Because I can make the device initialize in AOA mode, but can't get the endpoints for audio interface. So I kind of leaning towards to believe that audio input to android device isn't possible using AOA. Anyone has any experience with that?
As of Android OS v5, Audio to the device ( Mic use-case ) is not supported, what you can do to achieve what you're trying, is, to use BlueTooth to simulate a headset where you have bi-directional audio.
On Linux you can use the BluZ BT stack ( quite powerful )
On Windows you'll have to implement a BT Profile Driver

Testing Voice Recognition App ~ Audio Out to Mic In Adapter

I'm developing an Android voice recognition app for my master thesis.
The app comes with different algorithms that transcribe voice.
To test which of them works best I want to feed the devices microphone with the same speech sample over and over again. I decided to use an open audio book from http://www.librivox.org.
I need an adapter to feed the audio book into my devices microphone input port since the Android VD (Emulator) does not support microphone input.
I have tested a direct connection:
AUDIO OUT (LAPTOP) ─────┐
├─[SPLITTER]─────HEADSET PORT (Device)
─────┘
* Splitter
This does sometimes work on my Sony Xperia ZL even though the quality is really bad.
I also tried an iRig instead of the splitter - but I think the input for the iRig is only for guitars' line out.
So: Is there a way to feed some audio output to my Android devices microphone input?
Although I didn't manage to feed my real device's mic with audio from my laptop I found a solution.
THE DIGITAL WAY
Step 1: To test my app I now use an Android-x86 in a VirtualBox on Ubuntu.
The Android-x86 is a Cyanogen modded Android 4.4 running on (virtual) machines and has microphone support (contrary to the original Android AVD). I tried this on Windows 8.1 but the mic stayed silent.
Step 2: I have to map my main audio output channel to a virtual audio input (virtual microphone). I mostly followed the instructions of this answer using PulseAudio, PulseAudio Volume Control and the magic command: sudo modprobe snd_aloop
Step 3: Set "Monitor of Built-In Analog Stereo" in PulseAudio Volume Control to standard device. Then set the Host Audio Driver to ALSA and run the machine.
THE ANALOG WAY
However I'm not giving up on the cable thing and will update this answer onSuccess().

Can I use an Android App to behave like an Bluetooth A2DP client? e.i. stream music from my phone to an Android tablet

I'd like to write an Android app that will run Tablet that can connect to my phone using A2DP and stream music from the phone.
The Android tablet will replace my car's stereo and navigation system.
I have already read quite a bit on Android Bluetooth API, I have imported a number of sample apps and more I read more I have the impression that the Android API only allows me to 'send' the music stream and not to 'receive' it as I'd like.
Does anyone have any toughs or ideas on this?
Regards

How to generate a video signal from Android device via USB?

Is it possible to create an application for Android, which can generate a video signal (HDMI or VGA) via USB?
Any Android device has miniUSB port. Theoretically it's possible to create a small commutator device on microcontroller or microscheme, which will be a USB-host for Android device. You'll connect Android device with commutator and then connect commutator with monitor.
For example, the scheme looks like: Android phone -> commutator (USB-host) -> TV/Monitor.
Summary, I need to connect android phone with TV via miniUSB port. I found soft which can use miniUSB -> HDMI cable, but those apps only for Motorolla Droid and HTC Evo.
I'll glad to get links to existing apps or projects on that theme, to info about software generation HDMI-signal and connecting Android devices with another devices.
Thank you and sorry for my bad english!
Not much chance of that working out: lacking an appropriate converter chip there is no way you will be able to generate an HDMI or DVI signal using only the 4 pins on a standard USB or mini-USB port. You will need to look into building a converter box that does the right thing: something like http://wiki.chumby.com/index.php/What_is_NeTV.
Those cables are not doing 'HDMI' generation - basically, some phones use the extended standard which has more than just USB in the socket.
Specifically, OMAP3/OMAP4 based phones (Droid, Evo) have an onboard HDMI/DVI chip - the cable just breaks out the pins.
I'd look at Open Accessory Development Kit for inspirations about what can be done in hardware.

Categories

Resources