
Description
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.
SKILL.md
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-completionsfor text-only generation - Use
together-videoortogether-imagesfor visual generation workflows - Use
together-dedicated-model-inferenceonly when the audio model itself must be hosted on dedicated infrastructure
Quick Routing
- REST TTS or streaming TTS
- Read references/tts-models.md
- Start with scripts/tts_generate.py or scripts/tts_generate.ts
- Realtime TTS over WebSocket
- Read references/tts-models.md
- Start with scripts/tts_websocket.py
- File transcription, translation, diarization, or timestamps
- Read references/stt-models.md
- Start with scripts/stt_transcribe.py or scripts/stt_transcribe.ts
- Realtime STT
- Read references/stt-models.md
- Start with scripts/stt_realtime.py
Workflow
- Confirm whether the task is TTS or STT.
- Choose REST, streaming, or realtime transport based on latency and interaction needs.
- Pick the model and response format from the relevant reference file.
- Start from the matching script instead of rebuilding the request contract from memory.
- 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; callresponse.write_to_file(path)to save it. Do NOT usestream_to_file(it does not exist on this object). - Streaming TTS (
stream=True) returns aStreamofAudioSpeechStreamChunkobjects. Iterate chunks, checkchunk.type, and decodebase64.b64decode(chunk.delta)for audio data. There is no file-writing helper on the stream object. - Use
client.audio.transcriptions.create()for transcription andclient.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. - 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
- STT reference: references/stt-models.md
- Python TTS workflow: scripts/tts_generate.py
- TypeScript TTS workflow: scripts/tts_generate.ts
- Python realtime TTS workflow: scripts/tts_websocket.py
- Python STT workflow: scripts/stt_transcribe.py
- TypeScript STT workflow: scripts/stt_transcribe.ts
- Python realtime STT workflow: scripts/stt_realtime.py
Official Docs
More skills from the skills repository
View all 14 skillstogether-batch-inference
run asynchronous batch inference jobs
Jul 17AutomationLLMPerformancetogether-chat-completions
generate text with Together AI
Jul 26AIAPI DevelopmentLLMtogether-dedicated-containers
deploy custom inference containers on Together AI
Jul 26AI InfrastructureDeploymentDockerMachine Learningtogether-dedicated-model-inference
deploy and operate Together AI models
Jul 26AI InfrastructureDeploymentLLMtogether-embeddings
generate embeddings and build RAG pipelines
Jul 26AILLMRAGSearchtogether-evaluations
evaluate LLM outputs with Together AI
Jul 26BenchmarkingEvalsLLM
More from Together AI
View publisherblog-post
write structured blog posts
together-cookbook
Jul 17Content CreationMarketingSEOWritingsocial-media
create social media content
together-cookbook
Jul 17Content CreationMarketingSocial MediaWritingtogether-fine-tuning
fine-tune and adapt models on Together AI
skills
Jul 26AILLMMachine Learningtogether-gpu-clusters
orchestrate GPU clusters on Together AI
skills
Jul 26AI InfrastructureCloudKubernetesMachine Learningtogether-images
generate and edit images with Together AI
skills
Jul 17CreativeDesignImage GenerationMultimodal