Soundviewer
Python package for converting sound to image and image to sound.
for longer sounds try to split them into smaller parts.
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
Linux post-install
On a base linux install you may be missing libsnd.
On Ubuntu and Debian this can be fixed via:
sudo apt-get install libsndfile1-dev
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
image to sound
python3 -m soundviewer.image2sound --input sample_data/thermo.png --output sample_data/thermo.wav
or
python3 soundviewer/image2sound.py --input sample_data/thermo.png --output sample_data/thermo.wav
this will save thermo.wav to your working directory if --output is not specified
use it on your python script
import soundviewer
sound_path = 'sample_data/thermo.wav'
soundviewer.souund_to_image(sound_path)
this will save thermo.jpg to your working directory
if you want you can specify the output path and image name soundviewer.sound2image.save_image_from_sound(sound_path,output='./test.jpg')
image to sound
import soundviewer
sound_path = 'sample_data/thermo.png'
soundviewer.image_to_sound(sound_path)
here is the output image for sample data thermo.wav
wav source : https://people.math.sc.edu/Burkardt/data/wav/thermo.wav
Metadata
Release files for soundviewer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soundviewer-1.0.2.tar.gz | 58.0 kB | Without provenance | Details for soundviewer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| soundviewer-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for soundviewer-1.0.2-py2.py3-none-any.whl |
Total release size: 74.3 kB
Release files / soundviewer-1.0.2.tar.gz
| Download URL | soundviewer-1.0.2.tar.gz |
|---|---|
| Size | 58.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ba13e61391dae0c516efd70bb92e208cc43c72bd0cb619331ee9ccea85fc9d5
|
|
BLAKE2b-256 checksum How to use checksums |
52ff65523a1fbd5d09fa517e3dc6f4c467f7d72004554980c5a8cf7568299e8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / soundviewer-1.0.2-py2.py3-none-any.whl
| Download URL | soundviewer-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a4f56e54f5cb0277d2cc9920519731a11ce7ff4da52c7cd805f349de77973647
|
|
BLAKE2b-256 checksum How to use checksums |
3404538120a4e6a000a332c72ce1d07b81219922ef84a9d51113cc74f4a50783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for soundviewer 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.