-
❓ Questions and HelpWe have a wiki available for our users. Please make sure you have checked it out first. Okay when I try to run this example it always create a 'test.wav' file. I wanted to have a custom name or file path where it could be saved because I'm working on a project that uses this through multithreading. The 'test.wav' file can only exist once in a folder. There is also no mention of renaming the saved wav file in the documentation, (unless I missed it and please tell me where). V3 ENimport os device = torch.device('cpu') if not os.path.isfile(local_file): model = torch.package.PackageImporter(local_file).load_pickle("tts_models", "model") example_text = 'Hello there.' audio_paths = model.save_wav(text=example_text, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The But I encourage you to use the codec of your liking and save the audio by yourself. Beware that the model may output float values and some codecs / libraries may not check the inputs or require int values. |
Beta Was this translation helpful? Give feedback.
The
model
hasmodel.save_wav
method that has the same params as apply tts, but also has anaudio_path
parameter.But I encourage you to use the codec of your liking and save the audio by yourself. Beware that the model may output float values and some codecs / libraries may not check the inputs or require int values.