Hello, can anyone help me with this? I’m having tr...
# multiplatform
e
Hello, can anyone help me with this? I’m having trouble implementing text-to-speech on iOS. The issue is that I can’t figure out how to change the language since there’s no constructor for
AVSpeechSynthesisVoice(language)
in Kotlin Multiplatform. Thank you!
a
e
Thank you so much! The problem is solved.
Copy code
AVSpeechSynthesisVoice.voiceWithLanguage("en-UK")
k
@Eka Bayu Pratama is this working ? can you please share some resource for TTS in IOS
e
Yes, it’s working perfectly for me. Here’s a gist I created with an example of implementing text-to-speech in iOS using Kotlin Multiplatform. https://gist.github.com/bayu07750/c719dd18ebc9281f91eb565e5126aa67
@Kapil Yadav
k
thanks very much man! Appreciate