MycroftAI / mycroft-precise

A lightweight, simple-to-use, RNN wake word listener
Apache License 2.0
849 stars 228 forks source link

No . or ! in output from precise-listen #42

Open JuliaC29 opened 6 years ago

JuliaC29 commented 6 years ago

When I run precise-listen, I don't get any ! or .

I get X and -

(.venv) juyeon@juyeonubuntu:~/mycroft-precise$ .venv/bin/precise-listen korean.net
Using TensorFlow backend.
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx-----------------------------------
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxx---------------------
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx----------
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX tXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

What do these mean?

MatthewScholefield commented 6 years ago

Oh, the part that references ! needs to be updated. There's now a visual meter by default. The xs represent the activation level (like a horizonal bar). This is showing it is constantly at full activation. This indicates you need more negative data.

JuliaC29 commented 6 years ago

Aha, ok! Great... When running precise-listen how do we know if it recognised the wakeword or not ?

I added some negative examples and now I get:

$ .venv/bin/precise-listen korean.net
Using TensorFlow backend.
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX----------------------------------------
XXXXXXXXXXXXXXXXXXXXXXXXXXXX----------------------------------------------------
XXXXXXXXXXXXXXXXXXXXXXXX--------------------------------------------------------
XXXXXXXXXX----------------------------------------------------------------------
XXXXXXXXXXXXX-------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXX--------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXXXXXXXXXXX-----------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXX--------------------------------------------------------------------------
XXXXXXXXXXXXXXX-----------------------------------------------------------------
XX------------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXXXX--------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXXXXXXX------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXXXXXXXXX---------------------------------------------------------------------
XXXXXXXXXXXXXX------------------------------------------------------------------
XXXXXXXXXXX---------------------------------------------------------------------
XXXXXXXXXXXXXXXXXXXXX-----------------------------------------------------------
XXXXXXXXXX----------------------------------------------------------------------
XXXXXXXXX-----------------------------------------------------------------------
XXXXXXXXXXXXXX------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXXXXXXX-----------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXXXXXXXXXXXXXX----------------------------------------------------------------
XXXXXXXXXXXXXXXXXXXX------------------------------------------------------------
XXXXXXXXXX----------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XXXXXXXX------------------------------------------------------------------------
XXXXXXXXXXXX--------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXXXXXXXX--------------------------------------------------------------------
XXXXXXXXXXXX--------------------------------------------------------------------
XXXXXXXXXX----------------------------------------------------------------------
XXXXXXX-------------------------------------------------------------------------
XXXXXXXXX-----------------------------------------------------------------------
XXXX----------------------------------------------------------------------------
XXXXX---------------------------------------------------------------------------
XX------------------------------------------------------------------------------
XXX-----------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XXXXXXXX------------------------------------------------------------------------
XXXXXXXXX-----------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
X-------------------------------------------------------------------------------
XX------------------------------------------------------------------------------
MatthewScholefield commented 6 years ago

If the bar gets half way it is considered an activation and you should hear a sound. If in that log you were saying the wake word, it probably is now the opposite and you need a few more wake word recordings

shipleyxie commented 5 years ago

you can use "precise -i " instead of "precise"
-i means :--light-mode and this will Report using . or ! rather than a visual representation