steveatkin / Subtitler

Generate and translate a SubRip file from a video using Watson Speech to Text and Globalization Pipeline.
Apache License 2.0
17 stars 6 forks source link

Has this failed for speechToText v1? #2

Open Sryn opened 2 years ago

Sryn commented 2 years ago

Subtitler failed with this message

Finished generating audio file: XXX.mp3 Using model: ja-JP_BroadbandModel Size of audio file: 12.90 MB /Users/Sryn/Projects/Subtitler/subtitler.js:180 var recognizeStream = speech_to_text.createRecognizeStream(params); ^

TypeError: speech_to_text.createRecognizeStream is not a function at getSubtitles (/Users/Sryn/Projects/Subtitler/subtitler.js:180:42) at /Users/Sryn/Projects/Subtitler/subtitler.js:321:13 at /Users/Sryn/Projects/Subtitler/subtitler.js:91:24 at FfmpegCommand. (/Users/Sryn/Projects/Subtitler/subtitler.js:127:20) at FfmpegCommand.emit (node:events:394:28) at emitEnd (/Users/Sryn/Projects/Subtitler/node_modules/fluent-ffmpeg/lib/processor.js:426:16) at endCB (/Users/Sryn/Projects/Subtitler/node_modules/fluent-ffmpeg/lib/processor.js:587:15) at handleExit (/Users/Sryn/Projects/Subtitler/node_modules/fluent-ffmpeg/lib/processor.js:170:11) at Socket. (/Users/Sryn/Projects/Subtitler/node_modules/fluent-ffmpeg/lib/processor.js:197:11) at Socket.emit (node:events:406:35)

I suspect this is because IBM has deprecated speechToText v1. Is this the case or is my issue due to something else?