Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-audio-visualizations. a few different simple audio visualizations (esp for voice inp flo-bit.dev/svelte-audio-visualizations
Something went wrong. Try again.
12345678910111213141516<script lang="ts"> import type { ComponentProps } from 'svelte'; import type { AudioProps } from './types'; import { useAudio } from './audio.svelte'; import Glow from '../core/Glow.svelte'; import MicrophoneVisualizer from '../core/MicrophoneVisualizer.svelte';
let props: AudioProps & Omit<ComponentProps<typeof MicrophoneVisualizer>, 'value'> & { glow?: number } = $props(); const audio = useAudio(() => props);</script>
<Glow glow={props.glow ?? 0}> <MicrophoneVisualizer {...props} value={audio.frame.level} /></Glow>