зеркало из https://github.com/mozilla/smarthome.git
Changing the wordspotting test to also test the g2p, by adding a word and an audio file that contains a word that is out of the dictionary.
This commit is contained in:
Родитель
992c4e9953
Коммит
9b00a176f7
|
@ -135,10 +135,10 @@ public class KSServicePocketsphinxTest {
|
|||
*/
|
||||
@Test
|
||||
public void recognizeTest() {
|
||||
String keyword = "forward";
|
||||
String keyword = "marieta";
|
||||
KSServicePocketsphinx ksServicePocketsphinx = new KSServicePocketsphinx();
|
||||
KSListenerUtility ksListener = new KSListenerUtility(keyword);
|
||||
FileAudioSource fsrc = new FileAudioSource("goforward.raw");
|
||||
FileAudioSource fsrc = new FileAudioSource("marieta.raw");
|
||||
try {
|
||||
ksServicePocketsphinx.spot(ksListener, fsrc, null, keyword);
|
||||
|
||||
|
|
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче