ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
626 stars 159 forks source link

Broken in iOS 16 #224

Closed fungilation closed 2 years ago

fungilation commented 2 years 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 2 years 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 2 years 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 1 year ago

How do you direct a user to install a voice?

amirhosseinmajdi 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.

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 5 months 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.