Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 自动加载AVSpeech​的语音;合成器_Ios_Swift_Text To Speech_Voice_Avspeechsynthesizer - Fatal编程技术网

Ios 自动加载AVSpeech​的语音;合成器

Ios 自动加载AVSpeech​的语音;合成器,ios,swift,text-to-speech,voice,avspeechsynthesizer,Ios,Swift,Text To Speech,Voice,Avspeechsynthesizer,是否可以在iOS应用程序中自动加载新的语音合成语音?在Settings>Accessibility>speaked Content>voices>English中可以下载几种高质量的“增强”语音。我想使用其中一个高质量的,但不想向应用程序用户解释,他们必须通过在设置中导航来手动下载它们 Siri语音似乎是我手机上预装的唯一高品质语音,不幸的是,苹果不允许我们在AVSpeech中使用这些语音​合成器。(例如,选择其中一个作为AVSpeechSynthesisVoice let utterance

是否可以在iOS应用程序中自动加载新的语音合成语音?在
Settings>Accessibility>speaked Content>voices>English
中可以下载几种高质量的“增强”语音。我想使用其中一个高质量的,但不想向应用程序用户解释,他们必须通过在设置中导航来手动下载它们

Siri语音似乎是我手机上预装的唯一高品质语音,不幸的是,苹果不允许我们在AVSpeech中使用这些语音​合成器。(例如,选择其中一个作为AVSpeechSynthesisVoice

let utterance = AVSpeechUtterance(string: "This is a test.")
utterance.voice = AVSpeechSynthesisVoice(identifier: "com.apple.ttsbundle.siri_female_en-US_premium")
speechSynthesizer.speak(utterance)

没有效果;使用的是较低质量的默认语音。)

我也在想同样的事情。目前我能做的最好的事情就是提供启动设置,并要求他们在搜索字段中键入“voices”,以便轻松找到它。