Git Product home page Git Product logo

vagrant-audio's Introduction

vagrant-audio

A minimal Vagrantfile that makes sound work on Mac (host) and Ubuntu/Precise (guest). Uses the OSS sound driver system (I could not get ALSA to work), and verified with Mac 10.8.3, VirtualBox 4.2.12

  • Do "vagrant up" to start everthing, then "vagrant ssh" to login to the VM.
  • Do "osstest" and you should hear sound.

vagrant-audio's People

Contributors

davejagoda avatar geoffreyplitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vagrant-audio's Issues

Installation steps of vagrant-audio.

I have a simple Java Web application (JSP & Servlet) to test a text to speech program.
The above works fine when I deploy the ‘.war’ file on Xampp server (I can hear the voice).

I have a problem to hear the voice when I deploy the same ‘.war’ file on my Vagrant/Homestead server which is running on a VirtualBox, hosted on Windows-7.

I checked that ALSA sound is working on the system without problems (I could hear the voice):
vagrant@homestead:/$ sudo aplay /usr/share/sounds/alsa/Front_Center.wav

My program seems to work well looking at the logs (but without hearing the sound).
Random stfw indicates it might be a vagrant issue..
I want to check the OSS sound driver system but I don't know how to use it.

Please can you help me out with the installation steps of the vagrant-audio script.

no audio devices created

hello.
not sure why, but it's not working for me. ubuntu 14.04, virtualbox 4.3.36, vagrant 1.7.4.

$ vagrant destroy -f && vagrant up > out.txt && vagrant reload && vagrant ssh -c "osstest; ls /dev/dsp*"
==> default: Destroying VM and associated drives...
==> default: Pruning invalid NFS exports. Administrator privileges will be required...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Unmounting NFS shared folders from guest...
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
nfsd running
==> default: Mounting NFS shared folders...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
/usr/bin/xauth:  file /home/vagrant/.Xauthority does not exist
Sound subsystem and version: OSS 4.2 (b 2005/201202051301) (0x00040100)
Platform: Linux/x86_64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.

        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).
ls: cannot access /dev/dsp*: No such file or directory
Connection to 127.0.0.1 closed.

i don't see any clue to why in out.txt. it's ~1k of lines, so i don't want to post it unless you say it's necessary.

Build errors in trusty64

any ideas why this would happen in trusty64?

cc1: some warnings being treated as errors
make[3]: *** [/usr/src/modules/oss4/core/oss_core.o] Error 1
make[2]: *** [module/usr/src/modules/oss4/core] Error 2
make[2]: Leaving directory /usr/src/linux-headers-3.13.0-76-generic' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory/usr/src/modules/oss4'
make: *** [kdist_build] Error 2
BUILD FAILED!

E: Unable to locate package linux-headers-3.2.0-23

I'm getting a nastygram when I try to run the apt-get install -y ... command:

E: Unable to locate package linux-headers-3.2.0-23

I've tried some other (seemingly plausible) packages with no success. Could you fix this to work with 4.19 and (for extra credit :-) add a note indicating how to handle future changes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.