文字模型:Gigachat
安装指南:
-
安装Python 3.10
-
安装git
-
安装FFMPEG
-
下载Denvot-A存储库:
git clone https://git*hub.c**om/TUBIK-corp/denvot-ai/ cd .\\denvot-ai\\ -
创建VENV:
python -m venv venv .\\venv\\Scripts\\activate如果您使用Windows并获得错误
\"cannot be loaded because the execution of scripts is disabled on this system\"然后代表管理员打开PowerShell并运行以下内容:
Set-ExecutionPolicy RemoteSigned A -
下载hubert_base.pt and rmvpe.pt文件并将其放在存储库中
-
安装所有剩余的必要库:
pip install -r requirements.txt -
创建一个
config.py:API_KEY = \"\" # Ваш токен, полученный в личном кабинете GigaChat API из поля Авторизационные данные
功能:
要使用功能,请首先安装和导入DENVOT_AI:
import denvot_ai
- 发送请求的功能:
denvot_ai.send(message, rvc_model, tts_model, pitch)在输出时,它会发出带有答案的音频文件。它有4个参数:
-
message是强制性参数,请求应该是现代的。 -
rvc_model语音模型文件的名称,可选参数。 -
tts_modelTTS名称模型,可选参数。 -
pitch– 合成语音的音调,可选参数。
-
- 语音综合功能:
denvot_ai.tts(message, rvc_model, tts_model, pitch)在输出时,它会发出带有答案的音频文件。具有与denvot.send()中的类似参数
