MeloTTS
MeloTTS copied to clipboard
Segmentation fault (core dumped)
the process exit with this message:
Segmentation fault (core dumped)
(this is the whole error msg)
when the format is 'ogg' and text length is a bit big (I'm not sure about the threshold, 2000 chars maybe)
the device is cuda. OS is Ubuntu 22.
when change the format to wav, the error disappear!
There is a way to around this:
import subprocess
# Function to run FFmpeg commands
def run_ffmpeg(start_time, end_time, input_file, output_file):
command = [
'ffmpeg',
'-ss', str(start_time),
'-to', str(end_time),
'-i', input_file,
'-c:a', 'libvorbis',
'-y',
output_file
]
subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Got a similar issue, simply prints:
Segmentation fault