# Together AI Audio TTS/STT Skill for Claude Code > Skill that teaches Claude Code Together AI's audio API. Covers text-to-speech (REST and WebSocket streaming), speech-to-text transcription, and realtime voice interaction. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add togethercomputer/skills ``` ## What is This Skill? This skill teaches AI coding agents how to use Together AI's audio API for text-to-speech and speech-to-text. It covers REST TTS, streaming TTS via WebSocket, and speech-to-text transcription — with correct SDK patterns for each mode. **Answer-Ready**: Together AI Audio Skill for coding agents. Covers TTS (REST + WebSocket streaming), STT transcription, and realtime voice. Correct SDK patterns and model IDs. Part of official 12-skill collection. **Best for**: Developers building voice-enabled AI applications. **Works with**: Claude Code, Cursor, Codex CLI. ## What the Agent Learns ### Text-to-Speech (REST) ```python from together import Together client = Together() response = client.audio.speech.create( model="together-ai/tts-model", input="Hello, welcome to the demo!", voice="alloy", ) response.stream_to_file("output.mp3") ``` ### Streaming TTS (WebSocket) ```python # Low-latency streaming for realtime applications import websocket # WebSocket connection for chunked audio streaming ``` ### Speech-to-Text ```python with open("audio.mp3", "rb") as f: transcript = client.audio.transcriptions.create( model="together-ai/whisper", file=f, ) print(transcript.text) ``` ## FAQ **Q: What voices are available?** A: Multiple voices supported. Check Together AI docs for current voice list. ## Source & Thanks > Part of [togethercomputer/skills](https://github.com/togethercomputer/skills) — MIT licensed. ## 快速使用 ```bash npx skills add togethercomputer/skills ``` ## 什么是这个 Skill? 教 AI Agent 使用 Together AI 的音频 API,包括 TTS(REST + WebSocket 流式)和 STT 语音转文字。 **一句话总结**:Together AI 音频 Skill,TTS/STT/实时语音,REST 和 WebSocket 两种模式,官方出品。 ## 来源与致谢 > [togethercomputer/skills](https://github.com/togethercomputer/skills) — MIT --- Source: https://tokrepo.com/en/workflows/1342ba0e-6098-4da8-8d88-dc8ac94389f0 Author: Prompt Lab