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

[Feat] Deepgram TTS #191

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Conversation

Daggx
Copy link
Contributor

@Daggx Daggx commented Apr 25, 2024

No description provided.

@Daggx Daggx requested a review from DninoAdnane April 25, 2024 13:09
@@ -206,7 +206,7 @@ def audio__text_to_speech(
if audio_format:
base_url += f"&container={audio_format}"

if sampling_rate or sampling_rate != 0:
if sampling_rate and sampling_rate != 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry to be samet :(
we can actually than just write:

if sampling_rate:

Copy link
Contributor Author

@Daggx Daggx Apr 29, 2024

Choose a reason for hiding this comment

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

0 is not accepted and it will return an error (if the user send 0 or None than it should ignore the sampling_rate)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, with the condition if sampling_rate he will automatically not enter the if condition (0 is considered as False also)

@Daggx Daggx requested a review from DninoAdnane April 29, 2024 15:29
@Daggx Daggx merged commit 3015276 into master Apr 29, 2024
1 of 2 checks passed
@Daggx Daggx deleted the EAISCRUM-1375-add-deepgram-to-text-to-speech branch April 29, 2024 15:57
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.

None yet

2 participants