Options for useAudioPlayer.
All fields optional; defaults cover OpenAI gpt-4o-audio-preview
pcm16 streams (sampleRate: 24000, channels: 1) and any WAV
stream the upstream model emits.
interface UseAudioPlayerOptionsBegin playback as soon as the first byte arrives (PCM strategy)
or the blob settles (element strategy). Subject to browser
autoplay policies — on sites without prior user gesture, the
underlying play() may be rejected and the hook transitions to
"error" with a descriptive message.
Overrides for the PCM strategy. Ignored by the element strategy
and by WAV streams (the RIFF fmt chunk is authoritative there).
Additional mime prefixes that should be treated as raw PCM16
(in addition to audio/pcm / audio/L16). Use when upstream
reports a custom mime like audio/pcm16.
Force a specific playback strategy. Default "auto" picks "pcm"
for PCM / L16 / WAV mime types and "element" for everything else.