Skip to content

Fix kokoro task detection - #4477

Open
michalkulakowski wants to merge 2 commits into
mainfrom
mkulakow/fix_kokoro_task_detection
Open

Fix kokoro task detection#4477
michalkulakowski wants to merge 2 commits into
mainfrom
mkulakow/fix_kokoro_task_detection

Conversation

@michalkulakowski

Copy link
Copy Markdown
Collaborator

🛠 Summary

JIRA/Issue if applicable.
Describe the changes.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI lite review requested due to automatic review settings August 25, 2026 14:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates OVMS’s default task detection logic so Kokoro TTS models exported with an explicit "architectures": ["KModel"] entry are correctly classified as text2speech.

Changes:

  • Extend Text2SpeechDetector to treat "KModel" as a Text-to-Speech architecture (Kokoro).
  • Add a unit test covering detection of Kokoro when architectures contains "KModel".

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/default_task_detector.cpp Adds "KModel" to the architecture allowlist for Text2SpeechDetector.
src/test/task_determine_test.cpp Adds a unit test asserting Text2SpeechDetector matches Kokoro configs with "architectures":["KModel"].

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +160 to +162
TEST(TaskDetectorTest, Text2SpeechDetectsKModelArch) {
auto ctx = makeCtx("kokoro", R"({"architectures":["KModel"],"n_mels":80})");
EXPECT_TRUE(ovms::Text2SpeechDetector{}.scan(ctx));
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