Skip to main content

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)

Metadata

Release files for st-audio-spectrogram 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for st-audio-spectrogram 0.0.5
File Interpreter ABI Platform Actions
st_audio_spectrogram-0.0.5-py3-none-any.whl Python 3 none any Details for st_audio_spectrogram-0.0.5-py3-none-any.whl

Release files / st_audio_spectrogram-0.0.5-py3-none-any.whl

Download URL st_audio_spectrogram-0.0.5-py3-none-any.whl
Size 653.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
070fc6b7e270e8f34f431f1300f32db4ef8ecc510821ef62e2eb837fae6b9ac1
BLAKE2b-256 checksum
How to use checksums
00350d75fb6f7ad4538b24ee187cbe533e721369d131a73096a733881a1ed435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for st-audio-spectrogram 0.0.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page