alexylem / jarvis

Jarvis.sh is a simple configurable multi-lang assistant.
http://openjarvis.com
MIT License
806 stars 197 forks source link

Problem with Soundcard #992

Open Chris112358 opened 3 years ago

Chris112358 commented 3 years ago

Hello, I tried to install Jarvis on my RPi 4 with a Respeaker 4-Mic Array and got some trouble with it. When I record sounds with the arecord function, the Mic works fine. But if i try to run the installer I got the error massage

rec WARN alsa: can't encode 0-bit Unknown or not applicable

I am rather new to raspbian and linux, but could not find a solution for my problem jet. Thanks for helping

anoriel commented 3 years ago

Hi @Chris112358,

I got the same issue for me. All is ok for ouput but when jarvis script tries to capture sound, here is what I got: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM false rec FAIL sox: Sorry, there is no default audio device configured Selection of the microphone device **** Liste des Périphériques Matériels CAPTURE **** carte 2: seeed4micvoicec [seeed-4mic-voicecard], périphérique 0: bcm2835-i2s-ac10x-codec0 ac10x-codec.1-003b-0 [bcm2835-i2s-ac10x-codec0 ac10x-codec.1-003b-0] Sous-périphériques: 1/1 Sous-périphérique #0: subdevice #0 If I try to select card 2 and device 0, the error come again... even if I select any other number...

Did you find a way to set your Respeaker 4-Mic?

Chris112358 commented 3 years ago

Hi, yes for me the rec worked as I replaced in the whole script 'rec', with 'AUDIODEV=hw:1 rec' than the recording worked. But I could not yet finish to install the projekt so I dont know if speech recorgnation is working.