Just formatted my mac and installed android studio along with Genymotion, Virtual box and the shell required. Now that I am working on a video player I found that not a single device is able to produce audio only video works. Can anyone please help me with this issue? Earlier( before formatting) it was working fine also I have already tried changing Host audio driver and Audio Controller from the Virtual Box for each device.
That's probably a known bug on VirtualBox. I advise you to test with VBox 5.0.28, the audio should be working well.
Related
there.
I'm using Genymotion for test.
I'm developing an android application.
This application can make a sound.
then
I tried to test my android application.
But,it would not make a sound.
My environment is Macbook.
and
Virtual box is 5.1.
and
VMDevice is Google Nexus 4 with API level 22.
this would not make any sound even if i could change the volume of sound on genymotion.
And my virtual device setting is here.
In genymotion FAQ page,
https://www.genymotion.com/help/desktop/faq/
What are the VirtualBox versions compatible with Genymotion?
5.1+ versions are not recommended as they lead to sound issues
To run virtual devices, you must install Oracle VM VirtualBox 5.0.28.
Genymotion might run with older versions but we cannot guarantee it.
so you should use version 5.0 or older to get sound working
It takes me a long time, finally got the answer.
Several versions of VirtualBox are known to cause issues in Genymotion.
For Genymotion to run properly, make sure you have the right version of VirtualBox installed:
Mac OS X: 5.0.26 (a sound issue prevents version 5.0.28 to run properly)
Windows: 5.0.28
Linux: 5.0.28
In any case, do not use versions 5.1.x, as they are known to cause sound issues and in some cases prevent Genymotion to start.
For me, setting the sound effects destination in the Sound setting did the trick. You have to open the emulator after setting the destination.
Huge thanks to https://stackoverflow.com/a/40007818
I also had no sound when using Windows 10 1709, VirtualBox 5.1.26 and Genymotion 2.11.0.
I noticed this line in VBox.log:
Audio: Skipping to create input stream "[LUN#0] ac97.mc", as the host
audio backend reached its maximum of concurrent audio input streams
What solved my no audio issue was to activate the "Stereomix" in the recording devices in Windows Sound settings. For an unknown reason this was deactivated.
I cannot get sound working in the emulator in Android Studio. It's not my code as it's a very simple example program to demonstrate the MediaPlayer that works fine on an actual device.
On the emulator in Android Studio there is absolutely no sound, not even system sounds. Is this an Android/Android Studio bug? Or could it be the configuration of my particular system? Windows 10 issue?
Anyone else having this problem? Any solution other than using a real device or Genymotion (which I've never used) ?? Thanks.
EDIT: The only way I can get the emulator in Android Studio to start with audio is to launch it from the terminal with both the "-no-snapshot" and "-no-snapshot-load" options. And this only works about 80% of the time. It has something to do with snapshots. There are a couple of old questions on this but no solutions.
it seems that the problem has something to do with the emulator api so changing the emulator api solved it for me and I guess it will do for you.
Try to open your Oracle VM Virtualbox. Go to Settings -> Audio -> Host Audio Driver and change it to PulseAudio.
Let me know if it helps.
In Android Studio, click the Volume Up button (doc).
I have already searched a lot for an answer over the internet such as this question, but didn't found an answer.
I want to record my Android device's screen connected to computer via USB for some kind of automation thing. I found here that Google has created an utility for this but only for versions starting from KitKat.
Are there any other possible utilities or scripts for Windows computer through which I can achieve what I want to do? It should save the resulting video file either on my device or my computer on which it is connected to.
P.S.- I also found that this can be somehow achieved by using javacv library. But i was unable to compile and run all of its sources, so it didn't worked for me until now.
Try androidscreencast.
Summary: Desktop app to control an android device remotely using mouse and keyboard. Should work on Windows/Linux/MacOS with any android device.
Features:
Mouse and keyboard control (FOR ROOTED DEVICES ONLY)
Landscape mode (right click)
Video recording <---- No Root required
Basic file browser
Note: Video FPS is low.
Best tool for screenshots/casts is the recently released AndroidTool:
https://github.com/mortenjust/androidtool-mac
Unfortunately it's only for Mac.
I've setup an Android-x86 image (4.0-RC1-eeepc) in VirtualBox on a Dell Latitude D820. This particular ISO is not for the laptop, but of all available ISOs it works the best.
I have worked through some of the troubles I have come across (by not having an ISO for my device), but I haven't been able to get the sound working. The Android-x86 VirtualBox tutorial and other online resources directed me to use the ALSA driver with SoundBlaster 16, but this has not worked.
This question got me to look at some of the ALSA commands to see what I could find, but I'm not getting anywhere with it.
With the ALSA driver and SoundBlaster controller I get the following from alsa_ctl init
Unknown hardware: "Dummy" "Dummy Mixer"
Hardware is initialized using a guess method
This looked very wrong to me so switched to the Intel HD Audio as the other question did.
With the ALSA driver and Intel HD Audio controller I get the following from alsa_ctl init
Unknown hardware: "HDA-Intel" "SigmaTel ID 7680" ...
Hardware is initialized using a guess method
While this looks a little more promising, I still have no audio.
Since Android is basically Linux, I thought I would be able to translate a Linux solution. Several webpages have content similar to this one saying to modify /etc/modprobe.d/alsa-base.conf and add options snd-hda-intel model=CORRECT_MODEL and this appears to help a lot of Linux users. However, this doesn't seem applicable to Android. At least not to me, since I don't have alsa-base.conf
I know so very little about audio and ALSA. Is there anyting jumping out from what I have above? Even a nudge in a general direction would be great.
Some questions that I have:
What does it mean when I get the Unknown hardware: "Dummy" info? No audio device?
Lastly, I have verified that my sound works outside of virtual box. My first throught is that since my laptop can run Linux with sound, I should be able to include the Linux drivers in Android. Does that make any sense? Unfortunately, I also don't really know how to go about doing that either.
Thank you
I had the same issues.
I was using VMWare for WhatsApp. And had various Android versions without audio...
Setup VMWare with HDAudio config file mod.
alsa_ctl init
Always showed no devices.
I installed this App from Google Play "AlsaMixer (ROOT)"
And this versions got audio instantly:
android-x86-4.3-20130725.iso
android-x86-4.4-RC1.iso
Had a similar no audio problem in vbox. In your init.sh add this line to the end of the alsa_amixer stuff:
alsa_amixer set PCM 100 unmute
After I aded that my audio worked fine.
I had the same issue.
I kept looking for init.sh and then realized I had to install the darn thing to disk before that was worth fiddling with (it's re-parsed on reboot and the live disc doesn't save).
So I snagged the latest x86 ports and flipped through them till I found a 4.2x without issues. Sadly I lost track of which is which, and the good one is simply vm.iso?!
Long story short, audio is working fine with this build, I didn't even need to tweak anything.
System:
Motherboard Tab:
4GB RAM (Half the Host RAM)
[x] Hard Disk (Only boot device)
everything else is default
Processor Tab:
2 cores
everything else is default
Audio:
Windows DirectSound
ICH AC97
everything else is default
Working on phoenix os and androidx86 for sound fix
1) Install AlsaMixer apk
2) Open AlsaMixer
3) Search Master Playback Volume and edit value to 90
How can one get audio input on the Android Emulator? I'm using the 2.2 SDK, and emulating on Ubuntu 10.10.
I have the hw.audioinput property set to yes on my emulator, but I get the message "Recognizer not present" when I run the Voice Recognition API demo app on the emulator. On my phone, of course, it works fine.
I'm trying to use the speech input stuff from the SDK as mentioned here: http://developer.android.com/resources/articles/speech-input.html. They don't mention a thing about getting it to work on the emulator.
I've seen postings all over the forums about this with little to no sure solutions or successes. You know how it goes with forums. That's why I'm posting this question to StackOverflow; hopefully we can get one clear-cut answer!
Voice Recognition is handled with an application. The emulator doesn't come with this .apk pre-installed. If you can get Voice.apk from your device and install it in your emulator you might then have it. Check out this post also:
how voice recognition in android works?
You might need a virtual SD card? See this discussion here about it.