Python package for sound visualization
Project description
Soundviewer
python package for converting sound to image and image to sound.
for now sound to image is only available.
Installation
pip3 install 'git+https://github.com/emingenc/soundviewer.git'
# Or, to install it from a local clone:
git clone +https://github.com/emingenc/soundviewer.git
pip3 install -e soundviewer
Getting Started
run from local clone
cd soundviewer
pip3 install -r requirements.txt
python3 -m soundviewer.sound2image --input sample_data/thermo.wav --show
or
python3 soundviewer/sound2image.py --input sample_data/thermo.wav --show
if you want to save without showing the image, remove --show
or with --output flag you can specify custom name and spesific path
use it on your python script
import soundviewer
sound_path = 'sample_data/thermo.wav'
soundviewer.sound2image.save_image_from_sound(sound_path)
this will save thermo.jpg to your working directory
if you want you can specifiy the output path and image name soundviewer.sound2image(sound_path,output='./test.jpg')
here is the output image for sample data thermo.wav
wav source : https://people.math.sc.edu/Burkardt/data/wav/thermo.wav
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soundviewer-1.0.1.tar.gz.
File metadata
- Download URL: soundviewer-1.0.1.tar.gz
- Upload date:
- Size: 56.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
250ce609811dd3677d777fb92f5e93ba47d81e73b88bfe6dc5e1cfeea8727656
|
|
| MD5 |
73b25e5ae8ec9d4da4643895123daa55
|
|
| BLAKE2b-256 |
1e4011b39631c7c02970df6684eee2d51c3c3744838fb971f42a3bd5bf82d21d
|
File details
Details for the file soundviewer-1.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: soundviewer-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56ac5959188eff4f4dc9c36fc7908d8e4a336a9bc4e86eac68d9c722c21ee0c5
|
|
| MD5 |
ac3e5dd94dfbd82595ae7ccc00c3b536
|
|
| BLAKE2b-256 |
1f4920c99fb6a70d96c9d5b948dd43f1d169fc8dd03d2501713ea08f41a80efc
|