Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deepgram #10

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Deepgram #10

merged 3 commits into from
Apr 4, 2024

Conversation

jquagga
Copy link
Owner

@jquagga jquagga commented Apr 4, 2024

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jquagga - I've reviewed your changes and found some issues that need to be addressed.

Blocking issues:

  • Ensure the Deepgram API key is securely managed. (link)
Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🔴 Security: 1 blocking issue
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -21,7 +20,6 @@ def transcribe_call(destinations):
if not jsonlist:
print("Empty queue. Sleep 5 seconds and check again.")
time.sleep(5)
switch_model("normal")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (performance): Removal of model switching logic.

Confirm that the removal of dynamic model switching won't negatively impact performance or accuracy under varying loads.

Path.unlink(audiofile)
# And now merge that dict into calljson so [text] in calljson is the transcript
calljson = {**calljson, **calltext}
return calljson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (edge_case_not_handled): Implementation of Deepgram transcription service.

Review the error handling strategy for network or API failures to ensure robustness.

@jquagga jquagga merged commit 0a517d6 into main Apr 4, 2024
4 checks passed
@jquagga jquagga deleted the deepgram branch April 4, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant