createcandle / voco

Privacy friendly voice control for the Candle Controller / WebThings Gateway, with fully local AI assistant
https://www.candlesmarthome.com/voco-privacy-friendly-voice-control
Mozilla Public License 2.0
25 stars 6 forks source link

Install failed #10

Closed LionMike closed 4 years ago

LionMike commented 4 years ago

Followed instructions in readme file. Install failed. Using Gateway ver. 0.12. Raspberry Pi 3B.

LionMike commented 4 years ago

Did a system reboot after failed message and it showed up in add-ons. Did configuration, haven't tested yet.

LionMike commented 4 years ago

No response to Hey Snips what time is it? Does not respond to commands; turn off lamp. Set timer ok but no audio response.

ERROR : voco: INFO:snips_asr_lib::asr : T0+2.187 endpoint detected (rule:4) frame:142 samples:36352 signal_time:2.272 rtf:0.735 2020-06-05 18:59:00.044 ERROR : voco: INFO:snips_asr_lib::asr : T0+2.196 capture ended 2020-06-05 18:59:00.105 ERROR : voco: INFO:snips_asr_lib::asr : T0+2.258 decoder finalized 2020-06-05 18:59:00.157 ERROR : voco: INFO:snips_asr_lib::asr : T0+2.310 lookup and post-processing done 2020-06-05 18:59:00.158 ERROR : voco: INFO:snips_asr_lib::asr : decoded: [Recognition { decoded_string: "what time is it", likelihood: 1.0, tokens: Some([Token { value: "what", confidence: 1.0, time: (0.0, 1.17), range: 0..4 }, Token { value: "time", confidence: 1.0, time: (1.17, 1.26), range: 5..9 }, Token { value: "is", confidence: 1.0, time: (1.26, 1.4699999), range: 10..12 }, Token { value: "it", confidence: 1.0, time: (1.4699999, 2.1), range: 13..15 }]) }] 2020-06-05 18:59:00.160 ERROR : voco: INFO:snips_asr_hermes::handler : Publishing the recognition 2020-06-05 18:59:00.163 ERROR : voco: INFO:snips_asr_hermes::handler : Preparing decoder 2020-06-05 18:59:00.239 ERROR : voco: Using Lingware directory: /home/pi/.mozilla-iot/addons/voco/snips/lang 2020-06-05 18:59:00.258 ERROR : voco: read: 20 bytes from stdin 2020-06-05 18:59:00.260 ERROR : voco: using lang: en-GB 2020-06-05 18:59:00.266 ERROR : voco: speed: 0.90 2020-06-05 18:59:00.267 ERROR : voco: pitch: 1.20 2020-06-05 18:59:01.950 ERROR : voco: INFO:snips_dialogue_lib::coordinator::coordinator: Session [d14760c0-ad38-4006-81fa-864f90eebbd5]: closing session which was active: Nominal 2020-06-05 18:59:01.950 ERROR : voco: INFO:snips_dialogue_lib::coordinator::coordinator: Site [default]: reset site -> turn off ASR and turn on Hotword 2020-06-05 18:59:01.965 ERROR : voco: INFO:snips_hotword_lib::audio : Audio thread for site default started.

LionMike commented 4 years ago

Voco responds to some commands but not understanding most words. Is there a training process for this?

createcandle commented 4 years ago

Hey LionMike

Various factors influence how well Snips understands you, such as the distance to the microphone and your accent.

No learning takes place, with one exception: Snips learns the names of your devices. If you add a device or change the name of a device, it will take about 30 seconds for it to be learnt.

Finally, the remind me to ... functionality is dependent on the words it knows. It has been trained with words used in common household commands. So something like "remind me to take out the dishwasher" should work fine, while "remind me to visit Emily's piano concert in Prague" might lead to a hilarious interpretation.

Are there any specific command you're having trouble with?

LionMike commented 4 years ago

Thanks for getting back to me.

After viewing the log I realized that it was indeed misinterpreting some of my commands. Some devices were abbreviated so I have since changed the name of my devices to make it easier to understand. It is working much better now. Is there supposed to be a voice reply? I cannot get it to tell me the time or temperature. Is that something I have to add? If so the link you provided for Snips AI sends me to Sonos, which apparently now owns Snips.

I am using the Samson Go Mic Connect USB Microphone with Focused Pattern Technology and it is working quite well if you want to add it to the compatibility list. https://www.amazon.com/gp/product/B014802ZKU/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

createcandle commented 4 years ago

You are indeed supposed to hear a voice response.

You're the second person telling me they can't hear those. I've tested it with a Pi 3B and Pi 4, but cannot reproduce this issue.

That microphone looks interesting. Thanks for the tip.

LionMike commented 4 years ago

Checked error log. No reference to NanoTTS found. Using normal audio jack for output. Ping sound heard after saying "hey snips" error sound heard when invalid command is given. In Voco settings audio jack (headphone) is set as output channel (0,0)

LionMike commented 4 years ago

Fixed issue.

The Samson Go Mic Connect USB Microphone has a headphone output jack and the audio is routed through it. In Voco settings I changed speaker out to "attached device", plugged external speaker into headphone output on microphone and voila!