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

Install.sh expects microphone to support mono #384

Open
1 task done
urbanadventurer opened this issue Jan 14, 2025 · 0 comments
Open
1 task done

Install.sh expects microphone to support mono #384

urbanadventurer opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@urbanadventurer
Copy link

Issue Type

  • Bug report

Description

install.sh expects microphone to have mono input with a single channel. My microphone has stereo only so doesn't install with it.

Here in install.sh it expects -c 1.

   # Test audio device access
    if ! arecord -c 1 -f S16_LE -r 48000 -d 1 -D "$device" /dev/null 2>/dev/null; then
        print_message "❌ Failed to access audio device" "$RED"
        print_message "This could be due to:" "$YELLOW"
        print_message "  • Device is busy" "$YELLOW"
        print_message "  • Insufficient permissions" "$YELLOW"
        print_message "  • Device is not properly connected" "$YELLOW"
        return 1
    else
        print_message "✅ Audio device validated successfully, tested 48kHz 16-bit mono capture" "$GREEN"
    fi

Steps to Reproduce (for bugs)

  1. ./install.sh on a Raspberry Pi 4B on Debian Bookworm-lite

Expected behavior

Detect USB mic

Actual behavior

Failed to detect USB microphone

🎤 Audio Capture Configuration
1) Use sound card
2) Use RTSP stream
❓ Select audio input method (1/2): 1

🎤 Detected audio devices:
[1] Card 3: Adapter USB-C Audio Adapter
    Device 0: USB Audio [USB Audio]

Please select a device number from the list above (1-1) [1] or 'b' to go back:
✅ Selected capture device: USB Audio
❌ Failed to access audio device
This could be due to:
  • Device is busy
  • Insufficient permissions
  • Device is not properly connected
❌ Failed to validate audio device

Screenshots

[If applicable, add screenshots to help explain your problem]

Environment

Version Information (build date)

🐦 BirdNET-Go build date: 2025-01-13T19:57:04Z, using config file: /root/.config/birdnet-go/config.yaml

System Information

  • Device:
    • USB Audio device: Cubilux ‎Lavalier, Mini ‎Black, USB A with 3.5mm Jack

Possible Solution

My workaround was to change this so it has 2 channels.

    # Test audio device access
    if ! arecord -c 2 -f S16_LE -r 48000 -d 1 -D "$device" /dev/null 2>/dev/null; then
@tphakala tphakala added the enhancement New feature or request label Jan 14, 2025
@tphakala tphakala self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants