Skip to content

Commit

Permalink
feat: add speaking rate to audio condig
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 committed Feb 20, 2024
1 parent d888baf commit 4cfaca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai/talking-video-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def Text2Speech(self, sentence):

# Select the type of audio file you want returned
audio_config = texttospeech.AudioConfig(
audio_encoding=texttospeech.AudioEncoding.MP3)
audio_encoding=texttospeech.AudioEncoding.MP3, speaking_rate=0.6)

# Perform the text-to-speech request on the text input with the selected
# voice parameters and audio file type
Expand Down

0 comments on commit 4cfaca9

Please sign in to comment.