Code Monkey home page Code Monkey logo

talkgpt4all's Introduction

talkGPT4All

A voice chatbot based on GPT4All and talkGPT.

Video demo.

Please check more details in this blog post (in Chinese).

Installation

Install Python Requirements

clone the code:

git clone https://github.com/vra/talkGPT4All.git <ROOT>

construct python virtual environment:

cd <ROOT>
python -m venv talkgpt4all
source talkgpt4all/bin/activate
pip install -U pip
pip install -r requirements.txt

Download Whispe model

wget https://openaipublic.azureedge.net/main/whisper/models/ed3a0b6b1c0edf879ad9b11b1af5a0e6ab5db9205f891f668f8b0e6c6326e34e/base.pt -o $HOME/.cache/whisper/base.pt

Download GPT4All checkpoint

put the downloaded model to folder <ROOT>/models.

Download GPT4All binary executable

put the downloaded executable to <ROOT>/bin.

Prepare Text to Voice program

on Mac, no extra work needed, just use say.

on Linux ,please install espeak,For example, on Ubuntu, run sudo apt install espeak.

On Windows , please install wsay, you can download binary at here,then put it into <ROOT>/bin.

Usage

pattern: python chat.py --platform <platform>

Mac M1:

python chat.py --platform mac-m1

Mac Intel:

python chat.py --platform mac-intel

Linux:

python chat.py --platform linux

Windows:

python chat.py --platform windows

RoadMap

  • Test code on Linux,Mac Intel and WSL2.
  • Add support for contextual information during chating.
  • Add support for Chinese input and output.
  • Add source building for llama.cpp, with more flexible interface.
  • More LLMs

contributions are welcomed!

talkgpt4all's People

Contributors

vra 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.