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

Enabling audio device for Tiny11 #632

Closed
geckolinux opened this issue Jul 1, 2024 · 2 comments
Closed

Enabling audio device for Tiny11 #632

geckolinux opened this issue Jul 1, 2024 · 2 comments

Comments

@geckolinux
Copy link

geckolinux commented Jul 1, 2024

Operating system

Debian 12

Description

Hi there, I'm having trouble enabling an audio device in my Tiny11 installation with this project. For reference, I've tried all the suggestions in #108 , #214 , and #22. This is on a Debian 12 host with Pipewire audio (PulseAudio compatibility enabled) and the Cinnamon desktop. I'm connecting to the Docker image over RDP with Remmina, Vinagre, and xfreerdp with the same outcome.

environment:
  ARGUMENTS: "-device ich9-intel-hda -device hda-output"
docker logs Tiny11
❯ Starting Windows for Docker v3.12...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 9750H CPU | RAM: 23/32 GB | DISK: 267 GB (btrfs) | HOST: 6.1.0-22-amd64...

❯ Booting Windows using QEMU v8.2.4...
❯ ERROR: qemu-system-x86_64: -device hda-output: no default audio driver available
environment:
  ARGUMENTS: "-device usb-audio"
docker logs Tiny11
❯ Starting Windows for Docker v3.12...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 9750H CPU | RAM: 23/32 GB | DISK: 267 GB (btrfs) | HOST: 6.1.0-22-amd64...

❯ Booting Windows using QEMU v8.2.4...
❯ ERROR: qemu-system-x86_64: -device usb-audio: no default audio driver available

#108 (comment)

The reason why I didnt add it by default is that without any audio device I have working sound via Microsoft RDP on Android. But as soon as I add a soundcard like above, for some strange reason I do not have sound in RDP anymore.

So another solution is to use Microsoft RDP instead of Teamviewer, because it has working sound even without audio device.

So I tried it with no ARGUMENTS:

image

ARGUMENTS: "-device ich9-intel-hda -device hda-output -audio alsa"

image

ARGUMENTS: "-device ich9-intel-hda -device hda-output -audio spice

docker logs Tiny11
Tiny11     | ❯ Starting Windows for Docker v3.12...
Tiny11     | ❯ For support visit https://github.com/dockur/windows
Tiny11     | ❯ CPU: Intel Core TM i7 9750H CPU | RAM: 23/32 GB | DISK: 267 GB (btrfs) | HOST: 6.1.0-22-amd64...
Tiny11     | 
Tiny11     | ❯ Booting Windows using QEMU v8.2.4...
Tiny11     | ❯ ERROR: 
Tiny11 exited with code 15

ARGUMENTS: "-device ich9-intel-hda,addr=1f.1 -audiodev pa,id=snd0,server=unix:/tmp/pa -device hda-output,audiodev=snd0"

docker logs Tiny11
❯ Starting Windows for Docker v3.12...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Core TM i7 9750H CPU | RAM: 23/32 GB | DISK: 267 GB (btrfs) | HOST: 6.1.0-22-amd64...

❯ Booting Windows using QEMU v8.2.4...
❯ ERROR: qemu-system-x86_64: Unknown audio driver `pa'. Perhaps you want to install qemu-system-gui package?

ARGUMENTS: "-device intel-hda -device hda-duplex -audio spice"

docker logs Tiny11
Tiny11     | ❯ Starting Windows for Docker v3.12...
Tiny11     | ❯ For support visit https://github.com/dockur/windows
Tiny11     | ❯ CPU: Intel Core TM i7 9750H CPU | RAM: 23/32 GB | DISK: 267 GB (btrfs) | HOST: 6.1.0-22-amd64...
Tiny11     | 
Tiny11     | ❯ Booting Windows using QEMU v8.2.4...
Tiny11     | ❯ ERROR: 
Tiny11 exited with code 15

Docker compose

services:
  windows:
    image: dockurr/windows
    container_name: Tiny11
    environment:
      VERSION: "tiny11"
      DISK_FMT: "qcow2"
    volumes:
      - /home/myself/.var/VMs/Tiny11:/storage
      - /home/myself/Desktop:/shared
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    privileged: true
    stop_grace_period: 2m
@geckolinux
Copy link
Author

OK, finally success. First of all I recreated the container with the compose file I posted above that includes ARGUMENTS: "-device ich9-intel-hda -device hda-output -audio alsa" , my first attempt didn't use any arguments. I'm not sure if that made a difference or not, but the other important thing I was missing was enabling audio over RDP.

Method 1: xfreerdp /u:username /p:pass /v:localhost /dynamic-resolution /sound /microphone

For lower audio latency and lower CPU usage this is what I'm using:
/microphone:format:1,quality:high /sound:format:1,quality:high,latency:5 /network:lan -encryption /cert:ignore /bpp:32 /gfx-h264:AVC444

Method 2: In Remmina:

image

@acrilique
Copy link

I tried the same thing without adding any ARGUMENTS to my compose file, and it works.

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

No branches or pull requests

2 participants