Frequently asked questions
What is a text-to-speech project using Python?
A Python project using SonicPress sends text to our API endpoint and receives an audio file. You can use the official OpenAI SDK by changing the base URL to https://api.musang188.cc/v1. This allows blog publishers to programmatically convert written articles into audio episodes.
Can I use the OpenAI SDK with this API?
Yes. Our API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.musang188.cc/v1 and providing your SonicPress API key. This ensures compatibility with existing Python workflows.
How many languages are supported?
We support 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages, and the language is guessed from the script if not set.
Is there a free trial for publishers?
Yes. Signing in with Google provides $0.50 of credit, valid for 7 days, which covers about 50,000 characters. Accounts created with email and password start without trial credit. This allows publishers to test the API before committing to paid usage for their blog audio content.
What happens if my request fails?
Failed requests are free. If synthesis fails, the charge is returned in full. You only pay for successful audio generation. This ensures you are not charged for wasted processing time or errors during the conversion of your blog posts into audio episodes.
Do I need to pay for monthly subscriptions?
No. There are no monthly plans, seats, or minimum spend. You pay only for what you use at $0.01 per 1,000 characters. Balance does not expire, and you can top up as needed. This model fits variable publishing schedules without recurring fixed costs.
Can I use any voice with any language?
Yes. Every voice can speak any of the 23 supported languages. You can choose from eight presets like Aria, Nova, or Felix regardless of the language. If language is not set, it is guessed from the script (Latin text defaults to English), so for non-English Latin-script text set language.
How long does it take to generate audio?
Typical speed is roughly real time on long texts, about 25 characters per second. Short phrases take a few seconds. Requests are processed one after another, so under load a request may wait in a queue. This ensures consistent quality for your blog audio.
Is my text data used for training?
No. Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Only request metadata like time and characters is kept for billing purposes, preserving your content privacy.
What payment methods are accepted?
We accept USDT on the TRON network (TRC-20) only. The minimum top-up is $5, and credits are added automatically within minutes. We do not accept cards, PayPal, or subscriptions. No cards, no PayPal, no subscriptions, no invoices with VAT.
Can I get a refund for failed requests?
Yes. Failed requests are free, and the charge is returned in full automatically. You do not need to request a manual refund. This policy ensures you only pay for successfully generated audio files, protecting your budget when converting blog posts to speech.
Do I need a WordPress plugin to use this?
No. No WordPress plugin. You can add accessible audio versions to your WordPress site using a simple Python script that calls our API. This gives you full control over how audio is integrated into your existing blog infrastructure without extra dependencies.
What is the character limit per request?
Each request supports up to 4096 characters in the input field. Spaces and punctuation count as characters. For longer blog posts, you should split the text into parts of this size and join the resulting audio files to create a complete episode.
How do I handle long blog posts?
Split your text into parts of up to 4096 characters. Send each part to the API and join the returned audio files. This method ensures efficient processing and allows you to manage long articles without hitting the per-request character limit, maintaining audio quality.
First request
curl
curl https://api.musang188.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.mp3Why Publishers Use Python for TTS
Publishers leverage Python to automate the conversion of written articles into audio episodes, eliminating manual transcription steps. By sending text via a simple JSON payload, your script handles the heavy lifting of content repurposing without requiring complex infrastructure management.
Automate blog-to-audio workflows
Python scripts connect directly to our API endpoint, processing up to 4096 characters per request. This allows you to batch-process entire articles or break them into manageable segments, ensuring consistent audio output for your readers.
- Send text via standard JSON payloads
- Receive MP3 or WAV files automatically
- Process requests sequentially for reliable output
Save time on content repurposing
Instead of hiring voice actors for every post, use our 8 voice presets to generate audio instantly. Python handles the logic, letting you focus on writing while the API produces narration in seconds.
- Instant generation for short phrases
- Real-time speed for long texts
- No manual audio editing required
Scale content creation efficiently
With 60 requests per minute, you can rapidly convert large backlogs of articles. The API’s straightforward integration means you can scale your audio library without increasing overhead or managing servers.
- High throughput for bulk conversions
- Simple scaling without infrastructure changes
- Consistent quality across all episodes
How the Python TTS Project Works
The workflow begins by sending your blog text to the API endpoint. You package the input into a simple JSON payload containing the model, voice selection, and text content. This standard structure allows you to use familiar HTTP libraries without needing a custom SDK.
Once the request is processed, you receive the generated audio file directly in the response. You can choose formats like MP3 or WAV. The system handles the synthesis, returning a ready-to-play audio file that matches your original article's length and tone.
This straightforward data flow makes it easy to automate content repurposing. You can trigger the API from a Python script whenever a new post goes live, ensuring your WordPress site always has an accessible audio version ready for readers.
Send text via JSON payload
You construct a JSON object with the model, input text, and voice parameters. The API accepts up to 4096 characters per request. For longer articles, your script splits the text into chunks, sends each part sequentially, and joins the resulting audio files.
The request requires a Bearer token in the Authorization header. This key is generated on your dashboard and authenticates each request. You can send standard HTTP POST requests using libraries like requests or urllib.
- JSON body with model, input, and voice fields
- Text limit of 4096 characters per request
- Bearer token authentication
- Standard HTTP POST method
Receive audio files in MP3 or WAV
The API returns the audio file directly in the response body. You can select formats such as MP3, WAV, Opus, FLAC, or PCM. MP3 is recommended for web delivery due to its small file size and broad compatibility.
Each file includes an inaudible watermark indicating synthetic speech. The generation speed is roughly real-time on long texts (about 25 characters per second); short phrases take a few seconds. Requests are queued under load, but processing is sequential.
- Response format options: MP3, WAV, Opus, FLAC, PCM
- Inaudible synthetic speech watermark
- Real-time generation speed
- Direct audio file in response body
Integrate with WordPress plugins
You can store the generated audio files on your WordPress media library or a CDN. A simple Python script can upload the file via the WordPress REST API or FTP after generation. This keeps your workflow fully automated.
Embed the audio using standard HTML5 players or WordPress block plugins. The audio file URL is returned by your storage system, allowing you to link it directly to the blog post header or sidebar.
- Automated upload via script
- HTML5 audio player embed
- WordPress REST API integration
- CDN or media library storage
Voices and Languages Available
SonicPress provides eight distinct voice presets tailored for blog publishing, from warm narrators to deep documentary styles. Each voice is based on licensed recordings, ensuring high-quality audio for your content without complex infrastructure management.
8 distinct voice presets
Choose from female voices like Aria (warm narrator) and Nova (bright), or male options like Felix (energetic) and Orion (deep). These eight presets cover various tones, allowing you to match the voice to your article’s style.
- Aria: Warm, clear narrator
- Felix: Energetic, promo style
- Orion: Deep, documentary tone
- Sage: Calm, instructional
23 supported languages
Our API supports 23 languages, including English, Spanish, German, French, and Japanese. Any voice can speak any of these languages, giving you flexibility for international audiences. We do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali and all others not in the list.
Natural-sounding narration
Each generated file carries an inaudible watermark marking it as synthetic speech. The voices are based on licensed recordings from LibriTTS-R, providing clear, natural-sounding narration suitable for blog posts and accessibility compliance.
Pricing for Publishers
SonicPress uses a simple pay-per-character model: $10 per 1 million characters. Failed requests are free, ensuring you only pay for successful audio generation. This transparent structure helps publishers budget accurately without hidden fees or monthly commitments.
Pay per character usage
Each request costs $0.01 per 1,000 characters, including spaces and punctuation. Since texts are limited to 4,096 characters per request, longer articles are split and stitched automatically. This granular billing allows precise control over content repurposing costs.
- Cost: $10 per 1 million characters
- Failed requests are free
- No minimum spend or monthly plans
Free trial with Google sign-in
Sign up via Google to receive $0.50 in trial credit, valid for 7 days. This provides approximately 50,000 characters to test integration with your WordPress site. Email-based accounts start with zero credit.
Transparent USDT payments
Tops up via USDT on the TRON network (TRC-20). Minimum deposit is $5, credited automatically within minutes. No credit cards, PayPal, or VAT invoices. Balance never expires, allowing you to pay only when needed.
- Network: TRON (TRC-20)
- Minimum top-up: $5
- Auto-credit within minutes
Technical Requirements
Your TTS project relies on standard Python environments and basic scripting skills. You do not need advanced software engineering experience to build a functional workflow. The API accepts simple JSON payloads, making it easy to integrate with existing blog automation scripts.
Standard HTTP libraries like requests or urllib handle all communication. You send text and receive audio files directly. This approach keeps your code lightweight and compatible with any modern Python version used in backend scripts or cron jobs.
Basic Python knowledge needed
Understanding how to construct JSON objects and send HTTP POST requests is sufficient. You can read text from your WordPress database or RSS feed and pass it to the API. Error handling for rate limits or failed synthesis is straightforward with standard Python try-except blocks.
- Read text strings up to 4096 characters
- Construct JSON bodies with
model,input, andvoicefields - Parse JSON responses for audio URLs or error messages
Standard HTTP libraries work
No proprietary client library is required. Use built-in modules or popular packages like requests. This ensures your script works consistently across different server environments. You manage the connection directly, giving you full control over retries and timeouts.
- Use
requests.post()for API calls - Set
Authorization: Bearerheader with your key - Handle JSON response bodies directly
No custom SDK required
The API follows a standard OpenAI-compatible shape. You can use the official OpenAI Python SDK by simply changing the base_url to https://api.musang188.cc/v1. This allows you to leverage existing community examples without learning a new interface.
- Compatible with OpenAI Python SDK
- Works with raw HTTP requests
- No additional dependencies needed

WordPress Integration Tips
Integrating SonicPress with WordPress is straightforward, requiring only standard HTTP requests to generate audio from your existing content. This approach allows you to add accessible audio versions to your site without managing complex infrastructure.
Embed audio players easily
Use the standard HTML5 <audio> tag to embed generated files directly into your post content. Since the API returns a file, you can host it on your server or a CDN and link it seamlessly within your theme.
- Use standard HTML5 <audio> tags
- Link generated files in post content
- No heavy plugin dependencies required
Handle character limits
The API accepts up to 4096 characters per request. For longer articles, split your text into chunks, generate each part, and join the audio files. This ensures high-quality synthesis without hitting input limits.
- Limit: 4096 characters per request
- Split long articles into chunks
- Join audio files programmatically
Manage audio file storage
Audio files are returned in the response and not stored by SonicPress. You must handle storage for your generated MP3 or WAV files. Consider using a dedicated media library folder to keep your WordPress installation organized.
- Files returned in response
- Not stored by SonicPress
- Use dedicated media folders
Common Use Cases
Publishers leverage SonicPress to convert written articles into audio episodes, enabling readers to consume content hands-free. This workflow is particularly effective for long-form blog posts, allowing audiences to listen during commutes or chores without sacrificing reading depth.
By automating audio generation, content creators can repurpose existing written material into accessible formats efficiently. This approach supports compliance with accessibility standards, ensuring that visual content reaches users with diverse needs without requiring manual recording efforts.
Blog post audio versions
Convert lengthy articles into listenable episodes using a simple Python script. The API handles text splitting and audio joining, delivering ready-to-use MP3 or WAV files that integrate directly into your WordPress media library.
- Automatic text splitting for posts longer than 4096 characters
- Support for MP3, WAV, Opus, FLAC, and PCM formats
- Seamless integration with existing WordPress media structures
Podcast episode generation
Generate voiceovers for niche topics or daily updates without hiring voice actors. With eight distinct presets like Aria or Atlas, you can maintain a consistent brand voice across all your episodes, from news summaries to storytelling.
- 8 voice presets for varied tonal needs
- 23 languages including English, Spanish, and German
- Real-time generation speed for rapid content turnaround
Accessibility compliance
Provide audio alternatives to meet WCAG guidelines, ensuring your blog is accessible to visually impaired users. Synthetic speech offers a cost-effective solution for adding audio layers to your site without managing complex infrastructure.
- Cost-effective alternative to human narration
- Inaudible watermark marks synthetic speech clearly
- No training data usage for privacy compliance
Getting Started Quickly
Start by creating an account on our /get-api-key/ page. You can sign in with Google to receive a $0.50 free trial (valid for 7 days) or use an email and password. This trial gives you about 50,000 characters to test the service immediately.
Sign up for an account
Visit the registration page to create your account. Accounts are specific to this site, so you will need a separate account if you use another storefront. The process takes less than a minute.
- Google sign-in includes free trial credit
- Email and password accounts start without credit
- Instant account creation
Get your API key
Once logged in, you will see your active API key on the dashboard. This key authenticates your requests. You can generate a new key at any time, which immediately invalidates the old one.
- One active key per account
- Key visible on the dashboard
- Instant invalidation of old keys
Run your first request
Use the provided curl example or Python script to send a POST request to the speech endpoint. Include your text, a voice preset, and your API key. You will receive an audio file in your chosen format.
- Send text via JSON payload
- Receive audio files instantly
- Use standard HTTP libraries
Support and Documentation
SonicPress documentation is designed for practical implementation. Our guides walk you through each step of integrating the TTS API into your WordPress workflow, from generating your first audio file to handling character limits efficiently.
Step-by-step guides
Our documentation covers the entire integration process. You will find clear instructions on configuring your API key, setting the correct base URL, and managing request parameters for optimal results in your blog environment.
Code examples provided
We provide ready-to-use Python snippets that demonstrate how to send text and receive audio files. These examples use standard HTTP libraries, so you do not need to install a custom SDK or manage complex dependencies for your WordPress plugin.
- JSON payload structure examples
- Python requests library snippets
- Error handling patterns
Email support available
For specific technical questions or integration issues, our support team is available via email. We do not offer phone support or live chat. Support is by email only.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Whether you are publishing news, personal essays, or technical guides, your specific words do not become part of the engine’s learning pool.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- MDN: Web Speech API
- LibriVox public-domain audiobooks
- LibriTTS-R paper (arXiv 2305.18802)
- OpenAI API reference: create speech
- FFmpeg documentation
- LibriTTS-R corpus (OpenSLR 141)
- Python documentation
- openai-python on GitHub
- TRON developer hub: TRC-20
- ISO 639 language codes
- Creative Commons Attribution 4.0
