Skip to content

Add voices api endpoint#47

Closed
mmwillet wants to merge 3 commits into
mainfrom
add-voices-api-endpoint
Closed

Add voices api endpoint#47
mmwillet wants to merge 3 commits into
mainfrom
add-voices-api-endpoint

Conversation

@mmwillet

@mmwillet mmwillet commented May 1, 2025

Copy link
Copy Markdown
Owner

Adds simple voices api endpoint per #17

@mmwillet mmwillet left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to come back to this and refactor the task response pattern to be more flexible.

}
for (auto voice : list_voices(runner)) {
if (!task->message.empty()) {
task->message += ",";

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really shouldn't use the message output for passing data back from the workers.

res_error(res, formatted_error);
return;
}
std::vector<std::string> voices = split(rtask->message, ",");

@mmwillet mmwillet May 1, 2025

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very inefficient and a more generic response pattern should be preferred (rather than parsing a string list from the message).

Comment thread src/tts.cpp
Comment thread examples/server/README.md
@mmwillet

mmwillet commented Jun 1, 2025

Copy link
Copy Markdown
Owner Author

no immediate need for this. I am going to close this for now.

@mmwillet mmwillet closed this Jun 1, 2025
@ecyht2 ecyht2 mentioned this pull request Jun 22, 2025
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.

2 participants