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

No sound was recorded and transmitted. #47

Open
Luupw3d opened this issue Jun 6, 2021 · 1 comment
Open

No sound was recorded and transmitted. #47

Luupw3d opened this issue Jun 6, 2021 · 1 comment

Comments

@Luupw3d
Copy link

Luupw3d commented Jun 6, 2021

I'm using an USB sound card and I test my microphone and headphone by using sox. All of them works well.
Here's my arecord-l outputs:

pi@raspberrypi:~` $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Camera [H264 USB Camera], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Here's my .asoundrc

pcm.output {
type hw
card 2
}
ctl.!default {
type hw
card 2
}

When I was using barnard, the headphone was working ,but the microphone does not seem to be working. I could hear other people talking but others could not hear me.

By the way , is this project EOL?

@zrdimetc
Copy link

zrdimetc commented Oct 2, 2021

Test your audio input and output before running barnard with arecord -F CD | aplay. Can you hear yourself speaking? If you can't hear yourself, your local ALSA config is wrong. Try without .asoundrc (backup or remove) by adjusting global ALSA config /usr/share/alsa/alsa.conf for correct device.

defaults.ctl.card 2
defaults.pcm.card 2

if "2" is your card number. If "0" or "1" adjust accordingly. Check sound cards with aplay -l. If you really need to use local ALSA .asoundrc, you seem to be missing the input. Try this .asoundrc config

pcm.!default {
  type asym
  capture.pcm "mic"
  playback.pcm "speaker"
}

pcm.mic {
  type plug
  slave {
    pcm "hw:2,0"
  }
}

pcm.speaker {
  type plug
  slave {
    pcm "hw:2,0"
  }
}

When you configure ALSA global or local config correct for input, barnard will work fine.

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

No branches or pull requests

2 participants