AVSpeechSynthesizer 在 iOS 10上报错


AVSpeechSynthesizer *avSpeecher = [[AVSpeechSynthesizer alloc] init];

iOS 10上使用AVSpeechSynthesizer时会输出错误日志,但avSpeecher 还可以使用

[MobileAssetError:1] Unable to copy asset attributes
Could not get attribute 'LocalURL': Error Domain=MobileAssetError Code=1 "Unable to copy asset attributes" UserInfo={NSDescription=Unable to copy asset attributes}
0x17415b800 Copy matching assets reply: XPC_TYPE_DICTIONARY   { count = 2, transaction: 0, voucher = 0x0, contents =
    "Assets" => : { length = 1237 bytes, contents = 0x62706c6973743030d4010203040506636458247665727369... }
    "Result" => : 0
}
0x17015bee0 Copy assets attributes reply: XPC_TYPE_DICTIONARY   { count = 1, transaction: 0, voucher = 0x0, contents =
    "Result" => : 1
}

该问题原因未知,待解决

你可能感兴趣的:(AVSpeechSynthesizer 在 iOS 10上报错)