Comments (2)
libsox which is used as the loading library uses 32-bit int for all its operations. The upscaling is probably due to that and harmless. You can scale down via a simple division.
from lua---audio.
Yes, I confirm that re-scaling the numbers to 16 bit integer gives the expected results. Thanks
require 'audio'
require 'gnuplot'
f = "11k16bitpcm.wav"
d, fs = audio.load(f)
d:div(2^31):mul(2^15)
gnuplot.pngfigure("audio_sample_hist.png")
gnuplot.hist(d[{{},1}], 13, -35000, 30000)
gnuplot.plotflush()
from lua---audio.
Related Issues (14)
- audio.load(...) leaks memory HOT 3
- Incompatible with lua 5.3 HOT 1
- audio.decompress from lua i/o? HOT 1
- load_and_save_example.lua not working HOT 7
- torch.CudaTensor doesn't contain field 'libsox'. HOT 1
- Converting large mp3 to wav files - error: Unknown length
- install problem HOT 2
- Dimension is different between lua---audio on librosa! HOT 7
- I've saved the 'spect' image, but there is just white-banded image. HOT 2
- formats: no handler for file extension `mp3' HOT 16
- error with libfftw3 with installing audio
- Apple .m4a? HOT 1
- Building against 5.2 HOT 3
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 lua---audio.