Skip to content

Commit

Permalink
[fix] AttributeError amazon speech to text async
Browse files Browse the repository at this point in the history
  • Loading branch information
floflokie committed Dec 11, 2023
1 parent 466f0e1 commit 007ee65
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 377 deletions.
2 changes: 1 addition & 1 deletion edenai_apis/apis/amazon/amazon_audio_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def audio__speech_to_text_async__get_job_result(
diarization_entries = []
words_info = original_response["results"]["items"]
speakers = (
original_response["results"].get("speaker_labels", {}) or {}
original_response.get("results", {}).get("speaker_labels", {}) or {}
).get("speakers", 0)

for word_info in words_info:
Expand Down
Loading

0 comments on commit 007ee65

Please sign in to comment.