ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
601 stars 154 forks source link

Broken in iOS 16 #224

Closed fungilation closed 1 year ago

fungilation commented 1 year ago

in iPhone 14, iOS 16.0 simulator:

Tts.setDefaultLanguage('en-US') errors out, and

Tts.voices().then(voices => console.log(voices)) has voices being empty array.

fungilation commented 1 year ago

Nevermind. Need to install voices on simulator, and iOS 16 has changed voice ids (what was com.apple.ttsbundle.Samantha-premium is now com.apple.voice.enhanced.en-US.Samantha)

ngochai27595 commented 1 year ago

Nevermind. Need to install voices on simulator, and iOS 16 has changed voice ids (what was com.apple.ttsbundle.Samantha-premium is now com.apple.voice.enhanced.en-US.Samantha)

How can I know what voice id is preserved after ios 16? Thanks

naeemanaeem commented 1 year ago

Even after installing the voices Agnes and Alex, and I can see two rows in the array, but still no sound. Any help is appreciated.

yongish commented 11 months ago

How do you direct a user to install a voice?

amirhosseinmajdi commented 9 months ago

Even after installing the voices Agnes and Alex, and I can see two rows in the array, but still no sound. Any help is appreciated.

Any Update?

Sounds are ok and in accessibility of simulator i can hear the sounds of the voices but when I try Tts.speak('Hello, world!', { iosVoiceId: 'com.apple.voice.enhanced.en-US.Samantha', rate: 0.5, }); no sound play.

perfecten commented 3 weeks ago

I have the same issue.

Sounds are ok and in accessibility of simulator i can hear the sounds of the voices but when I try Tts.speak('Hello, world!', { iosVoiceId: 'com.apple.voice.enhanced.en-US.Samantha', rate: 0.5, }); no sound play.