yasirkula / UnitySpeechToText

A native Unity plugin to convert speech to text on Android & iOS
MIT License
78 stars 12 forks source link

Punctuation? #3

Open djsoapyknuckles opened 8 months ago

djsoapyknuckles commented 8 months ago

Does native TTS provide punctuation inference or is there a way to enable it on Android?

yasirkula commented 8 months ago

After googling it, I've encountered these:

Android requires modifying the native source code on Android Studio and it isn't guaranteed to work as stated in the stackoverflow entry and SpeechRecognizer's official documentation.

iOS requires modifying SpeechToText.mm:

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000
if( CHECK_IOS_VERSION( @"16.0" ) )
    recognitionRequest.addsPunctuation = YES;
#endif