csdcorp / speech_to_text

A Flutter plugin that exposes device specific text to speech recognition capability.
BSD 3-Clause "New" or "Revised" License
348 stars 217 forks source link

Compound words issue #506

Closed mnawazshah closed 2 weeks ago

mnawazshah commented 2 weeks ago

I am using this package inside an english learning app. Where user has to listen and speak. But when there are some words like deep-fried spoken by user it treat it as two different words like "deep fried" but not as "deep-fried"

sowens-csd commented 2 weeks ago

Conversion of spoken words is handled entirely by the OS specific speech facilities. The plugin provides a, hopefully, convenient and consistent wrapper around those different speech facilities. As far as I know there are no options in any of the APIs that I've looked at that would provide any control over that type of conversion. It may be that as the speech subsystems on the devices evolve they will start to recognize some specific usage like that but the plugin does not provide any help there.

Cloud speech services might do better but you'd have to experiment with them for your specific use case to know.

Sorry I couldn't be more help.

mnawazshah commented 2 weeks ago

Okay. Thanks a lot for the reply and suggestion. Your package is very helpful.