SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
563 stars 133 forks source link

Silero TTS launched but isn't connected to the SillyTavern #46

Closed wereretot closed 1 year ago

wereretot commented 1 year ago

python3 server.py --enable-modules=summarize,tts,classify,chromadb, /home/rexommendation/Programs/SillyTavern-extras/server.py:73: DeprecationWarning: Nesting argument groups is deprecated. local_sd = sd_group.add_argument_group("sd-local") /home/rexommendation/Programs/SillyTavern-extras/server.py:77: DeprecationWarning: Nesting argument groups is deprecated. remote_sd = sd_group.add_argument_group("sd-remote") Initializing a text summarization model... Initializing a sentiment classification pipeline... tts module is deprecated. Please use silero-tts instead. Initializing Silero TTS server 2023-06-05 20:21:07.251 | INFO | silero_api_server.tts:init:43 - TTS Service loaded successfully Initializing ChromaDB ChromaDB is running in-memory with persistence. Persistence is stored in .chroma_db. Can be cleared by deleting the folder or purging db. Successfully pinged ChromaDB! Your client is successfully connected. No API key given because you are running locally.

Cohee1207 commented 1 year ago

Do you have an established connection of Extras to your SillyTavern?

k0rax commented 1 year ago

I don't know if I did it right, but I downloaded both silero-api-server and SillyTavern-extras, and put them both in an EXTRAS folder in the SillyTavern project directory. Then launch the server SillyTavern\EXTRAS\silero-api-server\silero_api_server\server.py separately.

k0rax commented 1 year ago

also needed to put this: Programs\Python\Python310\python.exe server.py --enable-modules=silero-tts,caption,summarize,chromadb

Cohee1207 commented 1 year ago

You don't need to download silero-api-server separately if you use it with extras (they can be separate servers). It is fetched and used as a pip package, you just need to install requirements from requirements-complete.txt or run pip install silero_api_server Your launch string looks okay. As you launch ST and connect to extras, you should put the extras URL as a Silero API server URL.

P.S. Also I think I missed the case with the automatic substitution of the server URL on the new module name being used, will fix it shortly, it won't hurt the functionality anyway.

wereretot commented 1 year ago

Do you have an established connection of Extras to your SillyTavern?

Yes

bucketcat commented 1 year ago

I have to run Silerto-tts externally for it to work. So, both specifying it in the extras, and then launching it in a separate terminal to get the localhost API url which is then pasted in the webUI.

Cohee1207 commented 1 year ago

Ok, I think I get the issue now. Extras were updated to redirect the tts module to silero-tts, but the main branch of ST only auto-substitutes the Extras URL to Silero server URL input if the module name IS tts. It should only be an issue with server link auto-substitution. Your Silero-compatible Extras address should look like this: http://localhost:5100/api/tts

Cohee1207 commented 1 year ago

Please updated your ST + Extras install. Silero should be functional. If not - please reopen.