jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

jasper reboot error #613

Open chill07 opened 7 years ago

chill07 commented 7 years ago

when i rebooted my rpi (im using the latest raspbian jessie) this error popped up 17842407_1323631267672412_997673529_n do anyone know how to fix this?

ghost commented 7 years ago

Its a mic config issue, not related to code.

Peerkersezuuker commented 7 years ago

Find the sample rate you microphone supports.

arecord --list-devices List of CAPTURE Hardware Devices card 0: CAMERA [USB2.0 PC CAMERA], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0

So mine is on card 0, device 0

Then : arecord -f S16_LE -r 60000 -D hw:0,0 -d 5 testS16_LE.wav output :

Recording WAVE 'testS16_LE.wav' : Signed 16 bit Little Endian, Rate 60000 Hz, Mono Warning: rate is not accurate (requested = 60000Hz, got = 48000Hz) please, try the plug plugin

The error say's it all, the microphone supports 48000Hz

Edit /home/pi//client/mic.py Search for RATE = (default is 16000) Change it to the supported rate. (3 times in the mic.py) Save mic.py and restart jasper.