wsippel / bark_tts

Oobabooga extension for Bark TTS
GNU Affero General Public License v3.0
110 stars 14 forks source link

New oobabooga update breaks your awesome extension, here is how to fix it. #18

Closed RandomInternetPreson closed 12 months ago

RandomInternetPreson commented 1 year ago

Hello, I really like your extension.

Oobabooga updated the code and your extension no longer works:

https://old.reddit.com/r/oobaboogazz/comments/14q3v2y/news_added_sessions_basic_multiuser_support/jqo7xgn/

Looking at your script.py file on line 165 f'extensions/barktts/outputs/{shared.character}{int(time.time())}.wav')

if you change it to look like this: f'extensions/barktts/outputs/{int(time.time())}.wav')

the extension will work again. Oobabooga removed the character and history shared variables.

wsippel commented 12 months ago

Thanks for the heads up and the PR, though it turns out the upstream changes were a bit more comprehensive, so I couldn't use your patch in the end. The chat history handling changed as well, and the character name is still available, it just has to be accessed differently now. Hope I fixed everything, feel free to give it a spin. Still, thanks for going through the effort and posting a PR, it's very much appreciated! :+1: