Introduction
Microsoft MAI-Voice-2.1 turns text up to 4,096 characters into lifelike speech with verified English and Spanish voices.
| Field | Value |
|---|---|
| Input | Text |
| Output | Audio |
| Input limit | 4,096 characters / request |
| Audio formats | MP3, WAV, PCM (24 kHz) |
| Billing | Measured characters in text |
Key features & highlights
Text-to-speech synthesis in three formats
MAI-Voice-2.1 from Microsoft reads scripts up to 4,096 characters aloud using 3 verified voices (default en-US-Harper:MAI-Voice-2.1), exporting MP3, WAV, or raw 24 kHz 16-bit PCM.
Request parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | Exact script for MAI-Voice-2.1 to read aloud, from 1 to 4,096 characters including spaces and punctuation. at least 1 characters · at most 4096 characters |
voice_id | No | Select one of 3 verified MAI-Voice-2.1 voices; defaults to en-US-Harper:MAI-Voice-2.1. |
output_format | No | Output encoding for MAI-Voice-2.1: mp3 (default), wav, or raw 24 kHz 16-bit PCM. |
Pricing
$0.019 / 1,000 characters
MAI-Voice-2.1 usage is metered by characters in text.
Use cases
Executive briefings and reports
Deliver warm, authoritative audio editions of quarterly updates and strategy memos using Harper or Grant on MAI-Voice-2.1.
Bilingual customer education
Pair en-US and es-MX Valeria studio voices in MAI-Voice-2.1 to publish cohesive English and Spanish academy tracks.
Polished audiobook chapters
Render clean, expressive narrative passages in WAV for mastering when studio richness takes priority over instant speed.
Brand video voice-overs
Generate crisp launch-film narration and product explainers with consistent vocal presence across marketing campaigns.
Prompt guide & pro tips
Draft studio-ready copy
Enter up to 4,096 characters into text, punctuating natural clause breaks so MAI-Voice-2.1 shapes smooth tonal arcs.
Pick one of the three verified voices
Set
voice_idto en-US-Harper:MAI-Voice-2.1, en-US-Grant:MAI-Voice-2.1, or es-MX-Valeria:MAI-Voice-2.1 to match your audience.Select the target delivery codec
Request wav for post-production editing, mp3 for compact web hosting, or pcm for direct 24 kHz 16-bit audio streams.
Segment extended manuscripts cleanly
Break multi-page scripts at section headers so every track remains comfortably inside the 32 MiB response budget.
Introduction
Microsoft MAI-Voice-2.1 turns text up to 4,096 characters into lifelike speech with verified English and Spanish voices.
Key features
MAI-Voice-2.1 from Microsoft reads scripts up to 4,096 characters aloud using 3 verified voices (default en-US-Harper:MAI-Voice-2.1), exporting MP3, WAV, or raw 24 kHz 16-bit PCM.
Use cases
Turn written onboarding scripts and release notes into spoken audio tracks with MAI-Voice-2.1, keeping phrasing exact.
Generate short spoken status updates with MAI-Voice-2.1 in MP3 for mobile playback or WAV for broadcast workflows.
Usage tips
Write the exact words listeners should hear in MAI-Voice-2.1 text within 4,096 characters, spelling out ambiguous abbreviations and splitting long MAI-Voice-2.1 narrations to stay under 32 MiB.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "microsoft/mai-voice-2.1/text-to-speech",
"input": {
"text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
"voice_id": "en-US-Harper:MAI-Voice-2.1",
"output_format": "mp3"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.






