TalAter / annyang

💬 Speech recognition for your site
https://www.talater.com/annyang/
MIT License
6.63k stars 1.05k forks source link

Too many commands make Annyang to dont recognize most #433

Open pfeldman opened 3 years ago

pfeldman commented 3 years ago

I'm trying to make a chess game for blind people, handled by speech, adding a few commands like knight a5 works just fine however, after adding all pieces and positions, it ends up with about 2100 commands.

Saying knight a5 won't work now. Is there a limit of words can be added?

Also, is there a way to indicate that use will say one of the commands to find the closest one?

thomaspsik commented 3 years ago

Hi,

I am not an expert, but I would suggest that you use the "tag" function: knight :position queen :position

and so on ... you should receive the position in the function as a parameter.

see https://github.com/TalAter/annyang/blob/master/docs/README.md#commands-object