Practice #用 AVSpeechSynthesizer 講話
Published in
1 min readMar 24, 2019
“Manners Maketh Man” — Harry Hart “Galahad”
2015年上映的金牌特務讓我一看著迷,“禮儀成就不凡的人”成為劇中最經典的台詞,今天就試試讓Mac說出這段經典的話
import AVFoundationlet theWordToSpeak = AVSpeechUtterance(string: "Manners maketh man")let synthesizer = AVSpeechSynthesizer()synthesizer.speak(theWordToSpeak)
希望我也可以成為紳士……👔