Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use enhanced voice in iOS 17 #254

Open
homerquan opened this issue Dec 8, 2023 · 1 comment
Open

Can't use enhanced voice in iOS 17 #254

homerquan opened this issue Dec 8, 2023 · 1 comment

Comments

@homerquan
Copy link

Tried the react-native-tts with premium voice in iOS 17
e.g,.
Screenshot 2023-12-08 at 5 21 33 PM

But the premium voice didn't work
// iosVoiceId: "com.apple.speech.synthesis.voice.Junior", (this one works)
iosVoiceId: "com.apple.voice.enhanced.en-US.Samantha", (this one not, and get following error)

[TextToSpeech] VoiceProvider: Could not start synthesis for request SSML Length: 286, Voice:
[AVSpeechSynthesisProviderVoice 0x6000022d6a80] Name: Samantha, Identifier: com.apple.voice.compact.en-US.Samantha,
Supported Languages (
"en-US"
), Age: 0, Gender: 0, Size: 0, Version: (null), converted from tts request [TTSSpeechRequest 0x60000788d080]
Alright, buddy! Let's read a book and have some fun! When you want to chat, press the blue button. And when you're
done, hit the red one. We're gonna see animals and you can tell me what they're doing! It's gonna be a blast!
Ready? Let's go! language: en-US footprint: compact rate: 0.500000 pitch: 1.000000 volume: 1.000000
[TextToSpeech] Failed to speak request with error: Error Domain=TTSErrorDomain Code=-4010 "(null)". Attempting to
speak again with fallback identifier: com.apple.voice.compact.en-US.Samantha
[TextToSpeech] Could not instantiate audio unit. Error=Error Domain=NSOSStatusErrorDomain Code=-3000 "(null)"
[TextToSpeech] Could not instantiate audio unit. Error=Error Domain=NSOSStatusErrorDomain Code=-3000 "(null)"
[TextToSpeech] Could not instantiate audio unit. Error=Error Domain=NSOSStatusErrorDomain Code=-3000 "(null)"
[TextToSpeech] Could not instantiate audio unit. Error=Error Domain=NSOSStatusErrorDomain Code=-3000 "(null)"
[TextToSpeech] Could not instantiate audio unit. Error=Error Domain=NSOSStatusErrorDomain Code=-3000 "(null)"
[TextToSpeech] Couldn't find audio unit for request SSML Length: 286, Voice: [AVSpeechSynthesisProviderVoice
0x60000a4b9130] Name: Samantha, Identifier: com.apple.voice.compact.en-US.Samantha, Supported Languages (
"en-US"

@homerquan
Copy link
Author

It seems related to this
https://developer.apple.com/forums/thread/738048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant