Skip to content

Commit

Permalink
Fix output on cli for stt error
Browse files Browse the repository at this point in the history
  • Loading branch information
titilambert committed Aug 2, 2017
1 parent 2d84347 commit 4e88ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynuance/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def speech_to_text(app_id, app_key, language, all_=False, raw=False):
sys.exit(1)
if raw:
print(json.dumps(result))
elif not result:
elif not result or not result[0].get("transcriptions"):
print("No result from Nuance. Check your microphone volume")
else:
if all_:
Expand Down

0 comments on commit 4e88ce2

Please sign in to comment.