-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the xtts-1 model on windows (python 3.11.6), every time I run the tts_to_file
function, it gives the error TypeError: Invalid file: None
To Reproduce
On windows with python 3.11.6, with torch, torchaudio (not sure if needed, but just to be sure) and TTS installed, run this snippet
import torch
from TTS.api import TTS
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1").to("cuda" if toch.cuda.is_available() else "cpu")
# any combination of parameters gives the same error.
tts.tts_to_file("Hello, world!", language="en") # Expected error: "TypeError: Invalid file: None"
Expected behavior
The audio output should be written to output.wav, or the specified file name.
Logs
No response
Environment
- 🐸TTS Version: 0.17.8
- PyTorch Version: 2.1.0+cpu
- Python Version: 3.11.6
- OS: Windows 11
- CUDA/cuDNN version: null
- GPU models and configuration: AMD Ryzen 7 5700G with Radeon Graphics
- How you installed PyTorch: pip on a virtual environment
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working