ChatGPT语音助手免翻墙网页版API自助搭建教程

本期内容采用“AI-Talk”开源项目,使用OpenAI的API搭建免翻墙的chat GPT语音助手,可以自定义语音助手所使用的模型,包括GPT3.5、GPT4甚至是马上将要推出的GPT4.5等等。还可以自定义语音助手的角色。

项目网址在此:https://github.com/ossrs/ai-talk

完整视频教程在此:https://youtu.be/NwicOU8dQZI

视频中所用到的代码

第一:设置root用户名和密码登录

echo root:你的密码 |sudo chpasswd root #你的密码#替换为你的root账户密码#
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo reboot

第二:安装国外版宝塔面板aaPanel

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel

第三:安装Docker

sudo apt-get update
sudo apt-get install docker.io

第四:安装Ai-talk

docker run -d --restart always -it -p 3000:3000 \
    -e OPENAI_API_KEY=sk-xxx -e OPENAI_PROXY=https://api.openai.com \
    -e AIT_SYSTEM_PROMPT="You are a helpful assistant." \
    -e AIT_ROBOT_1_ID="英语口语教练" \
    -e AIT_ROBOT_1_LABEL="英语口语教练" \
    -e AIT_ROBOT_1_PROMPT='I want you to act as a spoken English teacher and improver. I will speak to you in English and you will reply to me in English to practice my spoken English. I want you to strictly correct my grammar mistakes, typos, and factual errors. I want you to ask me a question in your reply. Now let us start practicing, you could ask me a question first. Remember, I want you to strictly correct my grammar mistakes, typos, and factual errors.' \
    -e AIT_ROBOT_1_ASR_LANGUAGE="en" \
    -e AIT_ROBOT_0_ASR_LANGUAGE="zh" \
    -e AIT_CHAT_MODEL="gpt-4-1106-preview" \
    ossrs/ai-talk:v1

OK,愉快玩耍。如果需要代注册ChatGPT账号或者租用API,可以联系宝哥微信:809086699。白嫖勿扰。

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享