Skip to content

Commit 82981c4

Browse files
Updated the package name
1 parent e18e3bd commit 82981c4

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Fast-TTS
22

3-
3+
Fast-TTS is a module that offers a simple api in order to generate a speech from text.
44

55

66
## Requirements
7-
- Python 3.9
7+
- Python 3.9
8+
- CUDA enabled GPU

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
description = f.read()
55

66
setup(
7-
name='fast-tts',
8-
version='0.0.1',
7+
name='fast_tts',
8+
version='0.0.2',
99
long_description=description,
1010
long_description_content_type='text/markdown',
1111
packages=find_packages(),

src/Fast_TTS/fast_tts.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,23 @@
44

55
class FastTTS:
66

7-
def fast_tts(text, delimiter='', speaker='Default',
7+
def fast_tts(text, voice_dir, result_dir, delimiter='',
88
index_rate=0.5, filter_radius=3, resample_sr=0, rms_mix_rate=0.25, protect=0.33):
99
try:
1010
print('Fast TTS')
1111

1212
print('Text: ', text)
1313

14-
voice_dir = f"C:\\backend_server\\ServerFiles\\Speakers\\Drinker"
14+
# voice_dir = f"C:\\backend_server\\ServerFiles\\Speakers\\Drinker"
1515

16-
result_dir = f"C:\\Users\\Mathieu\\Desktop"
16+
# result_dir = f"C:\\Users\\Mathieu\\Desktop"
1717

1818
audio_path = tortoise.create_audio(text,voice_dir,result_dir,delimiter)
19-
2019

2120
rvc.clone_voice(voice_dir, audio_path)
2221

23-
24-
2522
except Exception as e:
2623
print('Error in Fast TTS: ', e)
2724

2825

29-
30-
31-
32-
33-
34-
FastTTS.fast_tts('Hello World! This is the ultimate test of the Fast TTS! I hope it works! Thank you!')
26+
#FastTTS.fast_tts('Hello World! This is the ultimate test of the Fast TTS! I hope it works! Thank you!')

0 commit comments

Comments
 (0)