We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0e039 commit 39d88e2Copy full SHA for 39d88e2
transcribe-speech-text-script/get_transcription.py
@@ -23,5 +23,9 @@ def get_transcription(transcription_id):
23
args = parser.parse_args()
24
transcription_id = args.transcription_id
25
response_json = get_transcription(transcription_id)
26
- for word in response_json['words']:
27
- print(word['text'], end=" ")
+ if response_json['status'] == "completed":
+ for word in response_json['words']:
28
+ print(word['text'], end=" ")
29
+ else:
30
+ print("current status of transcription request: {}".format(
31
+ response_json['status']))
0 commit comments