together-audio
Text-to-speech and speech-to-text via Together AI, including REST, streaming, and realtime WebSocket TTS, plus transcription, translation, diarization, timestamps, and live STT. Reach for it whenever the user needs audio in or audio out on Together AI rather than chat generation, image or video creation, or model training.
What this skill does
# Together Audio ## Overview Use Together AI audio APIs for: - text-to-speech generation - streaming or realtime voice output - speech-to-text transcription - translation, diarization, and timestamps - live captioning and realtime transcription ## When This Skill Wins - Generate spoken audio from text - Transcribe uploaded audio files or URLs - Add realtime voice or captioning to an app - Extract speaker segments or word timings ## Hand Off To Another Skill - Use `together-chat-completions` for text-only generation - Use `together-video` or `together-images` for visual generation workflows - Use `together-dedicated-endpoints` only when the audio model itself must be hosted on dedicated infrastructure ## Quick Routing - **REST TTS or streaming TTS** - Read [references/tts-models.md](references/tts-models.md) - Start with [scripts/tts_generate.py](scripts/tts_generate.py) or [scripts/tts_generate.ts](scripts/tts_generate.ts) - **Realtime TTS over WebSocket** - Read [references/tts-models.md](references/tts-models.md) - Start with [scripts/tts_websocket.py](scripts/tts_websocket.py) - **File transcription, translation, diarization, or timestamps** - Read [references/stt-models.md](references/stt-models.md) - Start with [scripts/stt_transcribe.py](scripts/stt_transcribe.py) or [scripts/stt_transcribe.ts](scripts/stt_transcribe.ts) - **Realtime STT** - Read [references/stt-models.md](references/stt-models.md) - Start with [scripts/stt_realtime.py](scripts/stt_realtime.py) ## Workflow 1. Confirm whether the task is TTS or STT. 2. Choose REST, streaming, or realtime transport based on latency and interaction needs. 3. Pick the model and response format from the relevant reference file. 4. Start from the matching script instead of rebuilding the request contract from memory. 5. For Python STT uploads, open audio files in binary mode and pass the file handle rather than a bare path string. ## High-Signal Rules - Python scripts require the Together v2 SDK (`together>=2.0.0`). If the user is on an older version, they must upgrade first: `uv pip install --upgrade "together>=2.0.0"`. - Use `client.audio.speech.create()` for TTS. - REST TTS returns a `BinaryAPIResponse`; call `response.write_to_file(path)` to save it. Do NOT use `stream_to_file` (it does not exist on this object). - Streaming TTS (`stream=True`) returns a `Stream` of `AudioSpeechStreamChunk` objects. Iterate chunks, check `chunk.type`, and decode `base64.b64decode(chunk.delta)` for audio data. There is no file-writing helper on the stream object. - Use `client.audio.transcriptions.create()` for transcription and `client.audio.translations.create()` for translation. - Batch transcription and translation share hard limits: 500 MB direct upload, 1 GB URL-fetch, 4 hours of audio per request. For larger payloads, pass a public HTTPS URL on `file=`; for longer audio, split into ≤ 4 h chunks. See the Limits section of [references/stt-models.md](references/stt-models.md). - Realtime APIs require audio-format discipline; confirm PCM expectations before streaming bytes. - Diarization and word timestamps change response shape; code for the richer verbose output explicitly. ## Resource Map - **TTS reference**: [references/tts-models.md](references/tts-models.md) - **STT reference**: [references/stt-models.md](references/stt-models.md) - **Python TTS workflow**: [scripts/tts_generate.py](scripts/tts_generate.py) - **TypeScript TTS workflow**: [scripts/tts_generate.ts](scripts/tts_generate.ts) - **Python realtime TTS workflow**: [scripts/tts_websocket.py](scripts/tts_websocket.py) - **Python STT workflow**: [scripts/stt_transcribe.py](scripts/stt_transcribe.py) - **TypeScript STT workflow**: [scripts/stt_transcribe.ts](scripts/stt_transcribe.ts) - **Python realtime STT workflow**: [scripts/stt_realtime.py](scripts/stt_realtime.py) ## Official Docs - [Text-to-Speech](https://docs.together.ai/docs/text-to-speech) - [Speech-to-Text](https://docs.together.ai/docs/speech-to-text) - [TTS REST API](https://docs.together.ai/reference/audio-speech) - [TTS WebSocket API](https://docs.together.ai/reference/audio-speech-websocket) - [Audio Transcriptions API](https://docs.together.ai/reference/audio-transcriptions) - [Audio Translations API](https://docs.together.ai/reference/audio-translations) - [Realtime Audio Transcriptions API](https://docs.together.ai/reference/audio-transcriptions-realtime)
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.