forked from sfortis/openai_tts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstrings.json
More file actions
92 lines (92 loc) · 4.21 KB
/
strings.json
File metadata and controls
92 lines (92 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"config": {
"step": {
"user": {
"title": "Add Text-to-Speech Engine",
"description": "Choose your TTS engine and provide the necessary configuration. See documentation for further info.",
"data": {
"tts_engine": "TTS Engine",
"api_key": "OpenAI API Key",
"url": "OpenAI-compatible API URL",
"kokoro_url": "Kokoro FastAPI URL",
"model": "Model",
"voice": "Voice",
"speed": "Speed (0.25 to 4.0, where 1.0 is default)"
},
"data_description": {
"api_key": "Required for official OpenAI engine. Leave blank if using Kokoro FastAPI or if not required by your OpenAI-compatible endpoint.",
"url": "The API endpoint for OpenAI or your OpenAI-compatible proxy. Leave blank if using Kokoro FastAPI. Defaults to official OpenAI endpoint if not specified for OpenAI engine.",
"kokoro_url": "The full URL for your Kokoro FastAPI TTS endpoint (e.g., http://localhost:8002/tts). Required if Kokoro FastAPI engine is selected.",
"voice": "Enter the voice name. For Kokoro engine, if 'Allow Voice Blending' is enabled in options, you can use a blended voice string (e.g., 'en_us_child,0.5,en_us_military,0.5'). Otherwise, select/enter a single voice. Refer to documentation for available voices."
}
}
},
"error": {
"wrong_api_key": "Invalid API key. Please enter a valid API key.",
"cannot_connect": "Failed to connect to the specified URL.",
"unknown": "An unexpected error occurred.",
"model_required": "Model selection is required.",
"voice_required": "Voice selection is required.",
"url_required_openai": "API URL is required for the OpenAI engine.",
"kokoro_url_required": "Kokoro FastAPI URL is required for the Kokoro FastAPI engine.",
"invalid_url": "Invalid URL format.",
"invalid_chunk_size": "Chunk size must be a positive integer."
},
"abort": {
"already_configured": "This TTS engine configuration is already registered."
}
},
"options": {
"step": {
"init": {
"title": "Configure TTS Options",
"description": "Adjust common TTS settings. To change engine type or main URLs, please re-add the integration.",
"data": {
"model": "Model (Note: Engine type cannot be changed here)",
"voice": "Voice",
"speed": "Speed (0.25 to 4.0)",
"instructions": "Instructions (if supported by model)",
"chime": "Enable chime sound prior to speech (useful for announcements)",
"chime_sound": "Chime sound",
"normalize_audio": "Enable loudness normalization for generated audio (uses more CPU)",
"kokoro_chunk_size": "Kokoro: Audio Chunk Size (e.g., 400)",
"kokoro_voice_allow_blending": "Kokoro: Allow Voice Blending"
},
"data_description": {
"voice": "Enter the voice name. For Kokoro engine, if 'Allow Voice Blending' is enabled, you can use a blended voice string (e.g., 'en_us_child,0.5,en_us_military,0.5'). Otherwise, select a single voice from the list.",
"kokoro_chunk_size": "Experimental: Specify chunk size for Kokoro FastAPI streaming. Only applies if Kokoro engine is used.",
"kokoro_voice_allow_blending": "If enabled, the 'Voice' field above will accept a text string for blended voices. If disabled, 'Voice' will be a dropdown of available Kokoro voices. Only applies if Kokoro engine is used."
}
}
}
},
"selector": {
"tts_engine": {
"options": {
"openai": "OpenAI (Official or compatible proxy)",
"kokoro_fastapi": "Kokoro FastAPI"
}
},
"model": {
"options": {
"tts-1": "OpenAI TTS-1",
"tts-1-hd": "OpenAI TTS-1-HD (High Definition)",
"gpt-4o-mini-tts": "GPT-4o-mini-TTS (Custom/Experimental)"
}
},
"voice": {
"options": {
"alloy": "Alloy",
"ash": "Ash",
"ballad": "Ballad (Experimental/Custom)",
"coral": "Coral (Experimental/Custom)",
"echo": "Echo",
"fable": "Fable",
"onyx": "Onyx",
"nova": "Nova",
"sage": "Sage (Experimental/Custom)",
"shimmer": "Shimmer"
}
}
}
}