Skip to content

The official SDK for the Typecast API. (Python, JS/TS, C/C++, C#, Java, Kotlin, Go, Rust, Swift)

Notifications You must be signed in to change notification settings

neosapience/typecast-sdk

Repository files navigation

Typecast SDK

Official SDKs for the Typecast Text-to-Speech API

API Docs Typecast


Transform text into natural, expressive speech with Typecast AI


Overview

This monorepo contains official SDK clients for the Typecast Text-to-Speech API across multiple programming languages. Each SDK provides a simple, idiomatic interface to convert text into high-quality AI-generated speech.


Available SDKs

Language Package Installation
Python typecast-python pip install typecast-python
JavaScript typecast-js npm install @neosapience/typecast-js
Go typecast-go go get github.com/neosapience/typecast-sdk/typecast-go
Java typecast-java implementation 'com.neosapience:typecast-java:1.0.0'
Kotlin typecast-kotlin implementation("com.neosapience:typecast-kotlin:1.0.0")
C# typecast-csharp dotnet add package typecast-csharp
Swift typecast-swift Swift Package Manager
Rust typecast-rust cargo add typecast-rust
C typecast-c CMake

Quick Start

1. Get Your API Key

Sign up at typecast.ai and generate an API key from your dashboard.

2. Install Your Preferred SDK

Choose the SDK for your language and follow the installation instructions in its README.

3. Generate Speech

# Python Example
from typecast import TypecastClient

client = TypecastClient(api_key="your-api-key")
audio = client.tts.speak(
    text="Hello, world!",
    actor_id="YOUR_ACTOR_ID"
)
audio.save("output.wav")
// JavaScript/TypeScript Example
import { TypecastClient } from "@typecast-ai/typecast";

const client = new TypecastClient({ apiKey: "your-api-key" });
const audio = await client.tts.speak({
  text: "Hello, world!",
  actorId: "YOUR_ACTOR_ID",
});

Features

  • High-Quality Voices — Natural, expressive AI voices in multiple languages
  • Emotion Control — Fine-tune speech with emotion presets and parameters
  • Multiple Formats — Export as WAV, MP3, and more
  • Streaming Support — Real-time audio streaming for low-latency applications
  • Simple Integration — Clean, idiomatic APIs for each language

Documentation

For detailed API documentation and guides, visit typecast.ai/docs


License

Each SDK is licensed under either the MIT License or Apache License 2.0. The specific license for each SDK can be found in the LICENSE file within each SDK directory.

SDK License
typecast-python Apache 2.0
typecast-js Apache 2.0
typecast-go MIT
typecast-java MIT
typecast-kotlin Apache 2.0
typecast-csharp Apache 2.0
typecast-swift Apache 2.0
typecast-rust MIT
typecast-c MIT

Third-Party Licenses

This project uses third-party libraries across different SDK implementations. We are committed to transparency and proper attribution of all dependencies.

The complete list of third-party licenses is documented in THIRD-PARTY-LICENSES.txt.

Updating Third-Party Licenses

To regenerate the third-party license file after dependency changes:

./scripts/update-third-party-licenses.sh

This script automatically collects license information from all SDK implementations using language-specific tools (pip-licenses, license-checker, cargo-license, etc.).



Made with ❤️ by Typecast AI