# Text to Speech Source: https://typecast.ai/docs/api-reference/endpoint/text-to-speech/text-to-speech POST /v1/text-to-speech Generate speech from text using the specified voice model. Supports emotion, volume, pitch, and tempo customization. First, list all available voice models using the GET /v1/voices endpoint, then use the voice_id from the response to generate speech with this endpoint. Each voice model has its own unique characteristics. See [Listing all voices](/api-reference/endpoint/voices/voice) for available voices. # Listing all voices Source: https://typecast.ai/docs/api-reference/endpoint/voices/voice GET /v1/voices Lists all available voice models for text-to-speech conversion. This endpoint returns a complete list of voices including each voice's ID, name, supported model type (ssfm-v21), and available emotion options (happy, sad, angry, normal, etc.). Returned voices have unique identifiers starting with either 'tc_' prefix (Typecast voices) or 'uc_' prefix (User-created voices). Optional query parameters can be used to filter results by specific model type. # Get Voice by ID Source: https://typecast.ai/docs/api-reference/endpoint/voices/voice-id GET /v1/voices/{voice_id} Get details of a specific voice model. # AWS Marketplace Source: https://typecast.ai/docs/bestpractice/aws-marketplace Learn how to integrate Typecast SSFM with AWS Marketplace, a fully managed service that provides access to foundation models via API. Get started with Typecast SSFM on AWS Marketplace in just a few steps: Visit our [AWS Marketplace listing](https://aws.amazon.com/marketplace/seller-profile?id=seller-rauqp3qawr25s) Click "Continue to Subscribe" Review and accept the terms and conditions Once subscribed, you can access Typecast SSFM through AWS API Gateway Use your AWS credentials to authenticate API calls Start generating high-quality speech with our state-of-the-art models Deploy typecast ssfm Model Package from AWS Marketplace Get started with Typecast SSFM on AWS Marketplace # Prompting Source: https://typecast.ai/docs/bestpractice/prompting Learn how to maximize the potential of Typecast SSFM through various prompting techniques and discover advanced prompting strategies to enhance your text-to-speech outputs. ## Predefined style of speaking \| `ssfm-v21` Enhance your speech with preset emotional styles like `happy`, `sad`, or `angry`. You can customize how intense these emotions sound to get exactly the mood you want. These presets make it easy to add natural-sounding emotions to your text-to-speech output. ```bash cURL curl -N -X POST "https://api.typecast.ai/v1/text-to-speech" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "ssfm-v21", "voice_id": "tc_62e7365cff29581c04133b34", "text": "Hello there! I am your friendly text-to-speech agent.", "prompt": { "preset": "happy", "preset_intensity": 2.0 } }' > typecast.wav ``` ```python Python from typecast.client import Typecast from typecast.models import Prompt, TTSRequest cli = Typecast(api_key="YOUR_API_KEY") response = cli.text_to_speech(TTSRequest( model="ssfm-v21", voice_id="tc_62e7365cff29581c04133b34", text="Hello there! I am your friendly text-to-speech agent.", prompt=Prompt( emotion_preset="happy", emotion_intensity=2.0, ))) with open('typecast.wav', 'wb') as f: f.write(response.audio_data) ``` ```javascript Javascript import { TypecastClient } from 'typecast-sdk'; import fs from 'fs'; const cli = new TypecastClient({apiKey: 'YOUR_API_KEY'}); const response = await cli.textToSpeech({ model: "ssfm-v21", voice_id: "tc_62e7365cff29581c04133b34", text: "Hello there! I am your friendly text-to-speech agent.", prompt: { emotion_preset: "happy", emotion_intensity: 2.0 } }); await fs.promises.writeFile('output.wav', Buffer.from(response.audioData)); ``` {/* ## Style Transfer from Reference Audio | `ssfm-v30` Want to match a specific emotional tone? Simply upload a reference audio file, and our system will replicate that speaking style in your generated speech. It's like having a voice actor take cues from your favorite performance! ## Speed Control | `ssfm-v20`, `ssfm-v21`, `ssfm-v30` Control how fast or slow your audio plays back - whether you need a natural conversational pace or want to speed things up for time-sensitive content. Our flexible speed controls let you fine-tune the tempo to match your needs. ## Context-aware Tone Adjustment | `ssfm-v30` Our AI automatically adapts the speaking tone and pace to match the context of your content, just like a native English speaker would naturally vary their speech patterns in conversation. */} # Models Source: https://typecast.ai/docs/models ## About our foundation model SSFM Typecast currently uses an advanced AI voice model, the Typecast Speech Synthesis Foundation Model, or Typecast SSFM for short, which is our next generation text-to-speech technology that brings text to life with unparalleled naturalness and expressiveness. ## Models overview | Model | Release Date | Description | | :-------------------- | :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `ssfm-v21` | 2025.04 | | ## ssfm-v21 * Various emotions: `Neutral`, `Happy`, `Sad`, and `Angry` * Speaking languages: English, Korean, Chinese, Spanish, Arabic, Portuguese, Russian, Japanese, German, French, Indonesian, Italian, Malay, Polish, Dutch, Ukrainian, Greek, Tamil, Swedish, Czech, Danish, Finnish, Tagalog, Slovak, Bulgarian, Croatian, Romanian # Overview Source: https://typecast.ai/docs/overview Typecast is a text-to-speech API that allows you to convert text into lifelike speech. Typecast is a text-to-speech(TTS) platform that enables users to create natural-sounding voiceovers using AI technology. The service provides a variety of synthetic voices and allows users to convert text into speech in multiple languages.