ibm-cloud-speech

IBM Cloud Speech-to-Text SDK auth failures with bearer token

独自空忆成欢 提交于 2020-04-17 21:08:23
问题 I'm learning to use the Watson Speech JS SDK. In particular I like Transcribe from Microphone, with Alternatives. I'm generating my token with a Firebase Cloud Function. I'm using AngularJS, not JQuery. The first problem I'm running into is var stream = WatsonSpeech.SpeechToText.recognizeMicrophone(Object.assign(token, { objectMode: true, format: false, wordConfidence: true })); I got this error message: WatsonSpeechToText: missing required parameter: opts.token (Using $scope.token or token

IBM Watson Speech-to-Text “unable to transcode data stream audio/webm -> audio/x-float-array” media MIME types

拜拜、爱过 提交于 2020-03-25 12:30:42
问题 I'm recording short audio files (a few seconds) in Chrome using mediaDevices.getUserMedia() , saving the file to Firebase Storage, and then trying to send the files to IBM Watson Speech-to-Text. I'm getting back this error message: unable to transcode data stream audio/webm -> audio/x-float-array In the browser I set up the microphone: navigator.mediaDevices.getUserMedia({ audio: true, video: false }) .then(stream => { var options = { audioBitsPerSecond : 128000, mimeType : 'audio/webm' };