[Python] FluidSynth() output volume is too low

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    In my Python script, I am using FluidSynth to convert .mid files to .wav files:

    fs = FluidSynth()
    fs.midi_to_audio('myfile.mid', 'myfile.wav')


    FluidSynth successfully converts myfile.mid to myfile.wav and saves the output, everything goes well.

    The problem is the output volume is too low.

    I saw in FluidSynth documentation is that I can insert option -g or --gain to FluidSynth to increase the default volume of 0.2.

    So in the FluidSynth() instance, in the Python script, how can I pass the -g option to increace output volume?

    Any help would be much appreciated.

    Continue reading...

Compartilhe esta Página