This commit is contained in:
Oleg Petruny 2025-02-21 21:54:37 +01:00
parent 803af429b3
commit 67e9eb8dfb
3 changed files with 9 additions and 9 deletions

View File

@ -5,8 +5,8 @@ from TTS.api import TTS
device = "cuda" if torch.cuda.is_available() else "cpu" device = "cuda" if torch.cuda.is_available() else "cpu"
tts = TTS("tts_models/multilingual/multi-dataset/bark").to(device) tts = TTS("tts_models/multilingual/multi-dataset/bark").to(device)
tts.tts_to_file(text="Greetings Martin. This is a synthesized speech for future dialogues. \ tts.tts_to_file(text="Greetings Nikolay. How is your mother? I didn't saw it after that incident. \
As you can see [cough] I mean hear... Yes, hear with your own ears, the speech trained from 2min audio is indeed impressive.", [cough] Thought you making good at school. And stop laming feed in Dota you garbage.",
voice_dir=".\\voices\\", voice_dir=".\\voices\\",
speaker="Test", speaker="Mortis",
file_path=".\\output\\Test.wav") file_path=".\\output\\Mortis.wav")

View File

@ -101,9 +101,9 @@ if (-not (Is-PythonInstalled)) {
Install-Python Install-Python
} }
Setup-Python-Environment Setup-Python-Environment
Install-Espeakng #Install-Espeakng
Install-MsBuildTools #Install-MsBuildTools
Install-CUDA #Install-CUDA
Install-PyTorch Install-PyTorch
Install-Coqui Install-Coqui
mkdir output mkdir output

BIN
VoiceGenerator/voices/Mortis/Mortis.wav (Stored with Git LFS)

Binary file not shown.