PROMOWorld Cup is back – Get 20% extra credits on all Pro plans until July 31, 2026
Upgrade

🔒 Free tier data may be used to improve AI models. Upgrade Pro for 100% Privacy

TTS Forge API: Free AI Voice for Developers | TTSForFree

TTS Forge API: Free AI Voice for Developers | TTSForFree

2026-01-12 08:20 | 8 min read | 5260 views | Author: Thai Nguyen (Software Engineer)

🎧 Introduction

Do you want to turn text into natural-sounding speech directly inside your website or application?

With TTSForFree's TTS Forge API, you can easily integrate a professional Text-to-Speech engine into your projects — supporting 70+ languages and 1,800+ voices with fast processing and simple integration.

This tutorial will guide you step-by-step to integrate the TTS API, watch a live demo, and download ready-to-use source code for quick testing.


🚀 Video Tutorial & Live Demo



Here’s what you can explore in this demo:

🔑 Register your API Key

🌐 HTML Preview Demo

🟩 JavaScript Example

🐍 Python (⬇️ Download)

🐘 PHP (⬇️ Download)

🧩 C# (⬇️ Download)

⚙️ How the TTS Forge Engine Works: Our Forge architecture is built for developers who need reliability and speed.

TTSForFree uses an asynchronous Text-to-Speech pipeline:

  1. You send a job creation request via REST API
  2. The system queues it using RabbitMQ
  3. A Python worker processes and saves the audio file
  4. Once completed, you receive updates via SignalR or Webhook

👉 This architecture ensures low latency and massive scalability, handling thousands of requests in parallel.

🔐 Sign in with Google and click “Register API Key” to get started instantly.


After logging in, you’ll receive 30,000 characters per month in your free quota.


🔐 Authentication:

For detailed header security and signature validation, check our TTS Forge Documentation.

All API requests require the following header:

// Using TTSForFree Forge API
X-API-Key: "YOUR_API_KEY"

Your API key is managed in your account dashboard.

Keep it on the server side — do not embed it directly in client or frontend code.


🌍 Get the List of Languages and Voices

List of supported languages:curl -X GET https://api.ttsforfree.com/api/common/getListLanguage -H "X-API-Key: YOUR_API_KEY"


List of available voices:

curl -X GET https://api.ttsforfree.com/api/common/getListVoice -H "X-API-Key: YOUR_API_KEY"


🧠 Create a Text-to-Speech Job

Example using cURL:

curl --location 'https://api.ttsforfree.com/api/tts/createby' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"Texts": "hello everybody",
"Voice": "v1:YPj2X6j04RZcJdGzo-CC0GBpkJ985PD5X_VWU_nJkNzppGtbnxJL-dU_hglv",
"Pitch": 0,
"ConnectionId": "",
"CallbackUrl": ""
}'

Result:

The system returns a jobId and an initial status of PENDING.

Once processing is complete, you’ll receive a SUCCESS status along with a link to the generated audio file.


🔁 Check Job Status

Polling API:

GET https://api.ttsforfree.com/api/tts/status/{jobId}


Or receive the result automatically via Webhook:

POST https://your.app/webhooks/tts
Content-Type: application/json
X-TTS-Signature: sha256=...

{
"Id": 23,
"Status": "SUCCESS",
"Data": "abc123.mp3"
}

Demo html:


🔢 API Quotas & Unlimited Options

To ensure system performance and fair usage among users, TTSForFree applies the following limits:

  1. ✏️ Up to 20,000 characters per request
  2. 📅 Up to 30,000 characters per month per account
  3. ⚙️ When the limit is exceeded, the API returns 429 Too Many Requests or 403 Forbidden.
  4. 💾 You can compress or split long text into smaller segments, or use hash caching to reduce repeated requests.
  5. 🚀 Upgrade to a commercial plan to increase your quota (contact via email or License page).

Best Practices

  1. Split long text into smaller paragraphs before sending
  2. Use hash-based caching to save requests for identical content
  3. Implement exponential backoff retries for 429 or 5xx errors
  4. Use ConnectionId to receive realtime updates through SignalR

📚 Documentation & Specifications

👉 Check out the official Open API documentation:

https://api.ttsforfree.com/swagger/index.html

⚖️ License & Terms of Use

The free plan is intended for personal and non-commercial use only.

If you plan to integrate the API into a commercial product, please contact [email protected] to obtain a commercial API license.

Frequently Asked Questions

Q: Can I use the TTS Forge API for free?

A: Yes. The TTS Forge free plan allows you to generate voices with up to 30,000 characters per month and 20,000 characters per request. It's perfect for developers to test and prototype AI voice applications.

Q: How can I get my API key?

A: Simply log in to TTSForFree.com and navigate to your Dashboard > API section to generate your personal key for the TTS Forge. Always keep your key secret and use it only on the server-side for security.

Q: How many languages and voices are supported by TTS Forge?

A: Our TTS Forge engine supports over 70 languages and a massive library of 1,820+ natural-sounding AI voices, covering various accents and speaking styles.

Q: Can I get an unlimited character quota for the API?

A: Yes. While the free tier has limits, we offer commercial plans with unlimited characters and higher rate limits. Contact [email protected] to upgrade your TTS Forge license for professional use.

Q: Can I automatically receive results when a job is done?

A: Yes. The TTS Forge supports Webhooks (via CallbackUrl) and SignalR for realtime updates. This allows your application to receive audio links automatically once processing is complete.

Q: Does the TTS Forge API have rate limits?

A: Yes. To ensure stability, free users are limited to 60 requests every 5 minutes per IP. Exceeding this limit returns a 429 Too Many Requests error.

Q: What should I do if I get a 429 Too Many Requests error?

A: This error means you've reached your current rate limit or character quota. You can wait for the reset period (every 5 mins or monthly) or upgrade to an unlimited commercial plan for higher throughput.

Q: Is the TTS Forge free for commercial projects?

A: No. The free plan is restricted to personal and non-commercial use. Commercial redistribution or integration into paid products requires a separate TTS Forge API license.

Was this article helpful?

Latest from Our Blog

Không có bài viết nào