How to save audio output to a wav file?

loliaudiololiaudio Posts: 1Member
edited December 2018 in Audio

I've created a music game that the user creates a song combining audio loops.
I would like to implement a record audio feature so the user can save his song in a wav file.

Is it possible to do it using AudioEffectRecord and AudioStreamSample.save_to_wav() ???

Could not find any examples on how to do it.
Need help on this. Anyone?



Tags :


  • TwistedTwiglegTwistedTwigleg Posts: 1,000Admin

    To the best of my knowledge, there is no way to save audio files in Godot.

    You can make a feature request on the Godot Github repository and see if one of the developers there are interested in potentially adding the functionality into the Godot core.

    You may be able to make a way to save audio using GDNative, though I have no idea how hard that would be.

    Another potential way to get around the issue could be using C# and a C# audio library instead of Godot's audio system. Then in theory you could just trigger sounds when needed using the C# audio library and then, using the C# library, save the sounds to the a file. Once again, I have no idea how hard it would be.

    Hopefully this helps!

Sign In or Register to comment.