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 transmitted #38

Open
arduino-man opened this issue Jun 19, 2018 · 1 comment
Open

No sound transmitted #38

arduino-man opened this issue Jun 19, 2018 · 1 comment

Comments

@arduino-man
Copy link

Hi, great project! Installed it today on a raspberry pi 2 and connected a Logitech c920 webcam/microphone to it. I am able to record using the webcam microphone with "arecord" however barnard will not transmit any sound. F1 does set me in tx mode but there is no sound transmitted. I have ensured that my microphone is the default capture device. Any suggestion will be greatly appreciated.

P.S- I am working on implementing the "always on" capability and will submit a pull request soon ;)

@FanchenBao
Copy link

On RPi 3B+, you need to set up ~/.asoundrc to make the mic work. Suppose we have the speaker working on sound card 0 (i.e. built-in sound card. I use a headphone to get the sound via 3.5 mm jack) and mic on sound card 1 (a USB mic), the following .asoundrc file works for my barnard, both for receiving and sending sound:

pcm.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm "output"
    }
    capture.pcm {
        type plug
        slave.pcm "input"
    }
}

pcm.output {
    type hw
    card 0
}

ctl.!default {
    type hw
    card 0
}

pcm.input {
    type hw
    card 1
}

That said, if I plug in my USB speaker, which uses sound card 2, and changes pcm.output to card 2, sound does comes out via USB speaker, but with very poor quality. I don't know why that is the case, so for my use case, I simply stick with the built-in sound card and 3.5 mm AUX for output.

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