We have an iOS app that uses AVSpeechSynthesizer to speak. It works on the iPad and other devices - but we notice it is not working on our iPhone 6 Plus.
When examining the console output we see this error:
|AXSpeechAssetDownloader|error| ASAssetQuery error fetching results Error Domain=ASError Code=21 "The operation couldn’t be completed. (ASError error 21 - Unable to copy asset information)" UserInfo=0x174a7e100 {NSDescription=Unable to copy asset information}
The device on which the app is running does have a network connection.
Any ideas how to even begin solving this?
You may see this error also if you are passing string into AVSpeechUtterance constructor in language A, but asking to speech it using language B.
Example:
In this case "Hello" is not a Polish language (pl-PL). App shows such Error and may (in some cases) speeches text.