AVSpeechSynthesisVoice always returns nil
Originator: | justin | ||
Number: | rdar://21792088 | Date Originated: | 071315 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | Version 7.0 beta 3 (7A152u) |
Classification: | Serious Bug | Reproducible: | Always |
No matter what language string provided AVSpeechSynthesisVoice(language: "en-US") always returns nil Steps to Reproduce: let utter = AVSpeechUtterance(string: "hello and good morning") let voice = AVSpeechSynthesisVoice(language: "en-US") utter.voice = voice if voice == nil { print("bad voice") } let synth = AVSpeechSynthesizer() synth.speakUtterance(utter) Expected Results: I expect the voice synthesizer to speak the string Actual Results: 2015-07-13 08:30:59.598 SpeechSynthesiserTest[10298:128678] AXAlternativeVoices was unable to retrieve custom voice assets. This could possibly be caused by someone requesting voices they are not entitled to. Error: Error Domain=ASError Code=21 "The operation couldn’t be completed. (ASError error 21 - Unable to copy asset information)" UserInfo=0x7fc3b0616d30 {NSDescription=Unable to copy asset information} 2015-07-13 08:30:59.600 SpeechSynthesiserTest[10298:128678] |AXSpeechAssetDownloader|error| ASAssetQuery error fetching results (for com.apple.MobileAsset.MacinTalkVoiceAssets) Error Domain=ASError Code=21 "The operation couldn’t be completed. (ASError error 21 - Unable to copy asset information)" UserInfo=0x7fc3b061d730 {NSDescription=Unable to copy asset information} Version: Version 7.0 beta 3 (7A152u) Notes: Configuration: Attachments: 'SpeechSynthesizerTest.playground.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!