Skip to content

Error opening audio device for capture: Connection refused #54

@manofst3el72

Description

@manofst3el72

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions