Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): support setting speed #316

Merged
merged 1 commit into from
Feb 25, 2025
Merged

feat(api): support setting speed #316

merged 1 commit into from
Feb 25, 2025

Conversation

eginhard
Copy link
Member

XTTS accepts a speed parameter, but that was previously captured in the API which prevented it from being passed through. Removing the non-functional speed parameter from the API lets it pass via kwargs to models that support it.

from TTS.api import TTS

xtts = TTS("tts_models/multilingual/multi-dataset/xtts_v2")
xtts.tts_to_file("Hello, this is a short test text to test TTS.", language="en", speaker="Ana Florence", speed=2.0)

Obsoletes #239

XTTS accepts a `speed` parameter, but that was previously captured in the API
which prevented it from being passed through. Removing the non-functional
`speed` parameter from the API lets it pass via `kwargs` to models that support
it.
@eginhard eginhard merged commit b20533e into dev Feb 25, 2025
30 checks passed
@eginhard eginhard deleted the speed branch February 25, 2025 14:04
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