Created
June 22, 2016 19:00
-
-
Save agakshat/30104bcc3448350ba3a38d677699890e to your computer and use it in GitHub Desktop.
Running audio from inside Docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcm.!default { | |
type plug | |
slave { | |
pcm "hw:1,0" | |
} | |
} | |
ctl.!default { | |
type hw | |
card 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
RUN apt-get update && apt-get install -y alsa | |
#temp.wav is a sample file to run | |
ADD temp.wav / | |
#substitute /root/ with your container's $HOME | |
ADD .asoundrc /root/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment