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?
Ashwini Kumar Sinha
How To Convert ChatGPT Into An Advanced Voice Assistant

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.

We now need to create an account and log into ChatGPT (see Fig. 2).

Next, we need to get the API key for doing research and experimenting with the ChatGPT code, as shown in Fig. 3.

Denne historien er fra March 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

Denne historien er fra March 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

FLERE HISTORIER FRA ELECTRONICS FOR YOUSe alt
ESP32-Powered AUDIO-VISUAL SIREN
Electronics For You

ESP32-Powered AUDIO-VISUAL SIREN

This sound alternator is designed to simulate the effects of a police siren, combining sound and light to create a dynamic audio-visual experience.

time-read
2 mins  |
January 2025
BLDC MOTOR With Web-Based Speed Control Using ESP32
Electronics For You

BLDC MOTOR With Web-Based Speed Control Using ESP32

Integrating wireless control into brushless direct current (BLDC) motor systems opens up exciting possibilities for applications such as remote-controlled cars, robots, and other innovative systems.

time-read
5 mins  |
January 2025
Pi Zero Portable BILINGUAL TRANSLATOR
Electronics For You

Pi Zero Portable BILINGUAL TRANSLATOR

This system is designed as a bilingual translator, leveraging the gTTS library to support multiple Indian languages, including English (en), Bengali (bn), Gujarati (gu), Hindi (hi), Kannada (kn), Malayalam (ml), Marathi (mr), Tamil (ta), Telugu (te), and Urdu (ur).

time-read
5 mins  |
January 2025
Op-Amp-Based VEHICLE THEFT DETECTOR
Electronics For You

Op-Amp-Based VEHICLE THEFT DETECTOR

A simple, low-cost device can effectively alert homeowners or occupants if a parked vehicle is moved or tampered with.

time-read
3 mins  |
January 2025
loT SMART METER With Dashboard
Electronics For You

loT SMART METER With Dashboard

Energy meters in homes track electricity usage, enabling accurate billing by governments and providers.

time-read
2 mins  |
January 2025
Choose The Right Cloud Platform For Implementing loT PROTOCOLS
Electronics For You

Choose The Right Cloud Platform For Implementing loT PROTOCOLS

Working with loT protocols like MQTT, AMQP, and CoAP on cloud platforms is essential for developing scalable and efficient lol applications. The choice of the programming platform will depend on factors like project requirements, existing skills, and target devices. Leveraging the appropriate libraries and cloud services can enable seamless integration of lol devices with cloud-based applications.

time-read
7 mins  |
January 2025
Why TMR SENSORS Lead Next-Generation Design
Electronics For You

Why TMR SENSORS Lead Next-Generation Design

TMR sensors are gaining traction in industries needing precision and power efficiency. What makes them the go-to choice for modern designs?

time-read
7 mins  |
January 2025
DESIGNING PCBs For EMI Management
Electronics For You

DESIGNING PCBs For EMI Management

Electromagnetic interference can derail your PCB’s performance. EMI management is not just a technical necessity but a hallmark of exceptional PCB design.

time-read
4 mins  |
January 2025
CUTTING COSTS, NOT CORNERS: Building Large Scale Applications With Open Source Software
Electronics For You

CUTTING COSTS, NOT CORNERS: Building Large Scale Applications With Open Source Software

Here are some strategies and best practices for leveraging open source to create enterprise-grade web and mobile applications without sacrificing quality or functionality.

time-read
6 mins  |
January 2025
"We Are One Of India's Very Few State Bodies To Manage The Entire Lifecycle Of The Electronics EcosystemFrom Approvals To Subsidies."
Electronics For You

"We Are One Of India's Very Few State Bodies To Manage The Entire Lifecycle Of The Electronics EcosystemFrom Approvals To Subsidies."

What is Gujarat State Electronics Mission GSEM), and how is it attracting major investments in electronics manufacturing, particularly semiconductor manufacturing, to Gujarat? To delve deeper, Electronics For You’s Nijhum Rudra spoke with Manish Gurwani, the head of GSEM. Here is what he revealed...

time-read
3 mins  |
January 2025