Git Product home page Git Product logo

tts-system's Introduction

簡介/Introduction

透過Local LLM、RAG、TTS、STT等技術所完成的專案

This project was made by Local LLM、RAG、TTS and STT

Note

此項專案利用Meta 提出的llama_cpp套件引用 Hugging face 中的 pre-trained model(Mistral 7B)

This project utilizes the llama_cpp library proposed by Meta to reference the pre-trained model (Mistral 7B) from Hugging Face.

pre-trained model


Pytorch

建議安裝CUDA版本

recommend running this project using the CUDA version of PyTorch.


Important

llama_cpp 使用教學

llama_cpp tutorial

Run Llama 2 Locally with python

權重/weight

mistral-7b-instruct-v0.1.Q3_K_M.gguf

將下載的權重放置於 Place your weight under the LLM_weight

TTS-System
   └──backEnd
         └──LLM_weight
               └── .gguf file

預覽/preview

Note

基礎使用

使用者可以透過文字輸入或語音輸入與系統互動,系統會以語音加文字的方式進行回饋

Users can interact with the system by speaking or typing, and will receive feedback through voice and text.


RAG

使用者可以透過上傳TXT檔的方式使系統回答得更加準確

Users can get hight qulity response by upload txt file.


Embedding

Sentence Transformers:sentence_transformers

這項專案使用 sentence_transformers 作為詞向量轉換的套件,並利用餘弦相似度算出前 K 個相關的資訊提供給prompt

This project uses the sentence_transformers library for word embeddings and employs cosine similarity to calculate the top K relevant pieces of information to provide for the prompt.


preview


引用專案/inference

如何執行/How to run this project

💡 為了確保語音合成相關功能可以使用,請先Clone VALL-E-X 中的專案自行測試

💡 需確保能夠正常啟用React.JS相關專案

💡 需安裝FFMPEG相關檔案

Clone VALL-E-X and make sure you can run this project!!!

make sure React.JS can be use!!!

need to download FFMPEG

進入專案/Enter the project

cd TTS-Systeam

創建虛擬環境/Create a virtual environment

python -m venv env

Note

激活虛擬環境/Activate the virtual environment

Unix/macOS

source env/bin/activate

Windows

.\env\Scripts\activate 

安裝依賴包/Install dependencies

pip install -r requirements.txt

啟動後端伺服器/Activate backend server

這部份需要兩個 Terminal,分別用於前端與後端

This part need tow Terminal,one for backend, the other for front

cd backEnd
python main.py

啟動前端UI/Activate front UI

cd web-tts
npm start

tts-system's People

Contributors

imchouowo avatar

Watchers

 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.