Skip to content

Feature Request: Add support for Kokoro TTS engine #246

@TsuyoKami09

Description

@TsuyoKami09

Hello! First of all, thank you for creating and maintaining this wonderful extension.

Is your feature request related to a problem? Please describe.
Currently, the bot has a dedicated implementation for Silero TTS, which works great. However, I also use the "KokoroTtsTextGenerationWebui" extension, which provides a different set of high-quality voices I would love to use directly with the Telegram bot. As of now, there is no way to select Kokoro as the TTS engine.

Describe the solution you'd like
I would like to request the addition of native support for the Kokoro TTS engine. Ideally, this would work similarly to the current Silero implementation, but with an option to choose which tts engine you want to use.

Additional context
From a brief investigation of the source code, it appears that TTS engines require a dedicated implementation file (like source/extensions/silero.py). It seems Kokoro registers itself with the internal name kokoro. Adding support would likely require creating a new kokoro.py file that handles the specific API calls for the Kokoro TTS engine.

Thank you for considering this request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions