Last active
January 28, 2019 13:45
-
-
Save myrickchow32/f7c5ba616fdbea801416e3535b000dbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Utterance contains with both English and Traditional Chinese words | |
| let utterance = AVSpeechUtterance(string: "Hong Kong(香港)is in Asia.") | |
| utterance.voice = AVSpeechSynthesisVoice(language: "zh-HK") | |
| let avSpeechSynthesizer = AVSpeechSynthesizer() | |
| avSpeechSynthesizer.speak(utterance) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment