OvidijusParsiunas / speech-to-element

A simple way to add speech to text functionality to your website :microphone:
https://speechtoelement.com/
MIT License
13 stars 2 forks source link

Webspeech Options #3

Open 99arp opened 5 months ago

99arp commented 5 months ago

Hi. As I gathered, this library is used for your other library deep-chat, which I am using. While using webspeech, if one wants to specify custom words that need to be identified, that can be specified using the grammar property. It would be a nice addition to make the stt more flexible. This would just mean adding grammars?: string; here and adding initialization logic to the constructor here. Or would you do it differently?

PS: you have developed a really nice library. Thank you for that.

OvidijusParsiunas commented 5 months ago

Hi @99arp, could you elaborate on what you mean by if one wants to specify custom words that need to be identified, that can be specified using the grammar property, I don't exactly understand your proposal description. Could you also provide some examples on what you mean. Thankyou!