Frequently asked questions
How do I get an API key?
Navigate to /get-api-key/ on playstar75.cc to sign up via Google or email. Your unique API key appears on the dashboard. Keys are per site, so ensure you are on the correct domain. You can issue a new key at any time, which immediately invalidates the previous one.
What is the base URL for the API?
The base URL is https://api.playstar75.cc/v1. Use this endpoint for all requests, including speech synthesis and voice listing. Ensure your Authorization header uses the Bearer token format with your specific API key to authenticate each request successfully.
Can I use the OpenAI SDK with this API?
Yes. The request shape matches the OpenAI speech endpoint. Simply configure your OpenAI SDK to use https://api.playstar75.cc/v1 as the base URL. Pass your TextHear API key as the bearer token. This allows you to use official OpenAI SDKs without modification.
How do I set the language for a voice?
Include the optional language field in your JSON body with an ISO code. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, explicitly set the language to ensure accurate pronunciation and voice selection.
What formats are supported for audio output?
You can request audio in mp3, wav, opus, flac, or pcm formats. Specify the desired format using the response_format field in your request body. This allows you to choose the best balance between file size and quality for your Angular application.
How do I handle rate limits in Angular?
Limits are 60 requests per minute per key. Implement retry logic with exponential backoff in your Angular service. If you exceed limits, pause requests briefly. Use the /v1/models endpoint to check current status if needed.
What happens if the server returns a 500 error?
Failed requests are free. If synthesis fails, the charge is returned in full. Implement error handling in your Angular service to catch HTTP 500 errors. Log the error and retry after a short delay, ensuring you do not incur unnecessary costs for failed attempts.
Can I change my API key if it is compromised?
Yes. You can issue a new key at any time from the dashboard. The old key stops working immediately. Update your Angular application configuration with the new key to restore service. This ensures quick revocation without waiting for manual support intervention.
How do I split long text for the API?
Split input text into parts of up to 4096 characters. Send each part as a separate request. Join the resulting audio files in your application. This ensures compliance with character limits and prevents truncation or errors during the synthesis process.
Is the response JSON or binary?
The response is binary audio data. The endpoint returns the audio file directly in the response body. Ensure your Angular HTTP client is configured to handle binary responses. Do not attempt to parse the body as JSON, as it contains raw audio bytes.
Can I stream audio in real-time?
No. We do not offer streaming, WebSocket, or real-time partial audio. Requests are processed sequentially. You receive the complete audio file upon completion. Plan your Angular UI to handle loading states while waiting for the full binary response.
Do I need to install a specific npm package?
No specific package is required. You can use standard Angular HTTP services or the OpenAI SDK. If using the OpenAI SDK, install the official package and configure the base URL. No proprietary npm library is needed to interact with the TextHear API.
How do I test the API before going live?
Use the free trial credit of $0.50 if you signed in with Google. Generate short audio files to verify voice, format, and speed settings. Check the dashboard for usage and balance. Test error handling with invalid inputs before integrating into your production Angular application.
What is the maximum speed setting?
The maximum speed setting is 4.0. You can adjust speed between 0.25 and 4.0 using the speed field. This allows you to control the playback rate of the generated speech. Adjust this value to suit your accessibility or learning support requirements.
First request
curl
curl https://api.playstar75.cc/v1/audio/speech \
-H "Authorization: Bearer $TTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
--output hello.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.playstar75.cc/v1", api_key="tts-...")
with client.audio.speech.with_streaming_response.create(
model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
response.stream_to_file("hello.mp3")Node.js (openai)
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ baseURL: "https://api.playstar75.cc/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));| voice | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication
To use the TextHear API, include your API key in the Authorization header of every request. The format is Bearer tts-<your-key>. This key authenticates your account and tracks usage against your rate limits and balance.
Each account maintains a single active key. You can generate a new key at any time via the dashboard. When a new key is issued, the previous one becomes invalid immediately, ensuring you can quickly rotate credentials without delay or overlap.
Bearer token in header
Include the header Authorization: Bearer tts-<your-key> in all API calls. This token identifies your account and allows the system to deduct characters from your balance or apply free trial credits.
Single active key per account
Your account is tied to one active API key at a time. This simplifies security audits and ensures clear attribution of usage to a single credential.
Revoke old keys instantly
Generate a new key from the dashboard to invalidate the old one immediately. There is no waiting period; the previous key stops working at once, which is useful if you suspect exposure or need to rotate credentials for a new team member.
Endpoint Overview
The TextHear API provides three primary endpoints for managing text-to-speech generation and configuration. The core POST /v1/audio/speech endpoint accepts text input and returns synthesized audio files, while GET /v1/voices and GET /v1/models endpoints allow you to retrieve available voice presets and model details for integration planning.
POST /v1/audio/speech
This endpoint processes your text input and returns the resulting audio file. It accepts a JSON body containing the input text (up to 4096 characters), model, voice, response_format, and optional speed or language parameters. The API processes requests sequentially, so under load, synthesis may queue briefly.
- Accepts text up to 4096 characters per request
- Returns audio directly in the response body
- Supports mp3, wav, opus, flac, and pcm formats
GET /v1/voices list
Use this endpoint to retrieve the full list of available voice presets and their associated metadata. It provides details on the eight available voices, their gender, and supported languages, allowing you to programmatically select the most appropriate voice for your accessibility or learning support use case.
- Returns all 8 preset voice details
- Lists supported languages and formats
- Includes pricing information
GET /v1/models list
This endpoint lists the available TTS models, specifically tts-1 and tts-1-hd. Both models use the same underlying engine and pricing structure, allowing you to switch between standard and high-definition quality based on your specific audio fidelity requirements without changing your base infrastructure.
- Lists
tts-1andtts-1-hdmodels - Both models share the same engine
- Identical pricing for both options
Request Parameters
To integrate TextHear’s TTS API into your Angular application, structure your POST requests to /v1/audio/speech with the required JSON body. The API accepts plain text input, converts it to audio, and returns the file directly in the response body, ensuring seamless handling within your service layer.
The request payload must include the model and input fields. While both tts-1 and tts-1-hd use the same engine, selecting the appropriate model allows you to balance quality needs against cost, as both are priced identically at $0.01 per 1,000 characters.
Model selection (tts-1 or tts-1-hd)
Both tts-1 and tts-1-hd utilize the same underlying engine and incur the same charge of $10 per 1 million characters. You can switch between them without affecting your billing or voice presets, allowing you to test quality differences in your accessibility workflows without financial penalty.
Input text up to 4096 chars
Each request supports a maximum of 4,096 characters for the input field. Spaces and punctuation count toward this limit. For longer content, split the text into chunks, generate audio for each part, and join the resulting files in your application logic.
- Maximum length: 4,096 characters per request.
- Spaces and punctuation count as characters.
- Split long texts and join audio files manually.
Voice, format, speed, language
Specify one of 8 preset voices (e.g., aria, nova, felix) to match your content tone. You can adjust the speed between 0.25 and 4.0 to suit listener preferences. The language parameter accepts an ISO code; if omitted, the system guesses from the script, defaulting to English for Latin text.
Choose from mp3, wav, opus, flac, or pcm for the response_format. Ensure your Angular service handles the binary response correctly according to the selected format.
- Voices: 8 presets including
aria,nova,felix. - Speed range: 0.25 to 4.0.
- Formats: mp3, wav, opus, flac, pcm.
- Language: Optional ISO code; defaults to English for Latin scripts.
Response Format
The API returns the generated audio file directly in the response body. This eliminates the need for polling or secondary download calls, allowing your Angular service to process the response immediately upon receipt.
Audio file in response body
Audio data is delivered as the raw response payload. This design simplifies integration with Angular’s HttpClient, enabling direct mapping to Blob objects for immediate playback or storage within your accessibility workflows.
Supported formats (mp3, wav, opus, flac, pcm)
You may request the audio in mp3, wav, opus, flac, or pcm formats via the response_format parameter. Format selection allows you to balance file size and compatibility with your existing media players or storage requirements without re-encoding.
- mp3: Small size, universal compatibility
- wav: Lossless, high quality
- opus: Efficient compression
- flac: Lossless compressed
- pcm: Raw uncompressed data
Status codes for success and errors
A successful synthesis returns a 200 OK status with the audio file. Errors return standard HTTP codes, such as 400 for invalid input parameters or 429 if you exceed the rate limit. A 500 Internal Server Error indicates a processing failure, for which no charge is applied.
Error Handling
Error handling in the TextHear API follows standard HTTP conventions to help you debug integration issues quickly. Understanding response codes ensures your Angular service can gracefully manage failures, rate limits, or server-side synthesis errors without crashing your user experience.
400 Bad Request for invalid input
Return this code when the request body is malformed or exceeds limits. Common causes include input text exceeding 4096 characters, an invalid voice preset, or a speed value outside the 0.25–4.0 range. Check your payload structure before sending.
- Verify
inputlength is ≤ 4096 characters - Ensure
voiceis one of the 8 supported presets - Check
speedis between 0.25 and 4.0
429 Too Many Requests for rate limits
You receive this code if you exceed 60 requests per minute per key. New accounts start with a limit of 10 requests per minute. Requests are processed sequentially, so under load, you may experience queuing delays before hitting the limit. Implement exponential backoff in your HttpClient interceptor.
- Standard limit: 60 requests/minute
- Initial limit: 10 requests/minute
- Requests are queued under heavy load
500 Internal Server Error examples
A 500 error indicates a server-side issue during synthesis, such as temporary engine overload. Failed synthesis requests are free, so your balance is not charged. Retry the request after a short delay; if the error persists, check the /v1/models endpoint for status.
- Failed requests are free
- Retry on temporary engine overload
- Check /v1/models for system status

Rate Limits
TextHear enforces a rate limit of 60 requests per minute per API key. This limit applies to all synthesis endpoints, ensuring fair usage for high-volume accessibility workflows. Requests exceeding this threshold will receive a 429 status code.
60 requests per minute per key
Each active API key allows up to 60 synthesis requests within a rolling one-minute window.
10 requests before first top-up
New accounts start with a reduced limit of 10 requests per minute. This applies until the first top-up is processed. Once credited, the standard 60 req/min limit activates immediately.
Queued processing under load
Requests are processed sequentially. During high demand, synthesis may wait in a queue before processing begins.
Code Examples
The TextHear API follows the standard OpenAI request shape, allowing immediate integration into existing Angular workflows without learning a new schema. You can test endpoints quickly with a simple cURL command or implement persistent audio generation within your component logic.
Curl command example
Use this command to verify your key and retrieve the first audio file. Replace YOUR_API_KEY with your secret from the dashboard.
- curl -X POST "https://api.playstar75.cc/v1/audio/speech" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}'
Angular HttpClient POST request
Inject HttpClient and send the JSON payload. The response is an Observable<Blob>, which you can convert to a playable audio URL using URL.createObjectURL().
- this.http.post<Blob>('https://api.playstar75.cc/v1/audio/speech', { model: 'tts-1', input: 'Text', voice: 'nova', response_format: 'mp3' }, { responseType: 'blob' as 'json' })
OpenAI SDK base_url configuration
Leverage the official OpenAI SDK by overriding the base URL. Set base_url to https://api.playstar75.cc/v1 and provide your tts-... key for seamless compatibility.
Voice Selection Guide
Select the voice that fits your accessibility needs. The eight presets cover a range of tones, from warm narration to neutral news delivery. Each voice is generated from licensed recordings, ensuring consistent, auditable audio for your users.
List of 8 preset voices
Choose from four female and four male voices. All voices support any of the 23 available languages. The engine handles language detection automatically, but setting the language parameter ensures accuracy for non-English text.
- Aria: Warm, clear narrator
- Nova: Bright, upbeat
- Luna: Soft, storytelling
- Sage: Calm, instructional
- Felix: Energetic, promo
- Milo: Friendly, conversational
- Atlas: Neutral, news
- Orion: Deep, documentary
Female and male voice options
Female voices like Aria and Luna offer clear, approachable tones suitable for educational content. Male voices such as Atlas and Orion provide neutral or deep delivery for news and documentaries. Mix voices to keep long-form audio engaging.
Matching voice to use case
For dyslexia support, use Sage or Aria for steady, clear pacing. For promotional content, Felix or Nova add energy. Atlas works well for neutral data readouts. Orion suits documentary-style narration. Test voices with sample text to confirm clarity for your audience.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This prevents misinterpretation and maintains clarity for users with dyslexia or visual impairments.
23 languages
Any voice speaks any of these languages.
