API Documentation for Navigation Voice Integration

By NavVoice Labs editorial team · Updated 2026-11-19

This documentation helps car navigation startups integrate natural, licensed text-to-speech into their routing engines. You will find concrete examples for receiving audio files, configuring the OpenAI SDK, and managing voice settings for directions. It covers the technical details needed to replace robotic prompts with clear, human-like narration.

Designed for developers building in-car voice assistants, this guide explains authentication, rate limits, and error handling specific to navigation workflows. Learn how to split long texts, handle failures with automatic refunds, and manage billing via USDT. Everything you need to get your TTS endpoint working is here.

API Documentation for Navigation Voice Integration

Frequently asked questions

How do I get an API key?

Sign up on the /get-api-key/ page using Google or an email and password. The dashboard displays your key, balance, and usage details. Each account is tied to the specific site. You can issue a new key at any time, which immediately invalidates the old one.

Does the API support OpenAI SDKs?

Yes, the request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.mingalar2d.info/v1 and providing your site’s key. This allows seamless integration into existing codebases without rewriting the HTTP client logic.

What is the base URL for the API?

The base URL is https://api.mingalar2d.info/v1. Use this for all API calls, including the POST /v1/audio/speech endpoint for generation and GET /v1/voices for listing available voices. Ensure your Authorization header uses your specific API key for authentication.

How do I change the voice in a request?

Include the voice field in your JSON body with one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. You can list all available voices using the GET /v1/voices endpoint. Each voice offers a distinct tone suitable for navigation.

What formats are supported for audio output?

You can specify the response_format field with mp3, wav, opus, flac, or pcm. These formats cover most navigation app needs. Select the format that best fits your application’s audio processing pipeline and storage constraints while maintaining the required audio quality.

What is the rate limit for requests?

The limit is 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Exceeding this limit may result in temporary throttling. Monitor your usage via the dashboard to ensure smooth operation during peak navigation hours.

How many characters can I send per request?

Each request supports up to 4096 characters of input text. For longer texts, split them into parts of this size and join the resulting audio files. Spaces and punctuation count toward the character limit, so plan your text segmentation accordingly.

What happens if I exceed the rate limit?

Requests may wait in a queue or return an error if the limit is exceeded. The system processes requests sequentially under load. Ensure your application handles retries gracefully. The limit resets every minute, so burst traffic is managed automatically within the quota.

Can I regenerate my API key?

Yes, you can issue a new key at any time from your dashboard. The old key stops working immediately when the new one is active. This is useful for security or if you suspect a key has been compromised in your navigation app.

How do I specify the language in the request?

Include the language field with an ISO code. If omitted, the system guesses the language, defaulting to English for Latin script. For non-English Latin text, always set the language explicitly to ensure accurate pronunciation and natural speech patterns in your navigation prompts.

Is the API compatible with Python SDKs?

Yes, since the request shape matches OpenAI’s, standard Python SDKs work by adjusting the base_url. You do not need a proprietary SDK. Use the official OpenAI Python library, point it to our endpoint, and pass your API key for authentication.

How do I handle audio streaming?

The API does not support streaming or WebSocket connections. It returns the complete audio file in the response body. For navigation, generate the full audio chunk before playing it to ensure consistent playback without buffering issues or partial audio artifacts.

What are the different model options?

You can choose between "tts-1" and "tts-1-hd". Both use the same engine and price. The choice depends on your quality preference. List available models using the GET /v1/models endpoint. Both models support all eight voices and 23 languages effectively.

Do I need to pay for each request?

You pay $0.01 per 1,000 characters. Failed requests are free, with charges returned in full. You need a balance, topped up via USDT on TRON. There are no monthly plans or minimum spends. Pay only for the characters you successfully generate.

First request

curl

curl https://api.mingalar2d.info/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.mingalar2d.info/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.mingalar2d.info/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

Authentication

Sound wave illustration for: Authentication

To use the NavVoice Labs API, include your unique API key in the HTTP header as Authorization: Bearer tts-.... This key authenticates your requests to https://api.mingalar2d.info/v1 and tracks your character usage against your account balance.

Key Management

Each account holds one active key. You can generate a new key at any time via the dashboard; the previous key stops working immediately, ensuring you always know exactly which key is active. This simplifies tracking usage in your navigation app's backend logs.

  • One active key per account
  • Issue new keys anytime
  • Old key stops immediately

Security and Key Rotation

Treat your key like a password. Since requests are authenticated per key, rotating it instantly invalidates any leaked credentials. Use environment variables in your navigation server to store the key, avoiding hardcoding it in client-side scripts or version control.

Quickstart with Curl

Sound wave illustration for: Quickstart with Curl

Generate navigation audio instantly using our API. Send a POST request with your text and receive an MP3 file ready for playback in your app.

This quickstart demonstrates the simplest integration. You need only a valid API key and the text to convert.

Receiving Audio

Upon successful synthesis, the API returns the audio file directly in the response body. No additional polling or streaming endpoints are required; the file is ready for immediate playback in your navigation interface.

Basic Request Example

Use the following curl command to generate speech. Replace YOUR_API_KEY with your key from the dashboard.

The request uses the tts-1 model, which is cost-effective for standard navigation prompts. The response will be an MP3 file.

  • `curl -X POST https://api.mingalar2d.info/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Turn left in 200 meters", "voice": "nova"}'`

Integration with OpenAI SDK

Sound wave illustration for: Integration with OpenAI SDK

Switching to NavVoice Labs from OpenAI’s TTS endpoint is straightforward because the request shape is identical. You simply update the base URL in your client configuration to point to our API. This allows you to keep using the official OpenAI SDKs while leveraging our licensed voices tailored for navigation contexts.

By changing the base URL, your existing code logic for sending text and receiving audio files remains unchanged. You can test the integration immediately using your API key without rewriting your voice synthesis logic.

Code Examples

Here is a minimal Python example using the OpenAI SDK to generate speech. The only change required is the base_url parameter.

import openai client = openai.OpenAI( base_url="https://api.mingalar2d.info/v1", api_key="tts-your-api-key-here" ) response = client.audio.speech.create( model="tts-1", voice="aria", input="Turn left in 200 meters.", response_format="mp3" ) with open("navigation_instruction.mp3", "wb") as f: f.write(response.content.read())

Base URL Configuration

Set your SDK’s base URL to https://api.mingalar2d.info/v1. This ensures all requests, including POST /v1/audio/speech, route correctly to our infrastructure.

Your API key must be passed via the standard Authorization: Bearer header, which the OpenAI SDK handles automatically. Ensure your key starts with tts-.

  • Base URL: https://api.mingalar2d.info/v1
  • Auth Header: Authorization: Bearer tts-...

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts an input field for your navigation instructions, limited to 4096 characters per request. If your route text exceeds this, split it into smaller chunks and concatenate the resulting audio files. You can optionally specify a language ISO code to ensure correct pronunciation, as the system guesses the language from the script by default.

Control the playback speed using the speed parameter, which accepts values between 0.25 and 4.0. This allows you to adjust the voice pacing to match the driver's reading speed. Choose your preferred audio format from mp3, wav, opus, flac, or pcm, balancing file size and quality for your navigation app's needs.

Voice and Language Settings

Select one of eight licensed voice presets, such as 'atlas' for neutral news-style updates or 'nova' for bright, upbeat directions. These voices support 23 languages, including English, Spanish, German, and Japanese. If you send Latin-script text in a non-English language, always set the language parameter to avoid incorrect English pronunciation.

Each voice is based on licensed recordings from LibriTTS-R. All generated audio files include an inaudible watermark to identify them as synthetic speech.

  • Voice presets: aria, nova, luna, sage, felix, milo, atlas, orion
  • Supported languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
  • Default language detection guesses from script; explicit language code is recommended for non-English Latin text

Speed and Format Options

Adjust the speed parameter between 0.25 and 4.0 to fine-tune how fast the navigation instructions are spoken. This is critical for ensuring drivers can hear and process directions without distraction during complex maneuvers. Test different speeds with your specific voice preset to find the optimal balance for your user base.

Choose your output format from mp3, wav, opus, flac, or pcm. MP3 is generally suitable for most mobile navigation apps due to its small file size, while WAV or FLAC may be preferred for higher-fidelity in-car systems. PCM is available for raw audio processing needs.

  • Speed range: 0.25 to 4.0
  • Supported formats: mp3, wav, opus, flac, pcm
  • Input limit: 4096 characters per request

Response Formats

Sound wave illustration for: Response Formats

The API returns the synthesized audio directly in the response body as a binary file, eliminating the need for intermediate storage or polling endpoints. You can immediately pipe this output into your navigation’s audio player or save it to a temporary directory for playback during turn-by-turn guidance.

Because the response contains raw audio data, your integration should handle the content appropriately based on the requested format. This direct delivery ensures minimal latency.

Audio File Handling

The response body contains the complete audio file, ready for immediate playback or storage. Ensure your HTTP client reads the raw binary data without parsing it as JSON, as the content type will match your requested format (e.g., audio/mpeg for MP3).

For long navigation routes, you may need to split the text into chunks under 4,096 characters. The API returns separate audio files for each request, which your application must concatenate or play sequentially to maintain a continuous voice experience.

  • Use the response_format parameter to control the output type.
  • Handle binary data directly from the HTTP response body.
  • Concatenate multiple audio files if text exceeds character limits.

Supported Audio Formats

You can choose from five audio formats: mp3, wav, opus, flac, and pcm. MP3 is recommended for general use due to its balance of quality and file size, while WAV offers uncompressed lossless audio. OPUS provides efficient compression suitable for bandwidth-constrained mobile networks.

FLAC is ideal for archival or high-fidelity playback, and PCM provides raw uncompressed audio data. Select the format that best matches your navigation app’s audio engine and network conditions to optimize both sound quality and data usage.

  • mp3: Balanced quality and size.
  • wav: Uncompressed, high fidelity.
  • opus: Efficient compression for mobile.
  • flac: Lossless archival quality.
  • pcm: Raw uncompressed data.

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

Our API processes requests sequentially, meaning synthesis happens one after another rather than in parallel. For long navigation instructions, the system splits text into 4,096-character chunks, generates audio for each, and joins them. This ensures consistent quality but introduces a slight delay proportional to the total character count.

Under heavy load, requests may wait in a queue before processing begins. While typical generation speed is roughly real-time (25 characters per second), short phrases may take a few seconds. Plan your navigation prompts to avoid unnecessary waiting during critical route turns.

Handling Queue Delays

Since requests are processed one after another, your application should expect latency proportional to the text length. For complex, multi-step directions, splitting the input into smaller segments before sending them can help manage perceived delays.

Requests Per Minute

Each API key is limited to 60 requests per minute. Before your first top-up, this limit is reduced to 10 requests per minute to prevent abuse during the trial period.

If you exceed the limit, your requests will be rejected with a 429 error. Ensure your navigation app handles these errors gracefully by retrying after a short delay.

  • Standard limit: 60 requests/minute per key
  • Trial limit: 10 requests/minute
  • Exceeded limit returns HTTP 429
Rate Limits and Quotas

Error Handling

Sound wave illustration for: Error Handling

When synthesis fails, you are not charged for the request. This ensures that temporary network issues or server timeouts do not impact your balance, allowing you to retry without financial penalty. Failed requests are refunded in full to your account.

Understanding error responses helps you build robust retry logic for your navigation app. Below are the common status codes you may encounter during integration.

Refund on Failure

If the API returns an error status, the character count is not deducted from your balance. You can safely retry the request or split the text into smaller chunks if the input exceeds the 4096-character limit.

Common Error Codes

429 Too Many Requests: You have exceeded the rate limit of 60 requests per minute. Wait and retry, or upgrade your plan if needed.

400 Bad Request: The input text is empty or invalid. Ensure the input field contains text within the 4096-character limit.

500 Internal Server Error: A temporary issue on our side. Retry after a short delay.

Voices Endpoint

Sound wave illustration for: Voices Endpoint

The /v1/models endpoint confirms the available engine configurations for your navigation voice integration. Both "tts-1" and "tts-1-hd" utilize the same underlying engine and pricing structure, allowing you to switch between standard and high-definition audio without changing your billing logic.

Use this endpoint to verify available models dynamically within your application setup, ensuring compatibility as we update our infrastructure.

Model Information

Both models use the same engine. "tts-1-hd" offers slightly higher fidelity but costs the same per character. Choose based on your bandwidth constraints and audio quality preferences for in-car playback.

Available Voice Presets

We provide eight licensed voice presets suitable for navigation contexts. Each voice is trained on public domain audiobook readings, ensuring natural flow for route instructions.

For directional cues, atlas (neutral, news) or milo (friendly, conversational) are options. For engaging turn-by-turn prompts, nova (bright, upbeat) or felix (energetic, promo) are options.

Full list: aria, nova, luna, sage, felix, milo, atlas, orion. All support 23 languages including English, Spanish, German, and Japanese.

  • 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

Pricing and Billing

Sound wave illustration for: Pricing and Billing

Navigation apps pay strictly per character processed, including spaces and punctuation. The rate is $10 per 1 million characters, or $0.01 per 1,000 characters. Failed requests are free, with the charge returned in full if synthesis fails.

Accounts start with a $0.50 trial credit (7 days) for Google sign-ups. Top-ups require USDT on the TRON network (TRC-20), with a $5 minimum. Credits are added automatically within minutes. No cards, PayPal, or VAT invoices are supported.

Character-Based Pricing

Navigation apps pay strictly per character processed, including spaces and punctuation. The rate is $10 per 1 million characters, or $0.01 per 1,000 characters. Failed requests are free, with the charge returned in full if synthesis fails.

Payment with USDT

Top-ups use USDT on the TRON network (TRC-20) only. Minimum top-up is $5. Credits are added automatically within minutes after the transfer. No cards, PayPal, or VAT invoices.

Account Management

Sound wave illustration for: Account Management

Access your API key by signing up on the /get-api-key/ page using either a Google account or an email and password. Each account is specific to this site and provides a single active key for all requests. You can issue a new key at any time, which immediately invalidates the previous one, ensuring simple key rotation without downtime.

Your account dashboard displays your current balance, trial status, character usage, and a ready-to-use cURL example. This centralized view helps you monitor consumption and manage your navigation voice integration efficiently without needing external billing tools.

Signing Up and Credits

You can sign up using Google or an email address paired with a password. The system issues one active API key per account, which you can rotate at any time. New keys replace old ones instantly, simplifying security management for your navigation startup.

Trial and Top-Up Details

Signing in with Google grants a $0.50 trial credit (about 50,000 characters), valid for 7 days. Email-based accounts start without this trial. Top-ups use USDT (TRC-20) on the TRON network, with a $5 minimum. Credits are automatic within minutes and never expire.

  • Google sign-up: $0.50 trial (7 days)

Data and Privacy

Sound wave illustration for: Data and Privacy

We prioritize transparency in how your data moves through our navigation voice pipeline. Your input text is used strictly to generate the requested audio file and is not added to our training datasets. This ensures that your proprietary route instructions or point-of-interest data remain yours, regardless of volume or usage frequency.

Data Usage Policy

The API processes your text to produce audio and does not reuse it for model improvement. Only request metadata—such as timestamp, character count, and status—is retained for billing and troubleshooting purposes. This minimal retention supports accurate billing without storing the semantic content of your navigation prompts.

Audio Storage and Watermarks

Generated audio is returned in the response and is not stored. Each file contains an inaudible watermark to clearly mark it as synthetic speech, helping maintain trust with your end-users. This ensures that your navigation audio remains ephemeral and distinct from human recordings.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Your input text is processed solely to produce the audio output and is not used for training our models.

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. IETF RFC 7845: Ogg Opus
  3. Tether (USDT)
  4. Creative Commons Attribution 4.0
  5. openai-node on GitHub
  6. openai-python on GitHub
  7. curl documentation
  8. LibriVox public-domain audiobooks
  9. Node.js documentation
  10. LibriTTS-R paper (arXiv 2305.18802)
  11. MDN: Web Speech API
  12. LibriTTS-R corpus (OpenSLR 141)

More on this site