Sep-17-2017, 05:44 AM
Hi, I'm trying to use IBM Watson BlueMix Speech-To-Text to transcribe my spoken-word audio files.
I've already signed up for a BlueMix account.
I'm on Linux Mint 18.2 Cinnamon 64-bit.
I'm looking for the easiest way to engage BlueMix, and found this: https://github.com/rmotr/speech-to-text
So the first step is:
sudo -H pip install speech-to-text
Requirement already satisfied (use --upgrade to upgrade): speech-to-text in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): click==6.7 in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): watson-developer-cloud==0.25.1 in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): progressbar in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): requests<3.0,>=2.0 in /usr/local/lib/python2.7/dist-packages (from watson-developer-cloud==0.25.1->speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): pysolr<4.0,>=3.3 in /usr/local/lib/python2.7/dist-packages (from watson-developer-cloud==0.25.1->speech-to-text)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Then this command:
speech_to_text -u myUsernameGoesHere -p myPasswordGoesHere -f html -i Audio/for_ibm_watson/Speech02.ogg transcript.html
Starting Upload.
[=========================================================================] 100%
Upload finished. Waiting for Transcript
Traceback (most recent call last):
File "/usr/local/bin/speech_to_text", line 11, in <module>
sys.exit(speech_to_text())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/command.py", line 60, in speech_to_text
formatted_output = FormatterClass().format(result)
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 36, in format
for obj in self._parse(data))
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 10, in _parse
for obj in data['results'])
KeyError: 'results'
-----
Can anyone tell me what's wrong, and how I can get it to work?
I've already signed up for a BlueMix account.
I'm on Linux Mint 18.2 Cinnamon 64-bit.
I'm looking for the easiest way to engage BlueMix, and found this: https://github.com/rmotr/speech-to-text
So the first step is:
sudo -H pip install speech-to-text
Requirement already satisfied (use --upgrade to upgrade): speech-to-text in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): click==6.7 in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): watson-developer-cloud==0.25.1 in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): progressbar in /usr/local/lib/python2.7/dist-packages (from speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): requests<3.0,>=2.0 in /usr/local/lib/python2.7/dist-packages (from watson-developer-cloud==0.25.1->speech-to-text)
Requirement already satisfied (use --upgrade to upgrade): pysolr<4.0,>=3.3 in /usr/local/lib/python2.7/dist-packages (from watson-developer-cloud==0.25.1->speech-to-text)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Then this command:
speech_to_text -u myUsernameGoesHere -p myPasswordGoesHere -f html -i Audio/for_ibm_watson/Speech02.ogg transcript.html
Starting Upload.
[=========================================================================] 100%
Upload finished. Waiting for Transcript
Traceback (most recent call last):
File "/usr/local/bin/speech_to_text", line 11, in <module>
sys.exit(speech_to_text())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/command.py", line 60, in speech_to_text
formatted_output = FormatterClass().format(result)
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 36, in format
for obj in self._parse(data))
File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 10, in _parse
for obj in data['results'])
KeyError: 'results'
-----
Can anyone tell me what's wrong, and how I can get it to work?