Code Monkey home page Code Monkey logo

mingxinliang / chatgpt-talkieai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maioria/chatgpt-talkieai

0.0 0.0 0.0 1.75 MB

基于chat-gpt的外语学习应用,可通过语音进行聊天,语法分析,翻译,前端使用uniapp开发,基于vue3,可运行到web、小程序、APP

Home Page: https://talkie.prejade.com/

License: GNU General Public License v3.0

Shell 0.01% JavaScript 14.14% Python 15.10% TypeScript 2.24% CSS 0.75% HTML 0.18% Vue 65.37% Less 0.49% SCSS 1.72%

chatgpt-talkieai's Introduction

ChatGPT-TalkieAI icon TalkieAI

简介

TalkieAI 是一个基于AI的外语学习应用,可通过语音进行聊天,语法分析,翻译。 AI可以基于CHAT-GPT, 国内可以配置chat-gpt代理或者使用智谱开放平台

在线预览

后端

  • 使用python语言开发,开发使用的版本为3.11,web框架为fastAPI,数据层框架为SQLAlchemy,语音使用azure。

前端

  • 前端使用uniapp开发,基于vue3,可发布到网页与小程序与APP

项目示例图

本地启动

# 数据库,创建一个空的数据库,.env文件配置好数据库后启动服务,服务会自动生成相应的表,并且加载默认数据
# 1.克隆本仓库;
git clone [email protected]:maioria/chatgpt-talkieai.git
cd talkieai-server
# 2.安装依赖;
pip3 install -r requirements.txt
# 3. 启动服务(需要新建.env文件并设置变量,参考.env.default)
nohup uvicorn app.main:app --host 0.0.0.0 --port 8097 &
#前端使用HBuilder直接web或者小程序运行

# 1. 安装依赖(前端只用了俩个依赖fingerprintjs2 与 recorder)
npm install

nginx配置(Web)

# uniapp可以直接跨域请求服务端地址,也可通过nginx来配置反向代理
server {
        listen       80;
        listen       [::]:80;
        server_name  {server_name};
        rewrite ^(.*) https://$server_name$1 permanent;
      }

server {
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  {server_name};
        root         {前端编译完后的路径};
        ssl_certificate "{crt}";
        ssl_certificate_key "{key}";
        ssl_session_cache shared:SSL:1m;
        ssl_session_timeout  10m;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;

        # Load configuration files for the default server block.
        location ^~ /api/ {
           proxy_pass http://localhost:8000/api/;
           proxy_set_header Host $http_host;
           proxy_connect_timeout 15s;
           proxy_send_timeout 300s;
           proxy_read_timeout 300s;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
        location / {
           try_files $uri $uri/ /index.html;
        }
    }

交流

QQ交流群

贡献

如果您有任何建议或意见,欢迎提出 Issues Pull Request

chatgpt-talkieai's People

Contributors

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