TopGit theo dõi KoljaB/LocalAIVoiceChat trên GitHub trong nhóm Backend, đã đạt 726 sao. Local AI talk with a custom voice based on Zephyr 7B model. Uses RealtimeSTT with faster_whisper for transcription and RealtimeTTS with Coqui XTTS for synthesis.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Provides talk in realtime with AI, completely local on your PC, with customizable AI personality and voice.
Hint:Anybody interested in state-of-the-art voice solutions please also have a look at Linguflex. It lets you control your environment by speaking and is one of the most capable and sophisticated open-source assistants currently available.
Note: If you run into 'General synthesis error: isin() received an invalid combination of arguments' error, this is due to new transformers library introducing an incompatibility to Coqui TTS (see here). Please downgrade to an older transformers version: pip install transformers==4.38.2 or upgrade RealtimeTTS to latest version pip install realtimetts==0.4.1.
About the Project
Integrates the powerful Zephyr 7B language model with real-time speech-to-text and text-to-speech libraries to create a fast and engaging voicebased local chatbot.
Hint: If you run into problems installing llama.cpp please also have a look into my LocalEmotionalAIVoiceChat project. It includes emotion-aware realtime text-to-speech output and has multiple LLM provider options. You can also use it with different AI models.
Tech Stack
llama_cpp with Zephyr 7B
library interface for llamabased language models
RealtimeSTT with faster_whisper
real-time speech-to-text transcription library
RealtimeTTS with Coqui XTTS
real-time text-to-speech synthesis library
Notes
This software is in an experimental alpha state and does not provide production ready stability. The current XTTS model used for synthesis still has glitches and also Zephyr - while really good for a 7B model - of course can not compete with the answer quality of GPT 4, Claude or Perplexity.
Please take this as a first attempt to provide an early version of a local realtime chatbot.
Updates
Update to Coqui XTTS 2.0 model
Bugfix to RealtimeTTS (download of Coqui model did not work properly)
Prerequisites
You will need a GPU with around 8 GB VRAM to run this in real-time.
For nVidia users
NVIDIA CUDA Toolkit 11.8:
Access the NVIDIA CUDA Toolkit Archive.
Choose version 11.x and follow the instructions for downloading and installation.
NVIDIA cuDNN 8.7.0 for CUDA 11.x:
Navigate to NVIDIA cuDNN Archive.
Locate and download "cuDNN v8.7.0 (November 28th, 2022), for CUDA 11.x".
Follow the provided installation guide.
For AMD users
Install ROCm v.5.7.1
Download ROCm SDK version 5.7.1
Follow the provided installation guide.
FFmpeg:
Install FFmpeg according to your operating system:
Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg
Arch Linux:
sudo pacman -S ffmpeg
macOS (Homebrew):
brew install ffmpeg
Windows (Chocolatey):
choco install ffmpeg
Windows (Scoop):
scoop install ffmpeg
Installation Steps
Clone the repository or download the source code package.
Install llama.cpp
(for AMD users) Before the next step set env variable LLAMA_HIPBLAS value to on
If the official installation does not work for you, please install text-generation-webui, which provides some excellent wheels for a lot of platforms and environments
Open creation_params.json and enter the filepath to the downloaded model into model_path.
Adjust n_gpu_layers (0-35, raise if you have more VRAM) and n_threads (number of CPU threads, i recommend not using all available cores but leave some for TTS)
If dependency conflicts occur, install specific versions of conflicting libraries:
Open chat_params.json to change the talk scenario.
Change AI Voice
Open ai_voicetalk_local.py.
Find this line: coqui_engine = CoquiEngine(cloning_reference_wav="female.wav", language="en")
Change "female.wav" to the filename of a wave file (44100 or 22050 Hz mono 16-bit) containing the voice to clone
Speech end detection
If the first sentence is transcribed before you get to the second one, raise post_speech_silence_duration on AudioToTextRecorder:
AudioToTextRecorder(model="tiny.en", language="en", spinner=False, post_speech_silence_duration = 1.5)
Contributing
Contributions to enhance or improve the project are warmly welcomed. Feel free to open a pull request with your proposed changes or fixes.
License
The project is under Coqui Public Model License 1.0.0.
This license allows only non-commercial use of a machine learning model and its outputs.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/KoljaB/LocalAIVoiceChat là nguồn chính thức.
KoljaB/LocalAIVoiceChat có bao nhiêu sao?
KoljaB/LocalAIVoiceChat có 726 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/KoljaB/LocalAIVoiceChat. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
KoljaB/LocalAIVoiceChat có những chủ đề gì?
GitHub topics của KoljaB/LocalAIVoiceChat: "chatbot", "python", "realtime". TopGit xếp repo vào nhóm Backend.
KoljaB/LocalAIVoiceChat có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho KoljaB/LocalAIVoiceChat. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
KoljaB/LocalAIVoiceChat còn đang phát triển không?
Commit gần nhất trên KoljaB/LocalAIVoiceChat là 1.2 năm trước (theo timestamp GitHub). Repo có 77 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
KoljaB/LocalAIVoiceChat viết bằng ngôn ngữ gì?
KoljaB/LocalAIVoiceChat chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về LocalAIVoiceChat?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về LocalAIVoiceChat.