Comments (3)
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
from wav.
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...
from wav.
Thanks buddy!
from wav.
Related Issues (20)
- Can I encode g729 wav file? HOT 1
- Return error of ReadInfo() HOT 1
- Oscillogram HOT 1
- How do I actually read PCM samples? HOT 1
- WriteFrame() could accept a slice
- Write() only accepts an IntBuffer? HOT 15
- What am I doing wrong trying to encode a stream from Portaudio as a .wav? HOT 5
- Support converting in memory bytes? HOT 2
- Get raw byte buffer for OpenAL HOT 2
- Please use standard io.EOF to represent end of file events HOT 2
- How to change sample rate? HOT 1
- Sound card input output ?
- How to write G.711u (ulaw / mulaw) to wav? HOT 3
- supporting wav file with 10kHz sampling rate ?
- Offset for PCMBuffer() method
- Support decoding of inst chunks
- [Q] Is it possible to add WAV header to PCM stream? HOT 1
- Duration of so far encoded data?
- Encoded wav is entirely static noise
- when decoding, missing data on io.EOF?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wav.