Skip to content

Commit

Permalink
removed sample generation
Browse files Browse the repository at this point in the history
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'

```
  • Loading branch information
robonxt-ai authored Apr 29, 2024
1 parent 7f60623 commit d640ec8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dimits/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,13 @@ def text_2_speech(self, text: str, engine: str = None , **kwargs: str) -> None:



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

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?
# 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?

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')
# 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')



0 comments on commit d640ec8

Please sign in to comment.