myshell-ai / MeloTTS

High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean.
MIT License
3.98k stars 476 forks source link

Segmentation fault (core dumped) #94

Open zollty opened 2 months ago

zollty commented 2 months ago

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!

MissingTwins commented 2 months ago

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)
luquitared commented 2 months ago

Got a similar issue, simply prints: Segmentation fault