haoheliu / AudioLDM

AudioLDM: Generate speech, sound effects, music and beyond, with text.
https://audioldm.github.io/
Other
2.45k stars 222 forks source link

'ffmpeg' is not recognized error in Web APP #91

Open soundversegit opened 1 year ago

soundversegit commented 1 year ago

When I run the Web APP I get the following error no matter what parameters I set. I have set up the environment with all the package requirements as stated. I also installed ffmpeg and added it to my path, but I still get the same error and the audio generated won't play. When I download the audio file it is corrupted and won't play either.

UserWarning: Trying to convert audio automatically from float32 to 16-bit int format. warnings.warn(warning.format(data.dtype)) 'ffmpeg' is not recognized as an internal or external command, operable program or batch file.

Anyone know why this is happening?

soundversegit commented 1 year ago

The app.py script has video output set and audio output commented out, as follows:

############# Output
            # outputs=gr.Audio(label="Output", type="numpy")
            outputs = gr.Video(label="Output", elem_id="output-video")

Should this be the other way round?

However, even switched to gr.Audio I still get the ffmpeg error.