Name | st-audio-spectrogram JSON |
Version |
0.0.5
JSON |
| download |
home_page | None |
Summary | Streamlit component to view wavforms and spectrogram |
upload_time | 2024-06-09 15:52:35 |
maintainer | None |
docs_url | None |
author | Douglas Blank |
requires_python | >=3.7 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# st-audio-spectrogram
Streamlit component that allows you to visualize wav file waveforms, and spectrograms, while playing the video.
## Installation instructions
```sh
pip install st-audio-spectrogram
```
## Usage instructions
```python
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)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "st-audio-spectrogram",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Douglas Blank",
"author_email": "doug@comet.com",
"download_url": null,
"platform": null,
"description": "# st-audio-spectrogram\n\nStreamlit component that allows you to visualize wav file waveforms, and spectrograms, while playing the video.\n\n## Installation instructions\n\n```sh\npip install st-audio-spectrogram\n```\n\n## Usage instructions\n\n```python\nimport streamlit as st\nfrom st_audio_spectrogram import st_audio_spectrogram\n\n# You can also leave any of these out for default values:\nconfig = {\n \"cursor\": {\n \"color\": \"blue\",\n \"width\": 4,\n },\n \"waveform\": {\n \"height\": 128,\n \"color\": \"#4F4A85\",\n \"progressColor\": '#383351',\n \"normalize\": True,\n },\n \"spectrogram\": {\n \"height\": 128,\n \"labels\": True,\n },\n \"colormap\": {\n \"colormap\": \"plasma\",\n \"nshades\": 256,\n \"format\": \"float\",\n },\n \"mediaControls\": True,\n}\n\ndata = open(\"demo.wav\", \"rb\").read()\nst_audio_spectrogram(data, config=config)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Streamlit component to view wavforms and spectrogram",
"version": "0.0.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "00350d75fb6f7ad4538b24ee187cbe533e721369d131a73096a733881a1ed435",
"md5": "24e054e7354a08fe5e20af598a0e8805",
"sha256": "070fc6b7e270e8f34f431f1300f32db4ef8ecc510821ef62e2eb837fae6b9ac1"
},
"downloads": -1,
"filename": "st_audio_spectrogram-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24e054e7354a08fe5e20af598a0e8805",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 653374,
"upload_time": "2024-06-09T15:52:35",
"upload_time_iso_8601": "2024-06-09T15:52:35.422173Z",
"url": "https://files.pythonhosted.org/packages/00/35/0d75fb6f7ad4538b24ee187cbe533e721369d131a73096a733881a1ed435/st_audio_spectrogram-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-09 15:52:35",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "st-audio-spectrogram"
}