Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vra/talkgpt4all
A voice chatbot based on GPT4All and talkGPT, running on your local pc!
https://github.com/vra/talkgpt4all
ai chatbot gpt4all llama llm python whisper-ai
Last synced: about 7 hours ago
JSON representation
A voice chatbot based on GPT4All and talkGPT, running on your local pc!
- Host: GitHub
- URL: https://github.com/vra/talkgpt4all
- Owner: vra
- License: mit
- Created: 2023-04-01T23:54:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T15:01:12.000Z (about 1 year ago)
- Last Synced: 2024-10-30T04:49:19.387Z (3 months ago)
- Topics: ai, chatbot, gpt4all, llama, llm, python, whisper-ai
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 153
- Watchers: 8
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# talkGPT4All
A voice chatbot based on GPT4All and talkGPT.[Video demo](https://www.zhihu.com/zvideo/1625779747656515584).
Please check more details in this [blog post (in Chinese)](https://zhuanlan.zhihu.com/p/632592897).
If you are looking for the older version of talkGPT4All, please checkout to [dev/v1.0.0](https://github.com/vra/talkGPT4All/tree/dev/v1.0.0) branch.
## Installation
### Install using pip (Recommend)
talkgpt4all is on PyPI, you can install it using simple one command:
```bash
pip install talkgpt4all
```
### Install from source code
Clone the code:
```bash
git clone https://github.com/vra/talkGPT4All.git
```Install the dependencies and talkGPT4All in a python virtual environment:
```bash
cd
python -m venv talkgpt4all
source talkgpt4all/bin/activate
pip install -U pip
pip install -r requirements.txt
```## Extra dependencies for Linux users
We use [pyttsx3](https://github.com/nateshmbhat/pyttsx3) to convert text to voice. Please note that on Linux ,You need to install dependencies:
```bash
sudo apt update && sudo apt install -y espeak ffmpeg libespeak1
```## Usage
Open a terminal and type `talkgpt4all` to begin:
```bash
talkgpt4all
```### Use different LLMs
You can choose different LLMs using `--gpt-model-type `, all available choices:
```python
{
"ggml-gpt4all-j-v1.3-groovy"
"ggml-gpt4all-j-v1.2-jazzy"
"ggml-gpt4all-j-v1.1-breezy"
"ggml-gpt4all-j"
"ggml-gpt4all-l13b-snoozy"
"ggml-vicuna-7b-1.1-q4_2"
"ggml-vicuna-13b-1.1-q4_2"
"ggml-wizardLM-7B.q4_2"
}
```### Use different Whisper models
You can choose whisper model type using `--whisper-model-type `, all available choices:
```python
{
"tiny.en"
"tiny"
"base.en"
"base"
"small.en"
"small"
"medium.en"
"medium"
"large-v1"
"large-v2"
"large"
}
```### Tune voice rate
You can tune the voice rate using `--voice-rate `, default rate is 165. the larger the speak faster.e.g.,
```bash
talkgpt4all --whisper-model-type large --voice-rate 150
```## RoadMap
+ [x] Add source building for llama.cpp, with more flexible interface.
+ [x] More LLMs
+ [x] Add support for contextual information during chating.
+ [ ] Test code on Linux,Mac Intel and WSL2.
+ [ ] Add support for Chinese input and output.
+ [ ] Add Documents and Changelogcontributions are welcomed!