N
Nyxis
Multimodal

AudioPlayer

Compact player for TTS / transcribed audio — play, seek, mute, cycle speed, download.

Preview

Voice reply

0:000:00

Installation

pnpm add nyxis-ui

Usage

import { AudioPlayer } from 'nyxis-ui';

<AudioPlayer src="/api/tts?text=hello" title="Voice reply" waveform={precomputedAmplitudes} />;

Controls

ControlBehaviour
Play / pauseToggles playback.
WaveformClick anywhere to scrub via the thin range below.
TimeCurrent / total in m:ss.
SpeedCycles through 0.75x → 1x → 1.25x → 1.5x → 2x (configurable via speeds).
MuteToggles audio.muted.
DownloadDirect link to src.

Composition

  • Composes <VoiceWaveform> with progress driven from the underlying <audio> element.
  • Pair with <TranscriptionView> listening to the same audio time to get a synced caption track.