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

Question: should the kvcache be reset when I use another voice? #17

Open
libTorrentUser opened this issue May 13, 2024 · 0 comments
Open

Comments

@libTorrentUser
Copy link

libTorrentUser commented May 13, 2024

Suppose I did this

tts = api.TextToSpeech();
audio = tts.tts_with_preset("this is voice X", voice_samples=voiceX, ...);

and now, still using that same tts object created above

audio = tts.tts_with_preset("this is voice Y", voice_samples=voiceY, ...);

is that OK? I mean, is it OK to change voices without (somehow) reseting the kvcache? Should I create a new TextToSpeech object if I want to use another voice or is it OK to keep using the same one? I understand the concept of a cache, but I am not exactly sure how it is being used here. Do the selected voice and the cached values have any connection?

I'm assuming that whatever it is that is being cached has nothing to do with the selected voice, so the cached values can be reused no matter what voice we use. Is that true?

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

No branches or pull requests

1 participant