Everyone is talking about OpenAI, ChatGPT and trying amazing things. I also started playing with it and wanted to try how it would be usrd on Raspberry Pi Zero to make a DIY small pocket size, AI voice assistant which can contineously listen and detect Wake words and answer to the question like smart speaker.
I used Re-Speaker 2-Mic Hat with RPi-zero to record the audio and play the audio.
How I did it:
1. Detect Wakeword using Wake Word engine and trained model for wake word detection.
2. On Wake Word detection record audio with PyAudio python package and save it in wav format.
3. Convert audio to text with Google speech-to-text API
4. Send the text to ChatGPT as question.
5. Receive the answer in text as response from ChatGPT.
6. Convert the text response into Speech using Google text-to-speech.
7. Play the audio file on raspberry pi using python media player.
Негізгі бет TalkGPT - My ChatGPT Powered Voice Assistant with Raspberry Pi, Python
No video
Пікірлер: 9