MeloTTS icon indicating copy to clipboard operation
MeloTTS copied to clipboard

Segmentation fault (core dumped)

Open zollty opened this issue 10 months ago • 2 comments

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!

zollty avatar Apr 06 '24 12:04 zollty

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)

MissingTwins avatar Apr 07 '24 14:04 MissingTwins

Got a similar issue, simply prints: Segmentation fault

luquitared avatar Apr 09 '24 04:04 luquitared