yasirkula / UnitySpeechToText

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

Punctuation? #3

Open djsoapyknuckles opened 3 months ago

djsoapyknuckles commented 3 months ago

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

yasirkula commented 3 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