server: add OpenAI compatible TTS server (chunked PCM streaming, WAV one-shot)

This commit is contained in:
Pascal
2026-06-06 12:47:10 +02:00
parent eda8b59092
commit f3cfa5cf47
16 changed files with 40571 additions and 2 deletions
+8
View File
@@ -291,6 +291,14 @@ QT_API enum qt_status qt_synthesize(struct qt_context * q, const struct qt_tts_p
// Clamps to a minimum of one frame.
QT_API int qt_duration_sec_to_tokens(const struct qt_context * q, float duration_sec);
// Number of named speakers in the loaded model. custom_voice carries a
// speaker table ; base and voice_design return 0.
QT_API int qt_n_speakers(const struct qt_context * q);
// Name of speaker i, valid for i in [0, qt_n_speakers). Returns NULL when
// i is out of range. The pointer stays valid until qt_free. UTF-8.
QT_API const char * qt_speaker_name(const struct qt_context * q, int i);
#ifdef __cplusplus
}
#endif