Git Product home page Git Product logo

denvot-ai's Introduction

Текстовая модель: gigachat

Гайд по установке:

  1. Установите Python 3.10

  2. Установите git

  3. Установите ffmpeg

  4. Скачиваем denvot-ai репозиторий:

    git clone https://github.com/TUBIK-corp/denvot-ai/
    cd .\denvot-ai\
    
  5. Создаём 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
    
  6. Скачайте файлы hubert_base.pt и rmvpe.pt, и поместите их в репозиторий

  7. Установите все оставшиеся необходимые библиотеки:

    pip install -r requirements.txt
    
  8. Создайте файл config.py, содержащий:

    API_KEY = ""  # Ваш токен, полученный в личном кабинете GigaChat API из поля Авторизационные данные
    

Функции:

Для использования функций, сначала установите и импортируйте denvot_ai:

import denvot_ai
  1. Функция для отправки запросов:
    denvot_ai.send(message, rvc_model, tts_model, pitch)
    
    На выводе выдаёт аудио файл с ответом. Имеет 4 параметра:
    1. message - обязательный параметр, в нём должен модержаться запрос.
    2. rvc_model - название файла голосовой модели, необязательный параметр.
    3. tts_model - название tts модели, необязательный параметр.
    4. pitch - питч синтезированного голоса, необязательный параметр.
  2. Функция синтезации голоса:
    denvot_ai.tts(message, rvc_model, tts_model, pitch)
    
    На выводе выдаёт аудио файл с ответом. Имеет аналогичные параметры как в denvot.send()

denvot-ai's People

Contributors

atm4x avatar vasysik avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.