erew123 / alltalk_tts

AllTalk is based on the Coqui TTS engine, similar to the Coqui_tts extension for Text generation webUI, however supports a variety of advanced features, such as a settings page, low VRAM support, DeepSpeed, narrator, model finetuning, custom models, wav file maintenance. It can also be used with 3rd Party software via JSON calls.
GNU Affero General Public License v3.0
1.08k stars 115 forks source link

how do i enable sharing? is there a --listen or --api for alltalk tts? #90

Closed 0xYc0d0ne closed 9 months ago

0xYc0d0ne commented 9 months ago

i cant seem to find a way to make alltalk tts avalible over LAN and not just my pc itself since i would like to be able to use alltalk tts on other devices but i dont see this option in the docs

erew123 commented 9 months ago

Hi @0xYc0d0ne

As standard AllTalk is on IP 127.0.0.1 which will keep it restricted to the local machine. If you want it to be available across your LAN, change its IP address to the IP address you would use on your machine e.g. if your machine is on 192.168.1.10, then in the settings page, change AllTalk's IP to 192.168.1.10 which will share it on that network cards interface.

Should you have any other firewalling setup on your machine, you would need to also allow port 7851 through the firewall from your private lan range e.g, 192.168.1.0/24 (or 255.255.255.0 for example)

Thanks

erew123 commented 9 months ago

Just to be 100% clear, I mean change the IP address set in AllTalks settings web page to match your machine IP address, then restart AllTalk.

Thanks

0xYc0d0ne commented 9 months ago

ok now that worked but in sillytavern when i type in the i select alltalk sillytavern extension and put in my computers ip like 192.xx.xx:7851 it says "Error: HTTP Error Response: 404 Not Found" and TypeError: NetworkError when attempting to fetch resource

erew123 commented 9 months ago

Hi @0xYc0d0ne

Assuming that you can reach the webpage of AllTalk remotely on its IP address, then we can conclude its not a firewalling issue.

As such, I suspect that because the way SillyTavern saves its settings, which is only when its had a successful connection, its not re-saving the settings (only saves the IP address on 1st successful connection to a IP). Its a behaviour I noticed during development, its a bit frustrating, but the simplest solution is to manually change the IP in the SillyTavern settings file.

In \sillytavern\public\ you will find a file called settings (take a backup copy before you make this change, just in case).

Open it with something like Notepad and find the line "AllTalk": { then below that you will find the IP address that SillyTavern is pointing to and change it there. Once youve done that, you should be able to refresh the SillyTavern web page (no need to reload) and it should connect.

image

Once thats done, it should be connecting fine to the IP address you specify (bar your firewall blocking something as mentioned above).

image

Thanks

0xYc0d0ne commented 9 months ago

ok now it finally works! , thanks alot bro Screenshot (152)