Docker Tips - Play Audio in a Container (2022)

preview_player
Показать описание
Play audio in a Linux Docker Container on Windows.
---
00:00 Introduction
00:54 PulseAudio server on Windows
03:00 Build and run Alpine Docker Image with audio support
04:57 Speaker test inside Container
05:28 Play audio files inside Container using sox
06:11 Convert and manipulate audio files using sox
08:41 Ubuntu Docker Image with audio support
---

▶️ GUI Windows Apps in Container:

▶️ Full Ubuntu in a Container on Windows using RDP:

💻 PulseAudio:

📝 Dockerfiles:

●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
👨‍👩‍👧‍👦 Social:
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
🎮🕹️🐭 Snappy Mouse Run:
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●

#audio #docker #linux
Рекомендации по теме
Комментарии
Автор

You are awsome, Thank you for sharing this video very helpfull. Can you make a video on chrome browser running in a docker rendering google earth with GPU accerlation support. I think there are none who have tried it, It will be a hit video as most from commnuity are looking forward on how to achieve it in WSL mainly :)

onewind
Автор

Is there a way to play a sound if the host is on linux? Should be easier right?

dwarslopers
Автор

get the binaries with "choco install pulseadio"
however, on windows 10 i cant seem to install it

yoadw
Автор

That's interesting, but how does it work, actually? When you have a pulseaudio package installed in a container, it provides both pulseaudio server and client binaries, but you don't care about server part in docker, because your pulseaudio server is running on your host machine under Windows, where you previously configured it to accept any network connections? And by having PULSE_SERVER environment variable being set to point to your host machine, you change the behavior of whatever pulseaudio clients to use the specified server? Is that it?
I'm still unsure how aplay works in this case, because my understanding it should be using local ALSA device, but in a container you don't have any, apart from probably "pulse" virtual ALSA device, created by alsa-plugin-pulse?

alx
Автор

Hi, is it possible to do it the opposite way ? Eg connect legacy devices with linux drivers and then use it from Windows applications as they would be windows devices ?

TunesFromKeys