dialogos-project / dialogos

The DialogOS dialog system.
https://www.dialogos.app
GNU General Public License v3.0
21 stars 8 forks source link

Speech recognizer takes ages to load #170

Closed marcalt94 closed 5 years ago

marcalt94 commented 5 years ago

Hey, A few days ago our speech recognizer started to load extremely slow, taking up to 30 minutes before you can say anything. This started around the time we created a direct grammar and used it. I removed as much of the dialog as possible, it does not use our grammars anymore but it still takes much longer than it should. I attatched the minimal version that has this problem. mini_bsp.zip

timobaumann commented 5 years ago

fallout from https://github.com/dialogos-project/dialogos/issues/165: many duplicates lead to slow loading. The present fix for #165 resolves this issue, it will be in the next release.

Also, @marcalt94: I do not think that the system has ever understood any of the words in your g2p-exception list.

  1. you don't want to put quotation marks into the text (Woerterbuch instead of "Woerterbuch"),
  2. you have to segment the pronunciation with whitespace (a b f r a g E+ n instead of abfragE+n). Finally, never put multiple whitespaces after each other (as in Lektion).
timobaumann commented 5 years ago

resolving as duplicate of #165.

alexanderkoller commented 5 years ago

Oh, good catch.

@marcalt94 The problem is that you have thousands of entries in your pronunciation dictionary. As Timo says, these were probably created by the bug in #165. You can fix your speech recognizer by manually deleting the entries from your pronunciation dictionary (note that you can select lots of entries at once using shift-click in DialogOS -> Dialog -> Speech recognizer -> Edit pronunciation dictionary).

timobaumann commented 5 years ago

reloading the file with the next release of dialogos will also do the trick.