Slide 19
Slide 19 text
खॱ1: ύʔιφϧϘΠεͷ༻ڐՄ
• AVSpeechSynthesizer ͷΫϥεϝιου
requestPersonalVoiceAuthorization ͷ࣮ߦ
/// ύʔιφϧϘΠεͷ༻ڐՄΛٻΊΔ
@available(iOS 17.0, *)
public func requestPersonalVoiceAuthorization() {
AVSpeechSynthesizer.requestPersonalVoiceAuthorization {
ɹɹɹɹɹɹɹ[weak self] status in
guard let self = self else { return }
switch status {
case .authorized:
print("ύʔιφϧϘΠεͷ༻͕ڐՄ͞Ε·ͨ͠")
case .denied:
print("ύʔιφϧϘΠεͷ༻͕ڋ൱͞Ε·ͨ͠")
// ...লུ...
}
}
}