Smart Speaker based on GPT by OpenAI
GitHub Link: GitHub
Video Link: Twitter
Table Of Content
Characteristics
Example Questions
- Prompt: Write a tagline for an ice cream shop.
- Completion: We serve up smiles with every scoop!
- Suggest one name for a horse.
- Suggest one name for a black horse.
- Suggest three names for a horse that is a superhero.
- Super Stallion
- Captain Colt
- Mighty Mustang
$ Suggest three names for an animal that is a superhero.
Animal: Cat
Names: Captain Sharpclaw, Agent Fluffball, The Incredible Feline
Animal: Dog
Names: Ruff the Protector, Wonder Canine, Sir Barks-a-Lot
Animal: Horse
Names: Super Stallion, Mighty Mare, The Magnificent Equine
Steps
Step 4. Change TEST_MODE to True or IS_RASPBERRYPI in server/utils/config.py
(Important), connect url in client/src/app.js
(Optional)
Step 4. run sh start.sh
or server - app.py
and client - npm start
Installation
run install.sh
or follow the steps
PyAudio
Installation error on macOS
# src/pyaudio/device_api.c:9:10: fatal error: 'portaudio.h' file not found
brew install portaudio
pip3 install pyAudio
# Linux
sudo apt install python3-pyaudio
# https://stackoverflow.com/questions/58974116/how-to-install-libasound2-dev-32-bit-without-using-apt-get
sudo apt-get install libportaudio2
picovoice.ai
pip3 install pvporcupine
pip3 install pvcobra
Azure Speech Service
sudo apt-get update
sudo apt-get install build-essential libssl-dev libasound2 wget
pip install azure-cognitiveservices-speech
dotenv
cd ./code && mv .env.example .env
pip3 install python-dotenv
PICOVOICE_AI_KEY=${YOUR-PICOVOICE-AI-KEY}
SPEECH_KEY=${MICROSOFT-AZURE-SPEECH-KEY}
SPEECH_REGION=${MICROSOFT-AZURE-SPEECH-REGION}
Reference
Services
Articles