Skip to content

Commit

Permalink
refactor: update voices response
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwantaozi committed Nov 21, 2024
1 parent 42b10c4 commit dcfdc4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion speech_box/server/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ async def get_voice():
model_instance = get_model_instance()
if model_instance is None:
return {}
return {"voices": model_instance.model_info().get("voices", [])}
return {
"model": model_instance.model_info().get("id", ""),
"voices": model_instance.model_info().get("voices", []),
}


def get_media_type(response_format) -> str:
Expand Down

0 comments on commit dcfdc4a

Please sign in to comment.