mapbox / mapbox-speech-swift

Natural-sounding text-to-speech in Swift or Objective-C on iOS, macOS, tvOS, and watchOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpeechSynthesizer.audioData(with:completionHandler:) should return error if it's present.

MaximAlien opened this issue · comments

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.