wip
This commit is contained in:
parent
b71bedb62a
commit
27cdf52a4a
23 changed files with 5605 additions and 758 deletions
22
test.py
Normal file
22
test.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import torch
|
||||
from TTS.api import TTS
|
||||
|
||||
|
||||
def main():
|
||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||
print(TTS().list_models().list_models())
|
||||
|
||||
tts = TTS(
|
||||
model_name="tts_models/multilingual/multi-dataset/xtts_v2", progress_bar=False
|
||||
).to(device)
|
||||
|
||||
tts.tts_to_file(
|
||||
"Esto es una prueba. Esto es otra prueba!!",
|
||||
speaker="Gracie Wise",
|
||||
language="es",
|
||||
file_path="output.wav",
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue