Kikashi
Real-Time TTS forGame Developers

Integrate dynamic, natural-sounding voice narration in your games with our ultra-low latency text-to-speech API. Give every NPC a unique voice.

main.py
import kikashi as kk# Initialize with your API keyclient = kk.Client(api_key="YOUR_API_KEY")# Create a new voice with custom settingsnarrator = client.create_voice(
    name="Game_Narrator",
    style="wise_male",
    pitch=0.8,
    speed=1.1)# Generate speech in real-timeresponse = narrator.speak(
    text="Welcome adventurer! The kingdom needs your help.",
    emotion="excited",
    format="wav" # or mp3, ogg, webm)# Stream directly to your game enginegame_engine.play_audio(response.audio_data)
Example: "Welcome to the realm of Eldoria, traveler..."

GAME-READY FEATURES

Built specifically for the unique needs of game development

Ultra-Low Latency

Average response time under 150ms - critical for real-time game dialogue without awkward pauses.

PERFORMANCE

Dynamic Voice Parameters

Adjust pitch, speed, tone, and emotion on-the-fly to create distinct character voices.

CUSTOMIZATION

Scalable Infrastructure

Handles millions of concurrent requests with 99.99% uptime - built for MMO-scale games.

RELIABILITY

Game Engine SDKs

Pre-built plugins for Unity, Unreal Engine, Godot and more for quick integration.

INTEGRATION

100+ Voices & Languages

From fantasy accents to sci-fi robot voices, with support for 24 languages and growing.

DIVERSITY

Local Caching

Automatically caches frequently used phrases to reduce API calls and minimize latency.

OPTIMIZATION

LIVE VOICE DEMO

Try our real-time text-to-speech with different voice styles

81/200

For Dynamic Narrators

Create immersive narration that adapts to player choices without recording thousands of voice lines.

Ideal for RPGs, visual novels

For Procedural Worlds

Generate unique dialogue for infinite NPCs in procedurally generated worlds where pre-recording isn't feasible.

Perfect for open-world games

For Live Updates

Add new dialogue patches post-release without needing voice acting sessions or large downloads.

Great for live service games

JOIN OUR WAITLIST

Be the first to know when we launch our real-time TTS for games

API DOCUMENTATION

Complete guide to integrating our TTS API into your game

Quick Start

Endpoint

POST https://kikashi.io/api/tts

Authentication

Include API key as query parameter:

?apiKey=YOUR_API_KEY

Character Limits

Demo Mode200 chars
With API Key1,000 chars

Response Format

Returns audio stream directly:

Content-Type: audio/mpeg

Request Format

JSON Body

{"text": "Your text to convert","voiceStyle": "wise_male"}

Parameters

textRequired

Text to convert to speech

voiceStyleRequired

Voice style identifier

Available Voice Styles

Wise Elder

wise_male

Mature, wise male voice

Heroic Warrior

heroic_female

Strong, heroic female voice

Villain

villain

Menacing, villainous voice

Friendly

friendly

Friendly, accented voice

AI Assistant

robot

Robotic, artificial voice

Mystical Being

fantasy_creature

Fantasy, otherworldly voice

Tavern Keeper

bartender

Friendly Irish male voice

Code Examples

JavaScript (Fetch API)

const generateTTS = async () => { 
const apiKey = '[your-api-key]';

try {
const response = await fetch(`/api/tts?apiKey=$${apiKey}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
text: 'Hello from your game!',
voiceStyle: 'wise_male'
})
});

if (response.ok) {
const audioBlob = await response.blob();
const audioUrl = URL.createObjectURL(audioBlob);

// Play the audio
const audio = new Audio(audioUrl);
audio.play();
}
} catch (error) {
console.error('TTS Error:', error);
}
};

Python

import requests 

def generate_tts(text, voice_style, api_key):
url = f"https://kikashi.io/api/tts?apiKey={{api_key}"

payload = {
"text": text,
"voiceStyle": voice_style
}

response = requests.post(url, json=payload)

if response.status_code == 200:
with open("output.mp3", "wb") as f:
f.write(response.content)
print("Audio generated successfully!")
else:
print(f"Error: {{response.status_code}")

# Usage
api_key = "[your-api-key]"
generate_tts("Hello from Python!", "heroic_female", api_key)

cURL

curl -X POST "https://kikashi.io/api/tts?apiKey=[your-api-key]" \ 
-H "Content-Type: application/json" \
-d '{
"text": "Hello from cURL!",
"voiceStyle": "robot"
}'
\
--output audio.mp3

Error Handling

400

Bad Request

Missing text or text too long

{"message": "Text too long for demo usage. Maximum 200 characters allowed."}
401

Unauthorized

Invalid API key

{"message": "Unauthorized"}
405

Method Not Allowed

Only POST requests accepted

{"message": "Method not allowed"}
500

Server Error

TTS service temporarily unavailable

{"message": "TTS service temporarily unavailable", "audioUrl": "fallback.ogg"}

Technical Specifications

Response Time

< 150ms

Average latency

Caching

5 minutes

Automatic caching

Timeout

30 seconds

Request timeout

Format

MP3

44.1kHz, 128kbps