StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 210 forks source link

Segmentation fault #70

Open fatoldsun00 opened 8 years ago

fatoldsun00 commented 8 years ago

Hi,

I had installed voicecommand on raps3, jessie but i had a "Segmentation fault" error each time the mic detect sound.

With arecord -D plughw:1,0 -f s16_LE test.wav everything works fine.

My config file looks like :

!keyword==pi !verify==1 !continuous==1 !quiet==0 !ignore==0 !filler==1 !thresh=0.7 !response=Yes sir? !lang==fr ping==ping www.google.fr

Any idea ?

Thks

Jeremy

fatoldsun00 commented 8 years ago

And when i do : voicecommand -D plughw:1,0

I had :

Opening config file... Attempting to answer: plughw:1,0 Could not find answer. Try again.

And : voicecommand -s

Do you want to set up and check the speech recognition options? (y/n) y First I'm going to make sure you have the correct hardware device I couldn't find a hardware device. You don't have a valid microphone

But arecord -D plughw:1,0 works fine Oo

fatoldsun00 commented 8 years ago

UP ?

I had search deeper and the sh -c arecord -D plughw:1,0 -f cd -t wav -d 2 -r 16000 /dev/shm/noise.wav 1>>/dev/shm/voice.log 2>>/dev/shm/voice.log command works like a charm.

If i launch voicecommand in continues mode et i do aplay /dev/shm/noise.wav i hear my voice.

But voicecommand return a "segmentation fault"

Log file ( /dev/shm/voice.log) give me :

cat /dev/shm/voice.log

Capture WAVE '/dev/shm/noise.wav' : Signed 16 bit Little Endian, Fréquence 16000 Hz, Stéréo Capture WAVE '/dev/shm/noise.wav' : Signed 16 bit Little Endian, Fréquence 16000 Hz, Stéréo Capture WAVE '/dev/shm/noise.wav' : Signed 16 bit Little Endian, Fréquence 16000 Hz, Stéréo

flac 1.3.0, Copyright (C) 2000-2009 Josh Coalson, 2011-2014 Xiph.Org Foundation flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details.

ERROR: raw format options (--endian, --sign, --channels, --bps, and --sample-rate) are not allowed for non-raw input Type "flac" for a usage summary or "flac --help" for all options Capture WAVE '/dev/shm/noise.wav' : Signed 16 bit Little Endian, Fréquence 16000 Hz, Stéréo

Thanks for any help !

Jeremy