Frequently asked questions
What is the easiest way to start?
Sign up with Google on /get-api-key/ to receive $0.50 in trial credit. Use the provided cURL example or the OpenAI SDK with our base URL. Send a POST request to /v1/audio/speech with your text and voice preset. You receive an audio file immediately. No complex configuration is required to begin generating speech for your news content.
Do I need a developer?
Yes, a developer is needed to implement the API integration. You will send JSON payloads via HTTP POST requests to our endpoint. The developer must handle the authentication header and parse the audio response. While the API is simple, integrating it into your news app’s backend or frontend requires standard coding skills to manage requests and audio playback.
Can I use this with WordPress?
We do not offer an official WordPress plugin. You must build a custom integration using our REST API. Your developer can create a simple plugin or use a custom code block to send text to our endpoint. The API accepts standard JSON bodies, so any language that supports HTTP requests can connect to PressAudio for your news site.
How long does setup take?
Setup typically takes a few hours for a developer to integrate. You sign up, get your API key, and implement the POST request to /v1/audio/speech. Testing with the free trial credit takes minutes. The actual coding time depends on your app’s architecture. We provide clear documentation and a ready cURL example to speed up the process.
Do I need to pay extra for SDKs?
No, there are no extra fees for SDKs. We recommend using the official OpenAI SDKs by changing the base URL to our API endpoint. You can also use plain HTTP requests. The SDKs are free to use, and you only pay for the characters you generate. No proprietary SDK license or additional software costs are required.
Can I test before going live?
Yes, sign up with Google to receive $0.50 in trial credit. This covers about 50,000 characters, allowing you to test various voices and languages. You can verify audio quality and integration logic before committing to a top-up. The trial is valid for 7 days, giving you ample time to evaluate the API for your news application needs.
What if my app goes viral?
Our API scales with your usage without complex planning. You pay only for characters generated, with no monthly plans or minimum spend. If traffic spikes, requests are processed in a queue. Longer texts are split automatically. Ensure your top-up balance is sufficient, as USDT transfers are processed automatically within minutes to keep your service running smoothly.
How do I handle user errors?
The API returns standard HTTP status codes for errors. Failed requests are free, and charges are returned in full if synthesis fails. You should implement retry logic in your app for transient network issues. For input errors, like exceeding 4096 characters, split the text into smaller parts before sending the request to ensure successful audio generation.
Is there a demo available?
We do not offer a live interactive demo widget on the site. However, you can test the API directly using the cURL example provided on the /get-api-key/ page. Use your trial credit to generate audio files and listen to the results. This allows you to hear the voice quality and verify the integration works with your specific news content.
Can I use my own server?
Yes, you can use your own server to call our API. The API is a standard REST endpoint accessible from any server with internet access. You only need to send the correct JSON body and authorization header. We do not provide hosting for your app, nor do we require you to use our infrastructure for your news application’s backend.
Do I need a specific language?
No, you do not need a specific language for the API itself. However, you must specify the language in the request body for accurate synthesis. If omitted, the API guesses the language, defaulting to English for Latin script. We support 23 languages, including English, Spanish, German, and Japanese, to cover diverse news audiences.
Can I mix voices in one article?
Yes, you can mix voices by sending multiple requests. Generate each segment with the desired voice preset and join the audio files. Our API returns audio files that you can concatenate. This allows you to assign different voices to different speakers or sections within a single news article for a richer listening experience.
How do I handle offline mode?
The API requires an internet connection to generate audio. There is no offline mode or local caching built into the API. Your app must store the generated audio files locally if offline playback is needed. The API returns the audio file in the response, which you can then save to your device or server for later use.
Is the API reliable?
We do not provide an SLA or uptime guarantee. Requests are processed sequentially, so under load, you may experience queuing delays. Typical speed is roughly real-time for long texts. Failed requests are free. For critical news applications, implement retry logic and monitor your usage. Our infrastructure is designed for stability, but no specific reliability percentage is guaranteed.
Choosing the right voice
Selecting the correct voice preset ensures your news app sounds professional and consistent. The API provides eight distinct presets, each optimized for specific audio characteristics, allowing product teams to tailor the listening experience without complex engineering.
Selecting Atlas for news
Atlas offers a neutral, news-ready tone that delivers clear articulation for headlines and breaking updates. Its balanced delivery works well for rapid-fire content, ensuring listeners grasp key facts without distraction from the narrator's personality.
- Ideal for daily briefings and breaking news segments
- Neutral tone minimizes listener fatigue during long reads
Using Aria for features
Aria provides a warm, clear narrator style suitable for long-form articles and feature stories. Her voice maintains engagement over extended durations, making her the preferred choice for in-depth reporting where continuity matters more than urgency.
- Best for feature articles and podcasts
- Clear enunciation aids comprehension of complex topics
Matching tone to content
Match the voice preset to the story type. Use Felix for energetic promos or Milo for conversational interviews. Ensure the selected voice aligns with the emotional weight of the text, using the language parameter to enforce correct pronunciation for non-native scripts.
Setting up the request
To generate speech, send a POST request to https://api.qq988.info/v1/audio/speech. The JSON body must include the model ("tts-1" or "tts-1-hd"), the input text (max 4096 characters), and the voice preset. Use a standard Bearer token for authentication in the header.
Configuring the JSON body
Structure your payload with the required fields. The input field accepts plain text, while voice selects from eight presets like Atlas for news or Aria for features. Ensure you stay within the 4096-character limit per request; longer articles should be split by your backend before sending.
- Use
model"tts-1" or "tts-1-hd" for identical engine performance. - Limit
inputto 4096 characters to avoid truncation. - Include
Authorization: Bearer <your-key>for secure access.
Setting the language code
Although the system guesses language from the script, explicitly setting the language ISO code ensures accuracy for non-English Latin text. Supported languages include English, Spanish, German, French, and others listed in our documentation. Omitting this field defaults to English for Latin scripts.
- Explicitly set
languagefor mixed-script content. - Supported: Arabic, Chinese, English, French, German, Japanese, etc.
- Defaults to English if omitted for Latin text.
Defining the response format
Specify the response_format as mp3, wav, opus, flac, or pcm to match your player’s requirements. MP3 is recommended for most news apps due to its balance of quality and file size. The API returns the audio file directly in the response body for immediate playback.
- mp3: Best for general web playback.
- wav: Lossless, larger file size.
- opus: High efficiency for mobile data.
- flac: Lossless compression.
- pcm: Raw audio data.
Handling audio playback
PressAudio delivers audio files via standard HTTP responses. Your app receives a complete file in formats like MP3, WAV, or Opus, allowing you to save or play it using any standard media player. This approach simplifies integration since you do not need to manage WebSocket connections or handle partial audio buffers.
Because the API returns a finished file, you can easily store the result for later playback. This is particularly useful for news articles where users might want to listen to content offline or resume playback later. The file size depends on the format and length of the text, but typical generation is roughly real-time.
Streaming vs download
PressAudio returns the entire audio file after synthesis completes. This means your application must wait for the full response before playback can begin. For short news updates, this delay is negligible, but for longer articles, the wait time may be noticeable.
To mitigate this, you can pre-generate audio for scheduled news items. This ensures the file is ready when the user requests it, providing instant playback without waiting for synthesis. If you need immediate playback, consider using faster formats like MP3, which offer smaller file sizes and quicker transfer times.
- Use MP3 for smaller file sizes and faster transmission.
- Use WAV or FLAC for higher quality if bandwidth is not a constraint.
- Pre-generate audio for scheduled content to eliminate wait times.
Managing file sizes
Audio file size is directly proportional to the length of the text and the chosen format. MP3 files are generally the most compact, making them ideal for mobile apps with limited data plans. WAV and FLAC files offer higher fidelity but result in significantly larger downloads.
For news apps, balancing quality and performance is key. Start with MP3 to minimize data usage and loading times. If your users demand higher audio quality, you can offer FLAC as an option, but be aware that this will increase both storage and bandwidth costs.
Consider the typical length of your news segments. Short updates under 30 seconds will result in small files, while long reports may require several megabytes. Plan your storage and bandwidth accordingly to avoid unexpected costs.
- MP3 is recommended for most news applications due to its balance of quality and size.
- WAV and FLAC are suitable for high-quality audio needs but increase data usage.
- Pre-generating content allows you to estimate file sizes accurately before deployment.
Caching strategies
Caching is essential for improving performance and reducing API usage. Store generated audio files on your server or a CDN to serve them directly to users without hitting the API again. This is especially effective for evergreen news content that does not change frequently.
For breaking news, you may need to regenerate audio as updates occur. Implement a cache invalidation strategy to ensure users receive the latest version. Use cache headers to control how long browsers and CDNs store the audio files, ensuring timely updates when content changes.
- Store audio files on a CDN for faster delivery and reduced latency.
- Implement cache invalidation for dynamic content to ensure users get the latest audio.
- Use cache headers to manage how long files are stored by browsers and CDNs.
Error handling strategies
Reliable news apps need resilience. When synthesis fails, the API returns a clear error and refunds the character charge. This safety net ensures your readers never encounter broken audio players during peak hours.
Rate limits are strict but predictable. If you exceed 60 requests per minute, subsequent calls will fail until the window resets. Implementing exponential backoff prevents your app from hammering the API when errors occur.
Retrying failed requests
Wrap your TTS calls in a retry logic that catches HTTP errors. Since failed requests are free, you can safely retry once or twice. Always check the response body for specific error codes to distinguish between temporary server issues and invalid parameters.
Avoid infinite loops. A simple three-attempt strategy with short delays covers most transient network glitches without wasting time waiting for a queue to clear.
- Check for HTTP 4xx or 5xx errors.
- Retry up to three times with exponential backoff.
- Log the error message for debugging.
Handling rate limits
The API allows 60 requests per minute per key. If you are below your first top-up, this limit drops to 10 per minute. Monitor your usage dashboard to stay aware of your current tier.
When you hit the limit, the API returns a 429 status code. Your app should pause briefly before retrying. Do not queue requests aggressively; let the queue manage the load on the server side.
- Monitor the 429 status code.
- Pause and retry after a short delay.
- Upgrade balance to increase limits if needed.
User feedback loops
If audio generation fails after retries, notify the user politely. Offer a fallback, such as displaying the text or a link to download the article. This maintains trust even when the audio service is down.
Collect feedback on audio quality or playback issues. Use this data to adjust voice presets or improve error handling in future updates.
- Notify users of failures.
- Provide text fallback options.
- Collect user feedback for improvements.
Optimizing for speed
Speed matters when readers expect instant audio. You can pre-generate audio files for high-traffic articles during off-peak hours. This ensures your app delivers content immediately, avoiding the queue delays that occur during peak news cycles.
Pre-generating content
Generate audio for breaking news or popular stories in advance. Since synthesis takes time, having files ready removes latency for the end-user. This is especially useful for articles that receive consistent traffic throughout the day.
- Schedule generation during low-traffic hours
- Store pre-generated MP3s in a CDN
- Update audio when article text changes
Using cache headers
Leverage HTTP cache headers to store audio files in the user’s browser. This prevents redundant requests for the same content, saving both bandwidth and API characters. It also reduces server load during sudden traffic spikes.
- Set long-lived cache headers for static audio
- Invalidate cache when source text updates
- Reduce repeated synthesis costs
Splitting long articles
Divide articles into segments of 4096 characters or less. Process these segments concurrently if your infrastructure allows, then join the audio files. This approach keeps individual request times predictable and avoids timeouts for lengthy pieces.
Monitoring usage
Monitoring usage ensures your news app stays within budget while delivering consistent audio. Track character counts per request to anticipate costs, as billing is based on the input text length including spaces and punctuation.
Set up alerts for rate limits and budget thresholds. This helps prevent unexpected downtime during peak news cycles and keeps your audio feature running smoothly without manual intervention.
Tracking character counts
Each request counts characters in the input field. Since spaces and punctuation count, a 4096-character limit might yield less than 4096 words of spoken content. Monitor your dashboard to see exactly how many characters have been consumed.
Usage data is available in your account panel. Review historical trends to identify which articles or segments generate the most audio data, helping you optimize content length before publication.
- Character count includes all spaces and punctuation
- Requests are billed per 1,000 characters
- Failed requests do not consume characters
Alerting on limits
Your API key allows 60 requests per minute. If you exceed this, requests may queue or fail. Set up notifications for when you approach the 50 requests/minute mark to avoid sudden drops in audio delivery.
For new accounts, the limit is 10 requests per minute until the first top-up. Alert your team if usage spikes during breaking news events to prevent throttling.
Budget forecasting
At $0.01 per 1,000 characters, you can easily estimate monthly costs based on your daily article volume. Multiply your average article length by the number of daily reads to forecast spend.
Start with the free trial credit of $0.50. Track its usage to understand the volume of audio you can generate before topping up with USDT. Balance does not expire, so plan your top-ups around high-traffic periods.
Testing in production
Once your TTS integration is live, validating performance with real users is crucial. Unlike pre-production tests, live traffic reveals how voice choices impact listener retention and comprehension across diverse news segments. This phase helps you fine-tune the experience before scaling further.
Start by rotating voices like Atlas for hard news and Aria for feature stories. Monitor how different demographics respond to each preset, ensuring the audio aligns with your editorial tone without causing listener fatigue.
A/B testing voices
Deploy two voice variants side-by-side for similar content types. Track which preset drives higher completion rates in your audio player. Use the 8 available voices to find the optimal match for specific news categories, such as using Felix for promotional updates or Milo for conversational interviews.
Record listener drop-off points to correlate them with voice fatigue. Adjust the default voice based on real engagement metrics rather than assumptions.
- Test Atlas for breaking news segments
- Compare Aria against Luna for long-form features
- Monitor completion rates per voice variant
Monitoring latency
Track generation time per request using your dashboard. Since requests are processed sequentially, observe queue times during peak news cycles. Ensure the ~25 characters/second generation rate holds steady under load.
Set up alerts for latency spikes that exceed typical processing times. Investigate if high request volumes are causing delays in audio delivery, affecting the user experience.
- Track request processing time
- Monitor queue wait times
- Alert on latency spikes
User feedback collection
Implement a simple feedback button in your audio player. Ask users if the voice clarity and speed meet their needs. Use this qualitative data to complement your quantitative metrics.
Review feedback regularly to identify specific voice or speed issues. Adjust parameters or switch voices based on direct user input to improve overall satisfaction.
- Add a feedback button in the player
- Review weekly user comments
- Adjust speed settings based on input

Scaling for traffic
News apps experience unpredictable traffic spikes during breaking stories. PressAudio handles this by processing requests sequentially. You can pre-generate audio for scheduled news segments to reduce real-time load during these peaks.
When demand surges, requests are queued and processed one after another. This predictable behavior means you know exactly how long generation will take, allowing you to set appropriate user expectations in your app interface.
Handling peak loads
The API processes requests sequentially, which prevents server overload during sudden traffic spikes common in news cycles. Since generation takes roughly real-time (25 characters per second), you can predict latency accurately. Pre-generating content for scheduled updates ensures your app remains responsive even when thousands of users request audio simultaneously.
- Pre-generate audio for scheduled news segments to reduce real-time load.
- Predict latency based on text length; short phrases take a few seconds.
- No need for complex auto-scaling groups; sequential processing ensures stability.
Queue management
Requests are processed in order, meaning under heavy load, a request may wait in a queue. You should implement exponential backoff in your client code to handle temporary delays gracefully. Since rate limits are 60 requests per minute per key, distribute your traffic across multiple keys if necessary to maintain throughput.
- Implement exponential backoff for delayed requests.
- Distribute traffic across multiple API keys if exceeding 60 req/min.
- Monitor queue depth to adjust client-side retry logic.
Load balancing
While the API itself manages server load, your application should balance requests across multiple API keys if you anticipate high volume. Each key allows 60 requests per minute. By rotating keys, you effectively multiply your throughput capacity. Ensure your backend service tracks usage per key to avoid hitting the 10 req/min limit for new keys before their first top-up.
- Rotate API keys to multiply throughput capacity (60 req/min per key).
- Track usage per key to avoid the 10 req/min new key limit.
- Use environment variables to easily swap keys without code changes.
Security best practices
Protecting your API key ensures your news app’s audio service remains secure and cost-effective. Since PressAudio uses a single active key per account, improper exposure could lead to unauthorized usage charges.
Storing API keys securely
Never hardcode your key in client-side JavaScript or commit it to public repositories. Store it in your server’s secure environment or secret management service.
- Use server-side proxies to hide the key from end-users.
- Restrict key usage if your provider supports IP whitelisting.
Using environment variables
Load your API key from environment variables in your deployment configuration. This keeps credentials out of your codebase and allows easy rotation without code changes.
- Prefix variables with TTS_ for clarity (e.g., TTS_API_KEY).
- Ensure your hosting platform injects these variables at runtime.
Rotating keys regularly
Since PressAudio allows issuing a new key that instantly invalidates the old one, rotate keys periodically. This minimizes risk if a key is compromised without disrupting service.
- Generate a new key from the dashboard.
- Update your environment variables, then invalidate the old key.
Deployment checklist
Getting the API integration right ensures your news app delivers audio reliably without unexpected downtime or billing surprises. A structured deployment process minimizes friction for your product team and guarantees that the TTS engine behaves predictably under real-world conditions.
Configuring endpoints
Point your SDK or HTTP client to the correct base URL: https://api.qq988.info/v1. Ensure the Authorization header uses your active API key in the format Bearer tts-.... Verify that your code sends requests to the /v1/audio/speech endpoint with the required JSON body containing model, input, and voice fields.
- Set base_url to https://api.qq988.info/v1
- Use Bearer token for authentication
- Target POST /v1/audio/speech
Setting up error logs
Log all API responses, including status codes and error messages, to facilitate quick debugging. Since requests are processed sequentially, monitoring latency helps identify queue delays. Record character counts and request timestamps for billing reconciliation and performance analysis.
- Log HTTP status codes
- Record request latency
- Save character counts for billing
Final verification
Run a test request with a short news snippet to confirm audio generation. Check that the response format matches your expected type (mp3, wav, etc.). Ensure the audio plays correctly in your news app interface and that the API key has sufficient balance or trial credit.
- Test with a sample news snippet
- Verify response format
- Confirm audio playback in app
Post-launch optimization
After your news app goes live, the real work begins in understanding how users interact with the audio. By analyzing usage patterns, you can identify which articles generate the most engagement and which voices resonate best with your specific audience segments.
Analyzing usage patterns
Review your billing metadata to see which character counts dominate your usage. Since requests are processed sequentially, long articles may experience queue delays. Use this data to decide if pre-generating content for high-traffic stories is necessary to maintain a smooth listening experience during peak news cycles.
- Track which voices are selected most often per article type
- Monitor average request duration to identify latency bottlenecks
- Identify articles that frequently hit the 4096-character limit
Adjusting voice presets
If users skip audio for certain segments, try swapping the default voice. For instance, switch from Atlas (neutral, news) to Felix (energetic, promo) for breaking news alerts or features. Since every voice can speak all 23 supported languages, you can also localize content for different regions without changing the engine.
- A/B test Aria for feature stories versus Atlas for hard news
- Adjust speed settings between 0.25 and 4.0 based on user retention
- Ensure language codes match the article content to avoid guessing errors
Updating documentation
As you refine your integration, update your internal docs with real-world curl examples and error-handling patterns you’ve discovered. Note specific rate limit behaviors (60 requests per minute) and how your queue management handles them. This ensures your team can replicate successful configurations quickly.
- Document successful voice-format combinations for different news categories
- Record typical latency figures for articles of varying lengths
- Update key rotation procedures based on actual usage frequency
Common pitfalls
News apps often hit limits quickly because they forget the 60 requests per minute cap. If your app sends multiple parallel requests, you might hit the queue and cause delays.
Another common issue is ignoring the 4096 character limit per request. Long articles must be split into chunks before sending, otherwise the API rejects the request entirely.
Failing to set the correct response format can also cause playback issues in your app. Always specify mp3 or wav in your JSON body to ensure compatibility with standard audio players.
Ignoring rate limits
PressAudio allows 60 requests per minute per key. If your app sends too many requests at once, it will queue up and delay audio generation. Monitor your usage to avoid bottlenecks.
Bullets: [
Misconfiguring formats
Always specify the response format (mp3, wav, opus, flac, pcm) in your JSON body. Not setting it correctly can lead to playback issues in your news app.
Bullets: [
Overlooking character counts
Each request can handle up to 4096 characters. Long articles must be split into chunks to ensure successful synthesis and avoid rejection.
Bullets: [
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For small product teams, this complexity can divert focus from core development.
23 languages
Any voice speaks any of these languages.
