API Documentation for Text-to-Speech Integration

By NavVoice editorial team · Updated 2026-11-18

This page provides the essential reference for integrating NavVoice’s text-to-speech API into automotive navigation and infotainment systems. You will find concrete examples for generating audio files, managing voice selection, and handling character limits. The documentation is designed for product teams and developers who need predictable costs and simple integration without enterprise overhead.

We cover every step from obtaining your API key to handling long GPS instructions. You will learn how to use the OpenAI SDK, manage rate limits, and select from eight preset voices. All details are based on the actual API behavior, ensuring your navigation prompts are clear, compliant, and ready for production deployment.

API Documentation for Text-to-Speech Integration

Frequently asked questions

What is the API endpoint URL?

The endpoint is POST https://api.k555ok.com/v1/audio/speech. Send a JSON body with your text and parameters. This follows the standard OpenAI speech endpoint shape, ensuring consistent integration patterns for automotive audio generation workflows.

How do I get my API key?

Sign up at https://k555ok.com/get-api-key/ using Google or email. Your active key appears on the dashboard. You can issue a new key anytime; the old one stops immediately. One key is active per account.

Does it work with OpenAI SDK?

Yes. Change the SDK base_url to https://api.k555ok.com/v1 and use your NavVoice key. The request shape matches the OpenAI speech endpoint exactly, allowing you to reuse existing OpenAI SDK code for your TTS integration.

What audio formats are supported?

Supported formats are mp3, wav, opus, flac, and pcm. Select your preferred format in the response_format field. These options cover most automotive infotainment and GPS system requirements for audio playback.

What are the rate limits?

You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so high load may cause queuing delays.

How do I handle long texts?

Split text into parts of up to 4096 characters. Send each part as a separate request and join the resulting audio files. This ensures compliance with the character limit per request while maintaining audio continuity.

How do I set the language?

Pass the optional language parameter with an ISO code. If omitted, the system guesses the language from the script. For non-English Latin text, explicitly set the language to ensure correct synthesis.

Can I change the speed of speech?

Yes, adjust the speed parameter between 0.25 and 4.0. This allows you to optimize audio length for GPS instructions or infotainment content, ensuring clear delivery within your vehicle’s display constraints.

What happens if I exceed rate limits?

Requests may wait in a queue or be rejected if the limit is exceeded. Failed requests are free, so you are not charged for audio that does not generate successfully.

Is the API RESTful?

Yes, it uses standard HTTP methods. POST for speech generation, and GET for retrieving voices and models. This RESTful design simplifies integration into existing automotive software stacks and development pipelines.

How do I authenticate requests?

Include your API key in the Authorization header as Bearer tts-... . This key is issued upon account creation and can be rotated anytime. Ensure the header is correctly formatted for all requests.

Can I use multiple voices in one call?

No, each request supports only one voice preset. To use different voices, send separate requests for each segment. You can then concatenate the resulting audio files to create a multi-voice output.

How do I know if a request failed?

Check the HTTP status code and response body for error details. Failed requests are free, with charges returned in full. Monitor your dashboard for usage logs to track success and failure rates.

Where can I find the voice list?

Call GET https://api.k555ok.com/v1/voices to retrieve available voices, languages, formats, and pricing. This endpoint provides the complete list of eight presets, including details for aria, nova, luna, sage, felix, milo, atlas, and orion.

First request

curl

curl https://api.k555ok.com/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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.k555ok.com/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.k555ok.com/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
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Get Your API Key

Sound wave illustration for: Get Your API Key

Start by creating your NavVoice account at https://k555ok.com/get-api-key/ using Google or email. This dashboard gives you immediate access to your unique API key, which is required for all requests to https://api.k555ok.com/v1. You can also check your balance and trial credit here.

Sign up on the dashboard

Sign up on the dashboard

Visit the get-api-key page to register. Google sign-in grants a $0.50 trial credit valid for 7 days. Email registration starts with a zero balance. No credit card is needed to begin testing your TTS integration.

Copy key from account page

Copy key from account page

Once logged in, your active API key is displayed on the account page. Use this key in the Authorization: Bearer header. The interface also shows your current balance, characters remaining, and a ready-to-use cURL example for quick verification.

Regenerate key if needed

You can issue a new API key at any time from your account settings. The old key stops working immediately upon regeneration, ensuring secure access control for your navigation system projects without downtime during key rotation.

First Request with cURL

Sound wave illustration for: First Request with cURL

Generate speech with a simple HTTP request. The endpoint accepts JSON payloads and returns audio files directly, making integration into navigation systems straightforward. Use the base URL https://api.k555ok.com/v1 for all requests.

Authentication requires a Bearer token in the Authorization header. Ensure your key is active and within rate limits to avoid interruptions during voice synthesis.

POST to /v1/audio/speech

Send a POST request to the speech endpoint. The API processes the text and returns the synthesized audio file in the response body.

This endpoint supports standard TTS parameters, allowing you to customize the output for your specific navigation use case.

  • Endpoint: https://api.k555ok.com/v1/audio/speech
  • Method: POST
  • Content-Type: application/json

Include JSON body with text and voice

The request body must include the model, input, and voice fields. You can also specify response_format, speed, and language for precise control.

Text is limited to 4096 characters per request. Ensure your input is within this limit for immediate synthesis.

  • model: "tts-1" or "tts-1-hd"
  • input: Your text string
  • voice: One of 8 presets
  • response_format: mp3, wav, opus, flac, or pcm
  • speed: 0.25–4.0
  • language: Optional ISO code

Receive audio file in response

Upon successful synthesis, the API returns the audio file directly. You can save this file or stream it to your application.

If synthesis fails, you receive an error response with no charge, ensuring you only pay for successful outputs.

  • Response includes audio binary data
  • Failed requests are free
  • Audio carries a synthetic watermark

Using the OpenAI SDK

Sound wave illustration for: Using the OpenAI SDK

The NavVoice API mirrors the OpenAI speech endpoint structure, allowing you to leverage familiar libraries for seamless integration. This compatibility simplifies adoption for automotive teams already using standard SDKs in their infotainment or GPS software stacks.

By adjusting the base URL, you can switch from OpenAI to NavVoice without rewriting your core synthesis logic. This ensures consistent behavior while benefiting from our specific voice presets optimized for clear navigation instructions.

Change base_url to api endpoint

Point your client configuration to https://api.k555ok.com/v1 instead of the default OpenAI endpoint. This single change directs all synthesis requests to our infrastructure while maintaining the same JSON payload structure.

Use official OpenAI client library

Install the standard openai Python or Node.js package. Import the Audio module and initialize the client using your environment variables. The library handles serialization and deserialization of the audio response automatically.

Pass your key in authorization header

Set the Authorization header to Bearer tts-... using the key generated on your dashboard. Ensure the key is transmitted securely over HTTPS to protect your account and usage data.

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

NavVoice API supports multiple audio formats to suit different automotive integration needs. You can choose between MP3, WAV, OPUS, FLAC, and PCM based on your specific use case.

MP3 for web compatibility

MP3 is the standard choice for web-based infotainment systems and mobile apps. It provides broad compatibility with minimal file size, ensuring smooth playback across most navigation interfaces.

WAV for high quality

Choose WAV when you need uncompressed audio for premium infotainment displays. This format preserves the full fidelity of the synthesized voice without any lossy compression artifacts.

OPUS and FLAC for efficiency

OPUS offers excellent compression for bandwidth-constrained devices, while FLAC provides lossless compression for archival or high-end audio systems. PCM is also available for raw data.

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

Predictable timing matters when generating GPS instructions. Our API processes requests sequentially, meaning heavy usage may introduce slight queues. Knowing your limits helps you plan batch syntheses for route descriptions without hitting bottlenecks during peak navigation updates.

60 requests per minute per key

Once your account is active, you can send up to 60 synthesis requests per minute. This allows you to generate multiple navigation prompts or infotainment sounds rapidly, provided the system has the capacity to process them immediately.

  • Standard limit for established accounts
  • Processed sequentially under load

10 requests per minute initially

New accounts start with a lower threshold of 10 requests per minute. This ensures stability while your key is verified. You can test your integration with this limit before scaling up your audio generation volume.

Limits increase after top-up

The initial limit increases automatically once you add credit. Top-ups via USDT (TRC-20) are credited within minutes, raising your rate limit to the standard 60 requests per minute. No manual approval is required.

  • USDT (TRC-20) only
  • Automatic credit within minutes
Rate Limits and Quotas

Handling Long Text

Sound wave illustration for: Handling Long Text

GPS navigation scripts often exceed the 4096-character limit per request. Since the API processes one chunk at a time, you must split longer directions into smaller segments before sending them to the endpoint.

Split text into 4096 char chunks

Divide your navigation instructions into strings of no more than 4096 characters. Count spaces and punctuation as characters. This ensures each request fits the model's input constraint without truncation or errors.

Synthesize each part separately

Send each chunk as an individual POST request to /v1/audio/speech. The API returns an audio file for each call. Since requests are processed sequentially, longer texts may queue up, so handle asynchronous responses appropriately in your app logic.

Join audio files for playback

Once all chunks are synthesized, concatenate the resulting audio files in order. This creates a seamless voice output for the full route. The combined file plays naturally, preserving the continuity of your navigation guidance.

Error Handling

Sound wave illustration for: Error Handling

Navigation TTS integration requires robust error handling to ensure seamless voice output for GPS instructions and infotainment systems. When the API returns non-200 status codes, your application should immediately log the response and adjust the playback flow accordingly, preventing silent failures during critical navigation cues.

Check HTTP status codes

Always inspect the HTTP status code returned by the POST /v1/audio/speech endpoint. Codes like 400 indicate invalid JSON or missing fields, while 401 signals an expired or incorrect API key. For 500-series errors, the request failed server-side, but since failed requests are free, you can safely retry without worrying about billing surprises. Note that failed requests are free, but rate limit rejections (429) are also not charged.

  • 400: Bad Request (invalid parameters or text length)

Handle rate limit errors

The API enforces a limit of 60 requests per minute per key. If you exceed this, you will receive a 429 status code. New accounts start with a lower limit of 10 requests per minute. Monitor your usage dashboard to anticipate spikes during batch processing of navigation scripts.

  • 60 requests/minute after top-up

Retry failed requests

Implement exponential backoff for transient errors. Since text input is used only for generation and not stored, retrying a failed request does not duplicate data usage. However, avoid aggressive retry loops during peak load, as requests are processed sequentially and may queue behind other users.

  • Retry on 5xx errors

Voice and Language Parameters

Sound wave illustration for: Voice and Language Parameters

Choose from eight distinct voices designed for clear navigation instructions and infotainment narration. Each voice offers a specific tone, from the warm clarity of Aria to the neutral authority of Atlas, ensuring your GPS prompts sound natural and professional.

Select from 8 preset voices

Pick a voice that matches your brand’s personality. Options include Aria (warm narrator), Nova (upbeat), Luna (soft storytelling), Sage (calm instructions), Felix (energetic promo), Milo (friendly conversation), Atlas (neutral news), and Orion (deep documentary).

  • 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

Set language code for clarity

Explicitly define the language using an ISO code to ensure accurate pronunciation, especially for non-English Latin text. While the system guesses the language from the script, setting this parameter guarantees clarity for navigation cues in supported languages like German, Japanese, or Arabic.

  • Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish

Adjust speed from 0.25 to 4.0

Control the playback speed to fit your app’s pacing. Adjust the speed parameter between 0.25 and 4.0 to slow down complex directions or speed up brief notifications, ensuring the audio syncs perfectly with your user interface animations.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our navigation system seamlessly integrates with automotive hardware to guide drivers through complex urban environments.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. MDN: Web Speech API
  3. openai-python on GitHub
  4. LibriVox public-domain audiobooks
  5. FFmpeg documentation
  6. Creative Commons Attribution 4.0
  7. W3C WAI: making audio and video accessible
  8. Python documentation
  9. LibriTTS-R corpus (OpenSLR 141)
  10. openai-node on GitHub
  11. OpenAI API reference: create speech
  12. IETF RFC 7845: Ogg Opus

More on this site