Skip to content

feat: add OpenAI-compatible HTTP server#2

Open
abotsis wants to merge 9 commits into
ServeurpersoCom:masterfrom
abotsis:master
Open

feat: add OpenAI-compatible HTTP server#2
abotsis wants to merge 9 commits into
ServeurpersoCom:masterfrom
abotsis:master

Conversation

@abotsis

@abotsis abotsis commented May 22, 2026

Copy link
Copy Markdown

Add a lightweight OpenAI-compatible HTTP server for TTS synthesis.

New binary: qwen-tts-server

Endpoints:

  • POST /v1/audio/speech — OpenAI-compatible TTS
  • GET /v1/models — Returns loaded model info
  • GET /health — Health check

Features:

  • Model loaded once at startup, stays GPU resident
  • Audio: WAV (native), FLAC (miniaudio), MP3/OGG (optional)
  • API key auth, CORS, graceful shutdown
  • Vendored cpp-httplib, nlohmann/json, miniaudio from llama.cpp

Debian added 9 commits May 22, 2026 16:10
- New qwen-tts-server binary: POST /v1/audio/speech, GET /v1/models, GET /health
- Model loaded once at startup, stays GPU resident across requests
- Audio encoding: WAV (native), FLAC (miniaudio), MP3/OGG (optional via LAME/libvorbis)
- API key auth, CORS support, graceful shutdown via SIGINT/_shutdown endpoint
- Vendored cpp-httplib, nlohmann/json, miniaudio from llama.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant