https://github.com/michaeldzjap/py-wav2json
Generate a waveform.js compatible JSON data representation of a wav file
https://github.com/michaeldzjap/py-wav2json
audio json python wav wav2json
Last synced: over 1 year ago
JSON representation
Generate a waveform.js compatible JSON data representation of a wav file
- Host: GitHub
- URL: https://github.com/michaeldzjap/py-wav2json
- Owner: michaeldzjap
- License: mit
- Created: 2015-03-18T15:06:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T12:22:46.000Z (over 3 years ago)
- Last Synced: 2025-02-28T16:11:05.244Z (over 1 year ago)
- Topics: audio, json, python, wav, wav2json
- Language: Python
- Size: 5.86 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-wav2json
Generate a waveform.js compatible JSON data representation of a wav file
Author: Michael Dzjaparidze
License: MIT
Inspired by [wav2json](https://github.com/beschulz/wav2json), but just a little different.
**note**: py-wav2json depends on [NumPy](http://www.numpy.org/) and [SciPy](https://www.scipy.org/)
# Examples
python wav2json.py -i track.wav
will create a JSON file containing a single linearly interpolated approximation of the wav file at 800 equally spaced data points. Note that N-channel wav files are first independently interpolated before computing the average of the N channels.