StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 210 forks source link

/dev/shm/out.flac not found #99

Open KDMcMullan opened 6 years ago

KDMcMullan commented 6 years ago

Attempts to execute voicecommand -c yield up the below:

Opening config file...
running in quiet mode
Not querying for answers
running in continuous mode
keyword duration is 2 and duration is 3
Found audio
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 16000 Hz, Mono
Warning: Couldn't read data from file "/dev/shm/out.flac", this makes an empty
Warning: POST.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    14    0    14    0     0     36      0 --:--:-- --:--:-- --:--:--    36
rm: cannot remove '/dev/shm/out.flac': No such file or directory
voicecommand: symbol lookup error: voicecommand: undefined symbol: _ZN5boost9re_detail12perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE14construct_initERKNS_11basic_regexIcSA_EENS_15regex_constants12_match_flagsE

I wondered if _ZN5boost9re might be something to do with a missing package. Sure enough, sudo apt-get install -y libcurl4-gnutls-dev yields up the error:

Err:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u1
  404  Not Found [IP: 93.93.128.193 80]
Err:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libcurl4-gnutls-dev armhf 7.52.1-5+deb9u1
  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/c/curl/libcurl3-gnutls_7.52.1-5+deb9u1_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/c/curl/libcurl4-gnutls-dev_7.52.1-5+deb9u1_armhf.deb  404  Not Found [IP: 93.93.128.193 80]

Am I barking up the wrong tree? Why does /dev/shm/out.flac seem not to be created?

Thanks.

Basavaraja-MS commented 6 years ago

I'm also facing the same issue, any workaround found?

s1h4d0w commented 6 years ago

Responding to say I have the same issue, after finally fixing the libboost-regex.1.49.0 error.

As a noob I tried to edit voice-recog.sh and change flac to wav everywhere I could find it, but to no avail sadly.

sdusik commented 6 years ago

The same issue: voicecommand: symbol lookup error: voicecommand: undefined symbol: _ZN5boost9re_detail12perl_matcherIPKcSaINS_9sub_matchIS3_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE14construct_initERKNS_11basic_regexIcSA_EENS_15regex_constants12_match_flagsE

CBMPi commented 6 years ago

The same issue: news from anybody?

Zylvian commented 5 years ago

same.

s1h4d0w commented 5 years ago

This project seems to be dead. No commits since 2016.

charlesbauer commented 5 years ago

Open speech-recog.sg and on line 35 remove the option --sample-rate 16000 from the option for the command flac. And open voicecommand.cpp and remove --sample-rate 16000 from line 93.

mintbomb27 commented 4 years ago

Thank you!! That helped!