""" Waveform Visualizer Component Custom Streamlit component using wavesurfer.js """ import streamlit as st import streamlit.components.v1 as components def waveform_player(audio_url: str, height: int = 128, wavecolor: str = "#4F46E5", progresscolor: str = "#818CF8"): """ Render an interactive waveform player using wavesurfer.js Args: audio_url: URL or base64 data URL of the audio file height: Height of the waveform in pixels wavecolor: Color of the waveform progresscolor: Color of the progress indicator Returns: None (renders component inline) """ html_code = f"""