Voice Activity Meter
A copy-paste audio & waveforms component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Audio & WaveformsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-vmeter">
<!-- Repeat 16 cells. Add .is-on up to current level, .is-hot for >=6 -->
<span class="nuda-vmeter__cell is-on"></span>
<span class="nuda-vmeter__cell is-on"></span>
<!-- ... -->
<span class="nuda-vmeter__cell is-on is-hot"></span>
<span class="nuda-vmeter__cell"></span>
</div>CSS
.nuda-vmeter {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 8px 12px;
background: rgba(0,0,0,.4);
border-radius: 8px;
}
.nuda-vmeter__cell {
width: 3px;
height: 16px;
background: rgba(255,255,255,.08);
border-radius: 1px;
transition: background .15s;
animation: _vmeterPulse 1.2s ease-in-out infinite;
}
.nuda-vmeter__cell.is-on {
background: #6ee7b7;
}
.nuda-vmeter__cell.is-hot.is-on {
background: #ffb45e;
}
.nuda-vmeter__cell:not(.is-on) {
animation: none;
}
@keyframes _vmeterPulse {
0%,100% {
opacity: .6;
transform: scaleY(.6);
}
50% {
opacity: 1;
transform: scaleY(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-vmeter__cell {
animation: none;
}
}
How to use Voice Activity Meter
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.