繁体   English   中英

AVSpeechSynthesisVoice 在 iOS 16 beta 中崩溃

[英]AVSpeechSynthesisVoice crashing in iOS 16 beta

在 iOS 16 beta 上,以下代码崩溃:

AVSpeechSynthesisVoice(language: "en-US")!

带有以下错误代码:

Fatal error: Unexpectedly found nil while unwrapping an Optional value

它之前运行良好,我没有看到任何 API 更改。

有谁知道会发生什么?

Apple 似乎错过了将语音库添加到 iOS 16 beta 中。 下面的代码返回 nil。

AVSpeechSynthesisVoice.speechVoices()

哪个应该返回可用声音的列表。 我提交了一个错误,你也应该。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM