I want to send a wav file to my project. I tried encoding the wav using base64encode(fileget_contents()) which created a base64 string that I can pass successfully to Godot I tried to decode and create a new stream
var buffer = PoolByteArray() # Array that will hold the data.
var file = base64String
buffer = Marshalls.base64_to_raw(file)
var stream = AudioStreamSample.new()
stream.format = AudioStreamSample.FORMAT_16_BITS
stream.data = buffer
stream.stereo = true
audioStreamPlayer.stream = stream
But sadly that doesn't produce the audio that is being sent. Does anyone knows how to implement this?