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

Error opening audio device for capture: Connection refused #54

Open
manofst3el72 opened this issue Aug 16, 2024 · 0 comments
Open

Error opening audio device for capture: Connection refused #54

manofst3el72 opened this issue Aug 16, 2024 · 0 comments

Comments

@manofst3el72
Copy link

Platform (Hardware/OS): Raspbian GNU/Linux 12 (bookworm)
Raspberry Pi 3 Model A+
Single Board Computer 1.4GHz 4 Core 512MB RAM Broadcom BCM2837 ARM Cortex-A53

Node version: Node.js v20.9.0

MagicMirror version: 2.28.0

Module version: v1.0.2

Description of the issue:

I see ERROR next to the microphone. I used debug:true and
The debug log shows

'Error opening audio device plughw:2 for capture: Connection refused
FATAL: "continuous.c", line 245: Failed to open audio device'

when I type 'cat /proc/asound/cards'

I get this:

0 [vc4hdmi        ]: vc4-hdmi - vc4-hdmi
                      vc4-hdmi
 1 [Headphones     ]: bcm2835_headpho - bcm2835 Headphones
                      bcm2835 Headphones
 2 [Device         ]: USB-Audio - USB PnP Sound Device
                      C-Media Electronics Inc. USB PnP Sound Device at usb-3f980

I want to use 0 [vc4hdmi ]: vc4-hdmi - vc4-hdmi for playback and 2 [Device ]: USB-Audio - USB PnP Sound Device for capture.

When I run arecord --format cd --duration 15 --channels 1 -D plughw:2,0 test.wav
I can record and when I do aplay test.wav I hear the recording

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

1 participant