I am using Speech To Text iOS sdk to transcript the real-time audio into the text. I have integrated the Watson STT sdk using cocoapod. I am getting an error whenever I call the startStreaming
method. I have configured everything properly ( created the service, Generated the credential and also making sure SpeechToText instance will be created with proper apikey
and URL
but still I am not able to fix the error.
Here is the code snippet.
let speechToText = SpeechToText(apiKey: Credentials.SpeechToTextAPIKey, iamUrl:
Credentials.SpeechToTextURL)
var accumulator = SpeechRecognitionResultsAccumulator()
func startStreaming() {
var settings = RecognitionSettings(contentType: "audio/ogg;codecs=opus")
settings.interimResults = true
let failure = { (error: Error) in print(error) }
speechToText.recognizeMicrophone(settings: settings, failure: failure) { results in
accumulator.add(results: results)
print(accumulator.bestTranscript)
}
}
As I call the startStreaming
function I always received the below error
CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
ptcl = htps;
"r_Attributes" = 1;
sdmn = "IBM Watson Gateway(Log-in)";
srvr = "gateway-syd.watsonplatform.net";
sync = syna;
}
Any help is highly appreciated. Thanks!