I tried the converting from pcm to wav file and succeeded.
However in my go server I want to reduce disk IO becasue all my data are []bytes in memory(my server can generate pcm bytes by some TTS server and will serve as wav bytes for user to download).
NewEncoder function can only accept io.WriteSeeker, and I found a walkaround in stackoverflow to use a in memory one. However I think this walkaround is not elegant nor stable.
So could you consider add such in memory only convertion?
I tried the converting from pcm to wav file and succeeded.
However in my go server I want to reduce disk IO becasue all my data are
[]bytesin memory(my server can generate pcm bytes by some TTS server and will serve as wav bytes for user to download).NewEncoderfunction can only acceptio.WriteSeeker, and I found a walkaround in stackoverflow to use a in memory one. However I think this walkaround is not elegant nor stable.So could you consider add such in memory only convertion?