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.

Bu hikaye Electronics For You dergisinin March 2023 sayısından alınmıştır.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

Bu hikaye Electronics For You dergisinin March 2023 sayısından alınmıştır.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

ELECTRONICS FOR YOU DERGISINDEN DAHA FAZLA HIKAYETümünü görüntüle
STK435 IC-Based STEREO AMPLIFIER
Electronics For You

STK435 IC-Based STEREO AMPLIFIER

This stereo AF amplifier uses the STK435 IC, a highly popular choice due to its simplicity.

time-read
2 dak  |
November 2024
A SEWER DRAIN SHIELD For Smart Cities
Electronics For You

A SEWER DRAIN SHIELD For Smart Cities

Drainage systems are vital for storm water management but often transport pollutants, especially plastics, to rivers and oceans, harming ecosystems.

time-read
2 dak  |
November 2024
ESP32 SPEECH FUNCTION: Text To Speech
Electronics For You

ESP32 SPEECH FUNCTION: Text To Speech

Speech capability in technology primarily has two dimensions: text to speech (TTS) and speech to text (STT). This device focuses on TTS.

time-read
2 dak  |
November 2024
World's Smallest Programable INDUSPHONE DESIGN
Electronics For You

World's Smallest Programable INDUSPHONE DESIGN

This is the second part of designing the world’s smallest phone, where the UI is integrated with the basic functions of the phone.

time-read
2 dak  |
November 2024
FLAME-SENSING FIRE ALARM Using An Arduino Nano
Electronics For You

FLAME-SENSING FIRE ALARM Using An Arduino Nano

Fire safety alarms are crucial in both residential and industrial environments.

time-read
2 dak  |
November 2024
loT-Based Distribution Transformer CONDITION MONITORING SYSTEM
Electronics For You

loT-Based Distribution Transformer CONDITION MONITORING SYSTEM

The proposed IoT-based distribution transformer condition monitoring system enables real-time monitoring of distribution transformers, identifying such deviations as overload conditions and overheating.

time-read
3 dak  |
November 2024
Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity
Electronics For You

Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity

Wi-Fi 6 leads with faster data rates and reduced latency while upcoming Wi-Fi 7's backward compatibility will facilitate gradual upgrades from Wi-Fi 6, easing transitions. However, advanced features like multi-link operation (MLO) and ultra-low latency may command a premium, making Wi-Fi 7 suited for high-end applications.

time-read
8 dak  |
November 2024
CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION
Electronics For You

CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION

A nuanced explanation of low- and high-voltage EV batteries by Dr Gokhale, Vice President for Battery Technology at JSW Energy, illuminates their advancements and influence. The essential role of MSMEs and academia in developing a strong EV ecosystem emerges, marking their significance for India's push towards self-reliance in this innovative field.

time-read
5 dak  |
November 2024
"MILES TO GO Before I Sleep"
Electronics For You

"MILES TO GO Before I Sleep"

A teacher illuminates the path to success through the light of knowledge, yet some teachers extend that light to society through their contributions and research. Known as the architect of the modern M3 electronic voting machine (EVM) and the voter verifiable paper audit trail (VVPAT) that transformed India's democratic process, Prof. (Dr) Rajat Moona's journey began in the modest town of Bareilly. Here is his story, as recounted to and written by EFY's Yashasvini Razdan.

time-read
10+ dak  |
November 2024
STARTUPS & INNOVATORS
Electronics For You

STARTUPS & INNOVATORS

1 One Charger To Charge All Your Devices | 2 Harnessing AI Technology For Efficient Pest Management | 3 Wireless Light-Based Communication With Velmenni's Technology

time-read
8 dak  |
November 2024