Add Chinese README and Enhance Model API Response Format - #38
Open
Anyexyz wants to merge 2 commits into
Open
Conversation
etugrand
pushed a commit
to etugrand/openai-edge-tts
that referenced
this pull request
Jun 20, 2026
…avisvn#38) into v1 - travisvn#35: fix generate_speech_stream — drive the async generator from a dedicated event loop instead of asyncio.run() (which raised "a coroutine was expected, got async_generator" and broke the SSE path, issue travisvn#34) - travisvn#56: add correct pcm ffmpeg maps (pcm_s16le / s16le) to the file-based _generate_audio path; skip bitrate for pcm like wav - travisvn#39: introduce HOST env var (default 0.0.0.0) so non-Docker installs can bind localhost; wired into waitress.serve() - travisvn#38: make /models OpenAI-compatible ({"object":"list","data":[...]} with object/owned_by on each model) Skipped travisvn#45 (v1 already has /health, HEALTHCHECK, curl, EXPOSE) and travisvn#59 (opt-in 60db.ai paid backend — out of scope for v1's free edge-tts focus). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes Made
This PR makes two improvements to the project:
/v1/modelsendpoint response format to better match the OpenAI API standardDetailed Changes
owned_by: "openai-edge-tts"field to model data in the API responseget_models_formatted()function to include ownership informationBenefits
Testing
/v1/modelsendpoint returns the expected format with the following structure:{ "object": "list", "data": [ { "id": "tts-1", "object": "model", "owned_by": "openai-edge-tts" }, { "id": "tts-1-hd", "object": "model", "owned_by": "openai-edge-tts" }, { "id": "gpt-4o-mini-tts", "object": "model", "owned_by": "openai-edge-tts" } ] }