Free text-to-speech service for Guild Wars
v1.0 · No API key requiredhttp://localhost:9919/ for these API docs.
The GWDevHub TTS API is a free text-to-speech service specifically designed for Guild Wars players. This API converts Guild Wars dialog text (both encoded and decoded) into natural-sounding MP3 audio files.
/decode.mp3
Generates an MP3 audio file from Guild Wars dialog text.
| Header | Value | Required |
|---|---|---|
Content-Type |
application/json |
Yes |
Accept |
audio/mpeg |
Recommended |
| Parameter | Type | Required | Description |
|---|---|---|---|
encoded |
array[integer] | Yes | Array of integers representing the encoded Guild Wars message string (UTF-16 code points) |
decoded |
array[integer] | No | Array of integers representing the decoded/readable message string (UTF-16 code points) |
language |
integer | Yes | Guild Wars language code (enum value) |
speaker_gender |
string | Yes | Gender of the speaking NPC. Valid values: "m" (male), "f" (female) |
speaker_race |
string | Yes | Race of the speaking NPC (e.g., "Human", "Dwarf", "Charr", "Norn", "Asura") |
player_gender |
string | Yes | Gender of the player character. Valid values: "m" (male), "f" (female) |
encoded and decoded arrays contain UTF-16 code points
(unsigned 16-bit integers). Each element represents one character from the original wide string (wchar_t).
200 OKaudio/mpeg4xx or 5xxapplication/json (or text)Here's an example of how the client makes a request:
The client converts wide character strings (wchar_t*) to arrays of unsigned 32-bit integers, where each integer represents a UTF-16 code point:
The language parameter uses Guild Wars internal language enum values:
Use this form to test the /decode.mp3 endpoint directly from your browser: