Streamlit component to view wavforms and spectrogram
Project description
st-audio-spectrogram
Streamlit component that allows you to visualize wav file waveforms, and spectrograms, while playing the video.
Installation instructions
pip install st-audio-spectrogram
Usage instructions
import streamlit as st
from st_audio_spectrogram import st_audio_spectrogram
# You can also leave any of these out for default values:
config = {
"cursor": {
"color": "blue",
"width": 4,
},
"waveform": {
"height": 128,
"color": "#4F4A85",
"progressColor": '#383351',
"normalize": True,
},
"spectrogram": {
"height": 128,
"labels": True,
},
"colormap": {
"colormap": "plasma",
"nshades": 256,
"format": "float",
},
"mediaControls": True,
}
data = open("demo.wav", "rb").read()
st_audio_spectrogram(data, config=config)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file st_audio_spectrogram-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: st_audio_spectrogram-0.0.2-py3-none-any.whl
- Upload date:
- Size: 653.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e687c45b7343d239eb7a1726cc9e28178123687575fbc311cc6c4ea0c88024c5 |
|
MD5 | a43a0c3b0643928ee41fd58395ba43a0 |
|
BLAKE2b-256 | 406a0fa03031b6f1425cef234660cdb4d8192d02ada5124b7c8ff7d95de68e24 |