Closed dstotijn closed 7 years ago
Finally did get it working. I just manually filled an audio.IntBuffer
with sample data and passed that to Encoder.Write
. For anybody interested, here is the code: https://gist.github.com/dstotijn/9741aecb2ecccf4786939cb534a6f49a
Thanks buddy!
This is exactly what I was looking for - it would be great to have an example in the docs of how to take the contents of a bytes.Buffer
in a known format and just dump it to a file with a header...
Hi Matt,
I've been experimenting with
go-audio/audio
andgo-audio/wav
, trying to parse PCM data (signed, 8 kHz, 16 bit, 1 channel) coming from Amazon Polly into a .wav file. Is this possible? The PCM data I have from Amazon is in aio.ReadCloser
. I've tried writing it to a file and decoding that withFullPCMBuffer
but then I encounter a "PCM chunk not found" error.Any help/pointers are welcome. Thanks! :)