Skip to content

Commit d640ec8

Browse files
authored
removed sample generation
I noticed that the sample generation forces download the "voice-en-us-danny-low" model regardless of user-selected model, and the print voice list command actually causes it to have the following error: ``` File ".../dimits/main.py", line 90, in <listcomp> return [[str(asset['name']).split('.')[0] for asset in release['assets'] if asset['name'].startswith('voice')] for release in data][-1] ~~~~~~~^^^^^^^^^^ TypeError: string indices must be integers, not 'str' ```
1 parent 7f60623 commit d640ec8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dimits/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ def text_2_speech(self, text: str, engine: str = None , **kwargs: str) -> None:
215215

216216

217217

218-
print(Dimits.list_voice())
219-
Dimits("voice-en-us-danny-low").text_2_speech(text="""
220-
Here is a randomly generated short story:
218+
# print(Dimits.list_voice())
219+
# Dimits("voice-en-us-danny-low").text_2_speech(text="""
220+
# Here is a randomly generated short story:
221221

222-
It was a dark and stormy night. John was home alone, sitting in his living room reading a book. The wind howled outside as the rain pattered against the windows. Suddenly, there was a loud crash from the kitchen. John jumped up, his heart racing. What was that?
222+
# It was a dark and stormy night. John was home alone, sitting in his living room reading a book. The wind howled outside as the rain pattered against the windows. Suddenly, there was a loud crash from the kitchen. John jumped up, his heart racing. What was that?
223223

224-
As John slowly walked towards the kitchen, he could hear a strange skittering sound. He flipped on the light switch, but the power was out. Grabbing a flashlight from a drawer, he shined it around the room. In the beam of light, John saw the shattered remains of a flower vase on the floor.""", filename='test', directory='C:\\Users\\Ananiya\\PyProject\\PyPiperTTS\\dimits')
224+
# As John slowly walked towards the kitchen, he could hear a strange skittering sound. He flipped on the light switch, but the power was out. Grabbing a flashlight from a drawer, he shined it around the room. In the beam of light, John saw the shattered remains of a flower vase on the floor.""", filename='test', directory='C:\\Users\\Ananiya\\PyProject\\PyPiperTTS\\dimits')
225225

226226

227227

0 commit comments

Comments
 (0)