Try GOLD - Free
How To Convert ChatGPT Into An Advanced Voice Assistant
Electronics For You
|March 2023
ChatGPT-3 needs no introduction. You ask it any question and it replies in a flash. But the answer comes in the form of text. What if you could talk with it, just like you do with any voice assistant like Siri?

It's no secret that ChatGPT has revolutionised the world of AI. Unlike other AI bots, it is able to understand the context of a conversation and respond, and it makes you feel like you are chatting with a human and not a machine.
But as it is still a kind of chatbot, you need to type a question and you get the answer in the form of text. That's not as exciting as talking to a bot.
This thought gave me the idea of programming ChatGPT so that it could be used as a voice assistant called VoiceGPT. I began by using natural language processing (NLP) to recognise the voice, and then transferring the recognised voice to the ChatGPT engine as a query using the API. After getting an intelligent reply from ChatGPT, I again used NLP to convert it into a human voice.
I needed a good NLP tool for this and OpenAI itself provides one, that is, Whisper. But due to limited time and space, I ended up using Google Natural Language API.
A step-by-step guide to making VoiceGPT
We need to begin by combining the NLP for the ttX service with ChatGPT. For this, we need a machine to run the open API, transfer the query gathered from NLP, and reprocess the answer given by ChatGPT into a human voice using NLP.
You can use any laptop, but I chose the Raspberry Pi to run all this. For capturing the voice for recognition, I attached the voice bonnet; a USB microphone can also be used with Raspberry Pi. However, if you are using a laptop to run the VoiceGPT code, there is no need for a USB microphone; you can use the laptop's inbuilt microphone.
This story is from the March 2023 edition of Electronics For You.
Subscribe to Magzter GOLD to access thousands of curated premium stories, and 9,500+ magazines and newspapers.
Already a subscriber? Sign In
MORE STORIES FROM Electronics For You
Electronics For You
Low-power, reliable transmitter chip
Researchers at MIT (United States) have developed a compact transmitter chip that reduces signal errors by a factor of four and extends battery life for IoT devices.
1 min
September 2025

Electronics For You
Leading Suppliers of MICROSCOPES FOR OC OF ELECTRONICS
Who are India's Leading Suppliers of Microscopes for Quality Control of Electronics? Here is the list...
5 mins
September 2025

Electronics For You
Compact swarm-level AI drones navigation using neural network
Researchers at Shanghai Jiao Tong University (Shanghai, China) have developed a compact AI navigation system for drones.
1 min
September 2025

Electronics For You
ML-based wireless power transfer
Researchers at Chiba University (Chiba, Japan) have developed a machine learning-based method to design wireless power transfer (WPT) systems that stay efficient and stable across varying loads.
1 min
September 2025
Electronics For You
Wi-Fi that knows who you are
WhoFi, developed at La Sapienza University (Rome, Italy), is a Wi-Fi-based surveillance system that identifies individuals by how their bodies disrupt wireless signals; no cameras, contact, or consent is needed.
1 min
September 2025

Electronics For You
3mm-thick holographic display that delivers lifelike 3D visuals
Stanford researchers (California) have unveiled a 3mm-thick holographic display that delivers lifelike 3D visuals using true holography, not stereoscopy.
1 min
September 2025

Electronics For You
Smart Trolley Robot 'TROLL.E 1.0'
Robots now play a vital role across modern society, often described as human-like due to their growing presence in social and commercial environments.
3 mins
September 2025
Electronics For You
Compact metal-free thin-film supercapacitor delivers 200V
GDUT (Guangzhou, China )researchers have developed a metal-free thin-film supercapacitor (TFSC) stack that delivers 200V in just 3.8cm³.
1 min
September 2025

Electronics For You
Al-powered self-driving lab tests materials 10x faster
Researchers at NC State (Raleigh, North Carolina) have developed an Al-powered self-driving lab that uses dynamicstate flow and real-time data to test materials 10x faster than traditional labs.
1 min
September 2025

Electronics For You
Breakthrough in co-packaging photonic and electronic chips
The MIT (United States) FUTUR-IC team has developed a breakthrough chip packaging method that co-integrates electronics and photonics using passive alignment.
1 min
September 2025
Translate
Change font size