# Senseaudio Tts

> Build and debug SenseAudio text-to-speech integrations on `/v1/t2a_v2` and `/ws/v1/t2a_v2`, including sync HTTP, SSE stream, WebSocket event sequencing, hex audio decoding, and voice/audio parameter tuning. Use this whenever user requests TTS generation, low-latency streaming speech, voice selection, or TTS error troubleshooting.

- Skill: `dvcrn/senseaudio-tts-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dvcrn/senseaudio-tts-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/senseaudio-tts-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/dvcrn/senseaudio-tts-2

---


# SenseAudio TTS

Use this skill for all SenseAudio speech synthesis tasks.

## Read First

- `references/tts.md`

## Workflow

1. Pick protocol:
- HTTP sync for simple one-shot generation.
- SSE for incremental HTTP audio chunks.
- WebSocket for realtime incremental text-to-audio sessions.

2. Build minimal valid request:
- Auth header, model, text, `voice_setting.voice_id`.
- Add optional tuning only if user asks.

3. Implement output parsing:
- Decode `data.audio` hex to bytes.
- Finalize on terminal status/event.

4. Harden for production:
- Handle auth and parameter errors.
- Add retry/backoff for transient network failures.
- Log session and trace identifiers.


