SpeechSynthesizer.audioData(with:completionHandler:) should return error if it's present.
MaximAlien opened this issue · comments
Maxim Makhun commented
As part of fix for #2521 clients should have the ability to get error which might contain additional info about URLSessionDataTask
failure (e.g. code
). Because other checks are performed first in callback (whether data or response are valid) there is no such way at this point.