From 9859e4a0bc81354c5af23c7868e0d0403abdb100 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Jun 2022 23:07:51 -0400 Subject: [PATCH] fix: accidentally left the voice hardcoded to brian --- TTS/POLLY.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/POLLY.py b/TTS/POLLY.py index a32510f..95db5e6 100644 --- a/TTS/POLLY.py +++ b/TTS/POLLY.py @@ -76,7 +76,7 @@ class POLLY: chunkId = 0 for chunk in chunks: - body = {'voice': 'Brian', 'text': chunk} + body = {'voice': voice, 'text': chunk} resp = requests.post(self.url, data=body) voice_data = requests.get(resp.json()['speak_url']) with open(filename.replace(".mp3", f"-{chunkId}.mp3"), "wb") as out: