Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: how can I have sound? #855

Open
2 tasks done
Handsomeskull opened this issue Nov 8, 2024 · 3 comments
Open
2 tasks done

[Question]: how can I have sound? #855

Handsomeskull opened this issue Nov 8, 2024 · 3 comments
Labels
question Further information is requested

Comments

@Handsomeskull
Copy link

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

I tried win10 and there is no sound like in win7 and winxp, it's probably something to do with docker containers, I tried several solutions (virtual audio cables, V-CABLE for ex) but it still doesn't work, what can I do?

@Handsomeskull Handsomeskull added the question Further information is requested label Nov 8, 2024
@LeonDante-ctrl
Copy link

  1. PulseAudio:
  • Install PulseAudio: Install PulseAudio within your Docker container. This will provide a robust audio server.
  • Configure PulseAudio: Configure PulseAudio to use the host system's audio device. This involves setting up appropriate modules and configurations.
  • Set the PULSE_SERVER Environment Variable: Set the PULSE_SERVER environment variable in your Docker container to point to the PulseAudio server.
  1. WSL 2 and WSLg:
  • Enable WSL 2: Ensure WSL 2 is enabled on your system.
  • Install a Linux Distribution: Install a Linux distribution like Ubuntu or Debian.
  • Install Docker: Install Docker within your Linux distribution.
  • Run Docker Containers: Run your Docker containers within the WSL 2 environment. WSLg will handle the audio routing between the container and your Windows system.
  1. Windows Subsystem for Linux (WSL):
  • Install a Linux Distribution: Install a Linux distribution like Ubuntu or Debian.
  • Install Docker: Install Docker within your Linux distribution.
  • Run Docker Containers: Run your Docker containers within the WSL environment. While WSL doesn't have direct audio passthrough, it might be possible to use PulseAudio or other workarounds.
    Additional Tips:
  • Check Docker Settings: Ensure that Docker is configured to use the correct audio device.
  • Update Drivers: Keep your audio drivers up-to-date.
  • Experiment with Different Configurations: Try different configurations for PulseAudio and Docker settings.
  • Consult Community Forums: Seek help from the Docker and Linux communities.
    Remember: The specific steps and configuration details may vary depending on your Docker setup, Linux distribution, and desired audio configuration.
    Would you like to provide more details about your specific Docker setup, the type of container you're running, and the audio application you're trying to use? This will help me provide more tailored advice.
    By following these guidelines and experimenting with different approaches, you should be able to resolve the sound issue in your Windows 10 Docker containers.

@elleparker
Copy link

how can sound have you?

@dengniqiu
Copy link

NOVNC doesn't support sound, you can use the remote control software that comes with Windows to have sound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants
@LeonDante-ctrl @Handsomeskull @dengniqiu @elleparker and others