Git Product home page Git Product logo

chatgpt's Introduction

ChatGPT Demo

Talk to ChatGPT from your phone in 310 lines of Go code. 用310行Go代码写一个完整的ChatGPT语音聊天程序。

Prerequest

  • XSwitch, Community version is free and enough to run this demo.
  • One of AI Modules, e.g. mod_ali or mod_baidu, included in XSwitch.
  • XCC API with a NATS Server.
  • XCtrl.

If you don't need a web admin you can try XSwitch without XUI or use xswitch-free as an alternative.

Alternatively, You can use opensource FreeSWITCH with ESL and one of ASR/TTS modules like mod_unimrcp.

Build and Run

make
make run

or

go run chatgpt.go

Pull Requests

Pull Requests is welcome but the main purpose of this demo is to keep it simple and easy to understand, and strictly limited in "310 lines of code".

Videos

There's some videos on Wechat: https://mp.weixin.qq.com/s/cdlkDu3WH6I5X9YWJxG7vA .

Todo

This Readme is not complete, come back and check updates if you need more details. A Chinese version will also be available soon.

Screenshots

chatgpt's People

Contributors

gavinin avatar seven1240 avatar

Stargazers

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