# Create a ChatGPT voice bot on a Raspberry Pi

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/)
- [Initial setup](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/2setup/)
- [Configure and test audio](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/3audio/)
- [Create the Python application](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/4python-code/)
- [Run and test the bot](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/5run/)
- [Next Steps](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/raspberry_pi_chatgpt_bot/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 1 hr |
| Last updated: | 12 Nov 2026 |

|  |  |
| --- | --- |
| Author: | Gabriel Peterson , Arm<br>[GitHub](https://github.com/gabrieldpeterson)<br>[LinkedIn](https://linkedin.com/in/gabrieldpeterson)<br>[Twitter](https://twitter.com/@gabedpeterson)<br>[corteximplant.com](https://corteximplant.com/@gabe) |
| Arm IP: | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) |
| Tags: | [AI/ML](https://learn.arm.com/tag/ai-ml/) [Linux](https://learn.arm.com/tag/linux) [ChatGPT](https://learn.arm.com/tag/chatgpt) [Porcupine](https://learn.arm.com/tag/porcupine) [Python](https://learn.arm.com/tag/python) |

### Who is this for?
This is an introductory project for developers interested in integrating a Chatbot (namely ChatGPT) into Raspberry Pi projects.

### What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Run a bot on a Raspberry Pi that will listen to you and respond to what you say
- Learn how to listen for a keyword and wake a program when the keyword is heard
- Convert speech from the microphone to text using Google Speech Recognition
- Send text created from speech to ChatGPT's gpt-4-turbo-preview model via API and receive a text reply
- Convert the text reply to speech using ChatGPT's text-to-speech model via API
- Play the received speech file

### Prerequisites
Before starting, you'll need the following prerequisites:
- A Raspberry Pi 4 or 5 (earlier models may also work)
- A microSD card with at least 16GB of storage
- A Linux compatible USB microphone and USB speakers or a USB audio device with a microphone and speakers

### Summary
You’ll build a voice-driven assistant on Raspberry Pi. First, you’ll install 64-bit Raspberry Pi OS, configure USB audio, and create a Python virtual environment. Then, you’ll run a script that detects the “computer” wake word, transcribes speech, sends text to ChatGPT, and plays the reply. You’ll validate audio recording and output before running the assistant continuously.
