Updated my branch with latest official source, first regression test passed.
The differences between my branch and official one are:
-
addition of âmycroft/client/lspeechâ directory with the local client
-
in start.sh, changed line:
âvoiceâ) SCRIPT=${TOP}/mycroft/client/speech/main.py ;;
to:
âvoiceâ) SCRIPT=${TOP}/mycroft/client/lspeech/main.py ;;
changes not related to local STT:
-
mycroft/skills/multi_thread_skill.py: optional base class for skills, with some improvements.
-
msm is removed (to enforce locality)
I do not recommend to clone my own branch, I do not guaranty any stability nor continuity. Clone official one and merge manually the previous changes.
Changes in configuration (in bold, mandatory ones for local STT)
âlangâ: âesâ,
âŠ
âurlâ: ââ,
âupdateâ: false
âŠ
âwake_wordâ: âviviendaâ,
âthresholdâ: 1e-20,
âstandup_wordâ: âviviendaâ,
âstandup_phonemesâ: âb i b i e n d aâ,
âstandup_thresholdâ: 1e-30,
âproducerâ: âpocketsphinxâ,
âgrammarâ: âjsgfâ,
âwake_word_ack_cmndâ: âaplay /home/pma/actual/tools/R2D2a.wavâ,
âmsg_not_catchâ: false,
âdebugâ: true
âŠ
âmoduleâ: âespeakâ,
âespeakâ: {
âlangâ: âesâ,
âvoiceâ: âm1â
}
as you can see, in order to increase recognition success ratio, I use initially a non-free speech grammar, stored in file âes.jsgfâ. Skills can switch this grammar to any other one during its execution. Current content is:
#JSGF V1.0;
grammar prueba;
public <prueba> = <cmnd1> | <cmnd2> | <cmnd3> | <cmnd4> | <cmnd5> ;
<cmnd1> = apaga la mĂșsica ;
<cmnd2> = pon mĂșsica ;
<cmnd3> = avisa <when> | avisa ;
<cmnd4> = graba un mensaje ;
<cmnd5> = televisiĂłn pon canal <n_0_100> ;
<when> = en <n_0_100> ( minuto | minutos ) ;
<n_0_9> = cero | un | dos | tres | cuatro | cinco | seis | siete | ocho | nueve ;
<n_10_29> = diez | once | doce | trece | catorce | quince | dieciséis | diecisiete | dieciocho | diecinueve | veinte | veintiuno | veintidós | veintitrés | veinticuatro | veinticinco | veintiséis | veintisiete | veintiocho | veintinueve ;
<n_10n> = treinta | cuarenta | cincuenta | sesenta | setenta | ochenta | noventa ;
<n_0_100> = <n_0_9> | <n_10_29> | <n_10n> [y <n_0_9>] ;