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

tj.play() specifies plughw:0,0?? Can't hear TJBot voice with USB sound card #47

Closed
mauer15317 opened this issue Jun 8, 2017 · 1 comment

Comments

@mauer15317
Copy link

Everything is working, except TJBot voice is not heard. I have a USB sound card (plugable) with mic and speakers plugged in.

Edited /usr/share/alsa/alsa.conf to set defaults.ctl.card and defaults.pcm.card both equal to 1

speaker-test -c2 [success!]
arecord --format cd MicTest2.wav -V mono [success!]
aplay MicTest2.wav [success!]
sudo node test.speaker.js [fail - no sound heard]
aplay /usr/share/sounds/alsa/Front_Center.wav [success!]

noticed from verbose logging that tj.play() specifies device=plughw:0,0
my usb sound card is at plughw:1,0

can I get tj.play() to use plughw:1,0?

@victordibia
Copy link
Contributor

victordibia commented Jun 8, 2017

Hi @mauer15317

You can add speakerDeviceId to your configuration and specify your sound card.

var tjConfig = {
    log: {
        level: 'verbose'
    },
     speak: {
         speakerDeviceId: "plughw:1,0" // plugged-in USB card 1, device 0;  
    }
};

-V.

@jweisz jweisz closed this as completed Jun 27, 2017
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

3 participants