Receive a chance to win big by commenting on any problems or corrections made in this loop!

We may be entirely hands-free when creating a ChatGPT terminal for this project, answering questions and responding to answers in a hands-free manner!

While Pi- zero is a complete- formed system, ESP32, Arduino UNO &amp, Mega or Maixduino are simple MCUs. Thus, they will truly be many times substandard to Pi- zero. But if you compare the variety issue, quantity of GPIOs, speed and cost, Pi- zero 2W is very competitive! It has an analog-to-digital conversion onboard, which it can do all other MCUs you. For an analog- to- digital converter, we have to use an additional]ADC ] chip]like MCP3008 ] with Raspberry Pi. In some stores, Pi-0 can be purchased for as little as INR: 1600, while Arduino Mega can be purchased for the same amount! If the Arduino craze is over, board like the Pi Zero, Orange Pi, Nano Pi, and Banana Pi, which are similar to MCUs, are on the rise right now, in my opinion.

Author’s Prototype

Good production on Pi Zero

The Pi-Zero board does n’t produce any sound. One needs to join an HDMI device, or a Television, to Pi- Zero in order for sound to come out naturally. There are HDMI-to-AV production equipment that can be used to split out the audio and video output. After that, a speaker must be attached in order to reproduce the poor audio signal. Nevertheless, there is another easier approach which is shown in the diagram. Any two of the PWM GPIO pins]12, 13, 18, 19] can be used to power sound output by adding just one range in /boot/config. csv report. dtoverlay=audremap, pins_18_13. The sound is taken out using a smaller screen layout followed by a 2- ohm PAM8403 amplifier.

Schematic of sound result

Circuit Diagram

Although the amplifier has a 5 volt rating, it can use 3.3 volts and a tiny speech.

BOM

  • Raspberry Pi zero 2W – Rupees: 1600
  • PAM8403 Amplifier – INR: 50
  • 4OHM Speakers]02 nos ] – INR: 120
  • USB speaker – INR: 170
  • OTG cord for attaching a standard USB mic

Pi- no has just one micro USB slot for external connections. To insert the USB microphone into it, we need an OTG wire with a female sub USB on one side and a female USB on the other.

– Advertising-

Format of Operations

This is a fully hands- complimentary operation. Our instructions may become voiced in an audio message, and we will also have acoustic responses. There will be a force option. When you press it, the machine asks you to respond to the question. The system will ask for your approval after you submit a yes or no acoustic response when you finish the question within 10 seconds. If no, it may ask you to start all over again. If well, it does beg ChatGPT to provide the answer. Once it receives the solution, it will talk it out for you. After the collection, it may wait for a switch press! The ring goes unlimited!

To prevent various runs of the same code, the key press is made to be bounce-free.

Project script: Your completely chatgpt api-key must be obtained before you begin this task. This is accessible from openai.com. Please register your email address in vi_chatgpt and then receive the api-key that needs to be inserted into the api-key changing. fabric script.

– Advertising-

button_listener. fabric = This is a switch push code, which monitors a GPIO button]17 below, you can alter it ]. When the button is pressed, it will begin a barrel system
– vi_chatgpt. rs.

vi_chatgpt. d = This code may start the principal code – vi_chatgpt. pi. Executing a prompt like this will make this code executable.
$ &gt, chmod + by vi_chatgpt. ker

vi_chatgpt. wool = Main project script which when finished, will launch manage to button_listener. pi once more to follow the upcoming key click event

Make sure the Pi zero quickly logs into console mode [or graphics mode] before enabling autostart on boot. You may https to your pis- zero. Then in the home folder ]/home/bera/ ] there is a.profile file, open that file using nano.

$ &gt, mini /home/bera/. report, At the end of that file, add this line. Shut it while saving it. php /home/bera/button_listener. Python &amp, When you reset, the program will start right away and wait for the key press event to occur!

Software

Use some software first, perhaps.
$ &gt, pip install open
$ &gt, pip install speech_recognition
$ &gt, pip place component

Additionally, you must make sure that your Raspberry Pi’s layout includes SSH and Internet access. Interestingly, it has been discovered that the USB camera, which is turned on in a divide AC inside unit, is extremely sensitive to picking up sound from the other room. The sky enthusiast should not be used, or it can be operated at the slowest rate.

Aftermath

Even the “button press” event can be replaced with a fixed audio command, such as” Daisie start” or” Daichi start,” etc. but it significantly slows the Pi-0 function, making it work even more slowly in Pi-4 or Pi-5. During the creation of this task, help was sought and also obtained from openai.com.

Access Source Code