Official SDKs for the Typecast Text-to-Speech API
Transform text into natural, expressive speech with Typecast AI
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.
| Language | Package | Installation |
|---|---|---|
| typecast-python | pip install typecast-python |
|
| typecast-js | npm install @neosapience/typecast-js |
|
| typecast-go | go get github.com/neosapience/typecast-sdk/typecast-go |
|
| typecast-java | implementation 'com.neosapience:typecast-java:1.0.0' |
|
| typecast-kotlin | implementation("com.neosapience:typecast-kotlin:1.0.0") |
|
| typecast-csharp | dotnet add package typecast-csharp |
|
| typecast-swift | Swift Package Manager | |
| typecast-rust | cargo add typecast-rust |
|
| typecast-c | CMake |
Sign up at typecast.ai and generate an API key from your dashboard.
Choose the SDK for your language and follow the installation instructions in its README.
# 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",
});- 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
For detailed API documentation and guides, visit typecast.ai/docs
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 |
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.
To regenerate the third-party license file after dependency changes:
./scripts/update-third-party-licenses.shThis 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