8000 GitHub - sysuwuhaibin/chatgpt-talkieai: 基于chat-gpt的外语学习应用,可通过语音进行聊天,语法分析,翻译,前端使用uniapp开发,基于vue3,可运行到web、小程序、APP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

License

Notifications You must be signed in to change notification settings

sysuwuhaibin/chatgpt-talkieai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-TalkieAI icon TalkieAI

简介

TalkieAI 是一个基于AI的外语学习应用,可通过语音进行聊天,语法分析,翻译。 AI可以基于CHAT-GPT, 百度开放平台智谱开放平台 百度模型还未完全适配好,暂时可以用智谱开放平台

在线预览

后端

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

前端

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

项目示例图

本地启动

# 数据库,创建一个空的数据库,.env文件配置好数据库后启动服务,服务会自动生成相应的表
# 1.克隆本仓库;
git clone git@github.com: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 8000 &
#前端使用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交流群

贡献

< 6523 /div>

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 66.1%
  • JavaScript 15.3%
  • Python 11.0%
  • TypeScript 3.7%
  • SCSS 1.9%
  • Less 1.0%
  • Other 1.0%
0