File size: 4,429 Bytes
04107a9
d886d57
 
04107a9
d886d57
04107a9
d886d57
04107a9
d886d57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
title: ChatTTS-WebUI
app_file: webui/main.py
sdk: gradio
sdk_version: 4.32.1
---
# ChatTTS-WebUI

[**English**](./README.md) | [**ไธญๆ–‡็ฎ€ไฝ“**](./README_CN.md)

## Project Introduction
This is an AI project that depends on the [ChatTTS](https://github.com/2noise/ChatTTS) project. The project includes a web user interface that allows users to interact with the model through the interface.

If you find it useful, please give it a star.

## Project Structure
```plaintext
my_ai_project/
โ”‚
โ”œโ”€โ”€ ChatTTS               # Cloned directory of the ChatTTS project
โ”‚  โ””โ”€โ”€ ChatTTS            
โ”‚      โ”œโ”€โ”€ experimental   
โ”‚      โ”œโ”€โ”€ infer          
โ”‚      โ”œโ”€โ”€ model          
โ”‚      โ””โ”€โ”€ utils          
โ”œโ”€โ”€ environment           # Virtual environment directory, contains all dependencies
โ”œโ”€โ”€ models                # Model files directory
โ”‚  โ”œโ”€โ”€ asset              
โ”‚  โ””โ”€โ”€ config             
โ”œโ”€โ”€ outputs               # Output files directory (e.g., logs, results, etc.)
โ”œโ”€โ”€ webui                 # Web user interface code directory
โ”‚  โ”œโ”€โ”€ main.py            # Main entry file for the web user interface
โ”‚  โ””โ”€โ”€ ...                # Other files related to the web user interface
โ”œโ”€โ”€ install.bat           # One-click installation script for installing and configuring the project
โ”œโ”€โ”€ run_webui.bat         # Script to start the web user interface
โ”œโ”€โ”€ update.bat            # Script to update the ChatTTS project
โ”œโ”€โ”€ update_chatts.py      # Python script to update the ChatTTS project
โ””โ”€โ”€ requirements.txt      # Project dependencies file
```

## Installation

### Manual Installation
1. **Install Conda**:
   Download and install Miniconda or Anaconda from the [Conda official website](https://docs.conda.io/en/latest/miniconda.html).

2. **Clone this project**:
   ```sh
   git clone https://github.com/yuhaolove/ChatTTS-WebUI.git
   ```

3. **Create and activate a virtual environment**:
   ```sh
   cd ChatTTS-WebUI
   conda create -n chattts_webui python=3.12.3
   conda activate chattts_webui
   ```

4. **Clone the ChatTTS repository**:
   ```sh
   cd ChatTTS-WebUI
   git clone https://github.com/2noise/ChatTTS.git
   ```

5. **Install ChatTTS dependencies**:
   ```sh
   cd ChatTTS
   pip install -r requirements.txt
   cd ..
   ```

6. **Install this project's WebUI dependencies**:
   ```sh
   pip install -r requirements.txt
   ```

### One-click Installation Package on Windows
1. **Download and run the installation script**:
   Click here to download the one-click installation package.
   [Download](https://github.com/yuhaolove/ChatTTS-WebUI/releases/download/v1.0.0/ChatTTS-WebUI.zip)
   For first-time use, double-click or run `install.bat` in the command line. The installation will complete and directly start the webui.
   For subsequent use, just double-click `run_webui.bat`.

## Start the WebUI

### On Windows
Double-click or run `run_webui.bat` in the command line to start the Web user interface:
```sh
run_webui.bat
```

### On Other Systems
Not tested yet, you can directly use Conda's Python to start it:
```sh
python webui/main.py
```

## Manual Installation of Model Files
If you cannot download the HF model files smoothly, you can download them manually and place them in the corresponding directory.

1. **Download model files**:
   Go to the [model download page](https://www.modelscope.cn/models/pzc163/chatTTS/files) to download the model files.

2. **Place the files in the corresponding directory**:
   ```plaintext
   โ”œโ”€models
   โ”‚  โ”œโ”€asset
   โ”‚  โ””โ”€config
   ```

## Notes
- Make sure you have a stable network connection to download dependencies and clone repositories.

## Contact
If you have any questions or need help, please contact [ๆตฉๅ“ฅ่ŠAI].
![Alipay QR Code](assets/haogeai.png)

## Support

If you find this project helpful, please consider giving some support. Your support will help me continue to develop and maintain this project, and bring more useful features and improvements.

You can also scan the following QR codes to support:


| Alipay | WeChat Pay |
| ------ | -------- |
| ![Alipay QR Code](assets/alipay.png) | ![WeChat Pay QR Code](assets/wechat.png) |

### Acknowledgments

The names of all supporters (if willing to be public) will be recorded in the project's acknowledgment list. Thank you for your support!