Add files via upload
This commit is contained in:
1 parent
d66e461f8a
commit
9ba7f2e454
2 files changed
+68
-59
No files matched your search
@@ -20,7 +20,7 @@ def alltalk_documentation():
|
|||||||
|
|
||||||
silly_tavern_support = """
|
silly_tavern_support = """
|
||||||
#### SillyTavern/AllTalk extension version
|
#### SillyTavern/AllTalk extension version
|
||||||
If you intend to use AllTalk V2 with SillyTavern, you will need to update the SillyTavern Extension from the `\alltalk_tts\system\SillyTavern Extension\` folder. Instructions are included within the folder.
|
If you intend to use AllTalk V2 with SillyTavern, you will need to update the SillyTavern Extension from the `alltalk_tts\system\SillyTavern Extension\` folder. Instructions are included within the folder.
|
||||||
|
|
||||||
#### Important note for Text-generation-webui users
|
#### Important note for Text-generation-webui users
|
||||||
You **HAVE** to disable **Enable TTS** within the Text-generation-webui AllTalk interface, otherwise Text-generation-webui will also generate TTS due to the way it sends out text. You can do this each time you start up Text-generation-webui or set it in the start-up settings at the top of this page.
|
You **HAVE** to disable **Enable TTS** within the Text-generation-webui AllTalk interface, otherwise Text-generation-webui will also generate TTS due to the way it sends out text. You can do this each time you start up Text-generation-webui or set it in the start-up settings at the top of this page.
|
||||||
|
|||||||
@@ -1,59 +1,68 @@
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import pathlib as Path
|
import pathlib as Path
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
|
|
||||||
def modify_config():
|
def modify_config():
|
||||||
config_file = os.path.join("confignew.json")
|
config_file = os.path.join("confignew.json")
|
||||||
with open(config_file, "r") as f:
|
with open(config_file, "r") as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
config["firstrun_splash"] = False
|
config["firstrun_splash"] = False
|
||||||
with open(config_file, "w") as f:
|
with open(config_file, "w") as f:
|
||||||
json.dump(config, f, indent=4)
|
json.dump(config, f, indent=4)
|
||||||
return f"Welcome screen is disabled."
|
return f"Welcome screen is disabled."
|
||||||
|
|
||||||
def alltalk_welcome():
|
def alltalk_welcome():
|
||||||
welcome = """
|
welcome = """
|
||||||
## 🟧 Welcome the the AllTalk v2 BETA
|
## 🟧 Welcome the the AllTalk v2 BETA
|
||||||
Thanks for trying out the BETA. Ive no doubt there will be bugs and quirks here and there. Most errors/issues should have outputs at the command prompt/console.
|
Thanks for trying out the BETA. Ive no doubt there will be bugs and quirks here and there. Most errors/issues should have outputs at the command prompt/console.
|
||||||
|
|
||||||
I have validated this BETA to run on Windows/Linux, because I dont have a Mac. With Python 3.11.9, Pytorch 2.2.1 with CUDA 12.1 extensions installed. Thats not to say it wont work on Mac or other versions of Python and Pytorch, its just there would be some extra testing/figuring things out to make it work. Obviously, I am kind of a bit limited to do that on Mac's. Certainly Mac's dont need the Nvidia lines in the requirements file and I cannot say how certain engines will/wont work/perform on Mac's.
|
I have validated this BETA to run on Windows/Linux, because I dont have a Mac. With Python 3.11.9, Pytorch 2.2.1 with CUDA 12.1 extensions installed. Thats not to say it wont work on Mac or other versions of Python and Pytorch, its just there would be some extra testing/figuring things out to make it work. Obviously, I am kind of a bit limited to do that on Mac's. Certainly Mac's dont need the Nvidia lines in the requirements file and I cannot say how certain engines will/wont work/perform on Mac's.
|
||||||
|
"""
|
||||||
### 🟧 Important Requirements
|
|
||||||
> - Please ensure that you have installed Espeak-ng for your platform (you should get and error message at the command prompt/terminal if you havnt).<br>
|
welcome2 = """
|
||||||
> - It is possible I have forgotten some requirements, but hopefully not!
|
### 🟧 Important Requirements
|
||||||
> - Linux users, you should have installed `libaio-dev` or `libaio-devl` (depending on your Linux flavour), otherwise DeepSpeed will fail e.g.<br>
|
> Please ensure that you have installed Espeak-ng for your platform (you should get and error message at the command prompt/terminal if you havnt).<br>
|
||||||
> **Debian-based systems** `sudo apt install libaio-dev`<br>
|
|
||||||
> **RPM-based systems** `sudo yum install libaio-devel`
|
> Linux users, you should have installed `libaio-dev` or `libaio-devl` (depending on your Linux flavour), otherwise DeepSpeed will fail e.g.<br>
|
||||||
|
> **Debian-based systems** `sudo apt install libaio-dev`<br>
|
||||||
### 🟧 TLDR what you need to do
|
> **RPM-based systems** `sudo yum install libaio-devel`
|
||||||
> - To download models, you can go to the `TTS Engines Settings`, choose the engine you want and there are downloads there, along with additional instructions/information about each engine, its specific settings, how to work with it etc.
|
|
||||||
> - RVC when enabled will download about 800MB of models that it needs to work. If you want more information on RVC, please read the Documentation.
|
### 🟧 TLDR what you need to do
|
||||||
> - Talking of which, Gradio isnt great at documentation. Ive found that the `Light/Dark Mode` button is handy, along with sometime using your browsers zoom function.
|
> **Download Voices/Models** - Go to the `TTS Engines Settings` > Choose the engine you want > `Model/Voices Download`. Additional instructions/information about each engine, its specific settings, how to work with it, are all stored here.<br>
|
||||||
> - **Check the console** for errors/warnings if you have problems. I have **tried** to cover most issues/possible errors.
|
|
||||||
> - The documentation may be a bit rough and ready. I havnt had time to go through it all step by step.
|
> **RVC & RVC Voices** - Enable RVC in `Gloabl Settings` > `RVC Settings`. RVC will download about 800MB of models that it needs to work. If you want more information on RVC, please read `Documentation & Help` > `RVC`. <br>
|
||||||
|
|
||||||
### 🟧 DeepSpeed on Linux
|
> **Documentation** - Gradio isnt great at documentation, so use `Light/Dark Mode` to make reading easier, along with your browsers zoom function. Documentation is on the `Documentation & Help` tab.<br>
|
||||||
> I've not managed to update the documentation, but if you are **NOT** using AllTalk as a standalone on Linux, take a look here and this should ease the setup of DeepSpeed https://github.com/erew123/alltalk_tts/releases/tag/DeepSpeed-14.2-Linux
|
|
||||||
|
> **Check the console** for errors/warnings if you have problems. I have **tried** to cover most issues/possible errors.<br>
|
||||||
### 🟧 SillyTavern users
|
|
||||||
> There is an updated ST extension in the system folder. Instructions are inside the folder.
|
### 🟧 Showing Your Support
|
||||||
|
> If AllTalk has been helpful to you, consider showing your support through a donation on my **[Ko-fi page](https://ko-fi.com/erew123)**. Your support is greatly appreciated and helps ensure the continued development and improvement of AllTalk.
|
||||||
### 🟧 Text-generation-webui users
|
"""
|
||||||
> There is a TGWUI remote extension, if you want to run AllTalk on a computer that is NOT your AllTalk system. Please look in the system folder. Instructions are inside the folder.
|
|
||||||
|
welcome3 = """
|
||||||
### 🟧 Why is X feature no in the BETA yet? Or I have a great idea!
|
### 🟧 SillyTavern users
|
||||||
Mostly because of time restrains. V2 has been a massive re-write of code in the 100's of hours range to get it where it is. Please do check the Feature Requests list here https://github.com/erew123/alltalk_tts/discussions/74. I will get to them when I can. People are welcome to work on code/test things out with this version if they wish. I will set up a page for feeback on the **Github Discussions Board** https://github.com/erew123/alltalk_tts/discussions
|
> There is an updated ST extension in the `alltalk_tts\system\SillyTavern Extension\` folder. Instructions to install the update into SillyTaven are inside the folder.
|
||||||
|
|
||||||
### 🟧 Can I add other TTS engines?
|
### 🟧 DeepSpeed on Linux
|
||||||
Yes if you have a bit of coding experience. All the Coqui supported engines should be pretty easy to set up now, I just havnt gotten around it yet. Other engines like Piper and Parler have been done of course, showing other engines can be imported. Rough instructions are in the `system/tts_engines/template` folder.
|
> I've not managed to update the documentation, but if you are **NOT** using AllTalk as a standalone on Linux, take a look here and this should ease the setup of DeepSpeed https://github.com/erew123/alltalk_tts/releases/tag/DeepSpeed-14.2-Linux
|
||||||
|
|
||||||
### 🟧 Showing Your Support
|
### 🟧 Text-generation-webui users
|
||||||
> If AllTalk has been helpful to you, consider showing your support through a donation on my **[Ko-fi page](https://ko-fi.com/erew123)**. Your support is greatly appreciated and helps ensure the continued development and improvement of AllTalk.
|
> TGWUI now also supports a remote AllTalk server extension. if you want to run AllTalk on a computer that is NOT your AllTalk system. Please look in `alltalk_tts\system\TGWUI Extension` for instructions.
|
||||||
"""
|
|
||||||
with gr.Tab("AllTalk v2 BETA"):
|
### 🟧 Why is X feature no in the BETA yet? Or I have a great idea!
|
||||||
gr.Markdown(welcome)
|
Mostly because of time restrains. V2 has been a massive re-write of code in the 100's of hours range to get it where it is. Please do check the Feature Requests list here https://github.com/erew123/alltalk_tts/discussions/74. I will get to them when I can. People are welcome to work on code/test things out with this version if they wish. I will set up a page for feeback on the **Github Discussions Board** https://github.com/erew123/alltalk_tts/discussions
|
||||||
with gr.Row():
|
|
||||||
output = gr.Textbox(label="Output")
|
### 🟧 Can I add other TTS engines?
|
||||||
update_btn = gr.Button("Dont show me this screen again!")
|
Yes if you have a bit of coding experience. All the Coqui supported engines should be pretty easy to set up now, I just havnt gotten around it yet. Other engines like Piper and Parler have been done of course, showing other engines can be imported. Rough instructions are in the `system/tts_engines/template` folder.
|
||||||
|
"""
|
||||||
|
with gr.Tab("AllTalk v2 BETA"):
|
||||||
|
gr.Markdown(welcome)
|
||||||
|
with gr.Row():
|
||||||
|
with gr.Column(): gr.Markdown(welcome2)
|
||||||
|
with gr.Column(): gr.Markdown(welcome3)
|
||||||
|
with gr.Row():
|
||||||
|
output = gr.Textbox(label="Output")
|
||||||
|
update_btn = gr.Button("Dont show me this screen again!")
|
||||||
update_btn.click(fn=modify_config, inputs=None, outputs=output)
|
update_btn.click(fn=modify_config, inputs=None, outputs=output)
|
||||||
Reference in new issue
Block a user