This is a simple voice assistant that calls GPT, which can detect decibels in real-time and handle speech input and output.
Enter the following pip command in the terminal to install all libraries.在终端中输入以下pip命令来安装所有库
pip install openai numpy pinecone boto3 pygame sounddevice scipy pydub watchdog
Click on gptxmOP.py to run it, but before running it, you need to find the corresponding API code in GPTxm1.py and fill in your own API or modify the code.点击gptxmOP.py就可以运行了,但是在运行之前你需要在GPTxm1.py中找到对应的API填写的代码填写自己的API,或者修改代码都可以
If you have any questions, simply send the code to chatgpt. The code should be clear and easy to understand.如有任何疑问,直接将代码送到chatgpt,代码层次清晰易懂
You can modify the MS.txt file, set it to 1 for voice mode and 2 for text mode.可以修改MS.txt文件,编辑为1是语音模式,编辑为2为文字模式
RAZILOVE/GPT-Simple-Voice-Assistant.gptxmOP1.0.
This is a simple voice assistant that calls GPT, which can detect decibels in real-time and handle speech input and output.
Python