making it all work

This commit is contained in:
talksik
2023-04-29 09:04:10 -07:00
parent 8da2b266ad
commit 843b7fba09
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
import google.cloud.texttospeech as tts
# todo: make sure to make the file name unique and delete it after sending
def text_to_wav(voice_name: str, text: str):
language_code = "-".join(voice_name.split("-")[:2])
text_input = tts.SynthesisInput(text=text)