0.0
The project is in a healthy, maintained state
A Ruby client for Typecast TTS, timestamps, voices, subscription, and quick cloning APIs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.0
~> 13.0
 Project Readme

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
Zig typecast-zig zig fetch --save
PHP typecast-php composer require neosapience/typecast-php
Dart typecast-dart dart pub add typecast_dart
Ruby typecast-ruby gem install typecast-ruby

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
  • Word/Character Timestamps — Alignment data + SRT/VTT export for subtitles, karaoke, and per-character highlighting
  • Instant cloning — Upload a short audio sample, get a custom voice ID, and synthesize with it in one flow
  • 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
typecast-zig MIT
typecast-php MIT
typecast-dart MIT
typecast-ruby 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

Code Coverage

Every SDK in this monorepo targets 100% code coverage (line + function + branch where the toolchain supports branches; line + function only on Go and Swift). The exclusion policy is documented at docs/coverage-policy.md. The shared mock server used by every SDK's coverage tests lives at test-fixtures/mock-server/.

SDK Coverage
typecast-c coverage
typecast-csharp coverage
typecast-go coverage
typecast-java coverage
typecast-js coverage
typecast-kotlin coverage
typecast-python coverage
typecast-rust coverage
typecast-swift coverage
typecast-zig coverage
typecast-php coverage
typecast-dart coverage
typecast-ruby coverage

Click any SDK name or badge to jump to that SDK's directory. Each SDK's README documents its installation, usage, and coverage workflow.