[F] Fix #251: Expected a value of type 'str'
This commit is contained in:
1 parent
94f90e149e
commit
0c6e113aff
3 files changed
+9
-9
No files matched your search
@@ -1113,7 +1113,7 @@ class tts_class:
|
||||
else:
|
||||
self.print_message("Starting non-streaming generation", message_type="debug_tts")
|
||||
output = self.model.inference(**common_args)
|
||||
torchaudio.save(output_file, torch.tensor(output["wav"]).unsqueeze(0), 24000)
|
||||
torchaudio.save(str(output_file), torch.tensor(output["wav"]).unsqueeze(0), 24000)
|
||||
self.print_message(f"Saved audio to: {output_file}", message_type="debug_tts")
|
||||
|
||||
elif self.current_model_loaded.startswith("apitts"):
|
||||
|
||||
Reference in new issue
Block a user