watson-developer-cloud / speech-to-text-swift

Speech-to-Text example using the Swift SDK
Apache License 2.0
34 stars 17 forks source link

Error when using Swift 3.0.2 #2

Closed niblic99 closed 7 years ago

niblic99 commented 7 years ago

I downloaded the Project and followed the instructions. I had to use carthage update --platform iOS --no-use-binary

since the libs are compiled with Swift 3.0 and are not matching.

I use Swift 3.0.2 and the code is producing an error when running.

keyNotFound("voices")

Error Domain=com.ibm.watson.developer-cloud.TextToSpeechV1 Code=0 "Returned audio is in an unexpected format." UserInfo={NSLocalizedFailureReason=Returned audio is in an unexpected format.}

Solutions of either updating the binaries provided to precompile the project with swift 3.0.2 , and/or whether multiple versions of swift can be installed into xcode.

schen22 commented 7 years ago

The error was being returned due to invalid credentials. The error description returned is unhelpful however, and we will create an issue to modify error checking within the SDK.