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.
This story is from the March 2023 edition of Electronics For You.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 8,500+ magazines and newspapers.
Already a subscriber ? Sign In
This story is from the March 2023 edition of Electronics For You.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 8,500+ magazines and newspapers.
Already a subscriber? Sign In
Smart WATER SERVING ROBOT
With the advent of artificial intelligence, robots find application in various sectors such as industry, homes, bars, restaurants, events, agriculture, and even space.
Multi-Purpose Wire-Loop SECURITY SYSTEM
This multi-purpose security system utilises wire loops to secure items. Wire loops can be employed in various ways for security applications such as luggage security, bike security, bicycle security, room security, and door security.
The Importance Of RADIATION PATTERN OF AN ANTENNA
Look beyond an antenna’s size and gain; its radiation pattern holds the key to its performance. Understanding this can unlock a whole new perspective on wireless communication
"Capitalise On 'CHINA PLUS TWO,' Where Products With Higher Value Addition BECOME THE FOCUS"
EPIC Foundation aims to transform India into an electronics hardware product nation by collaborating with governments, universities, design houses, and startups.
ADDING LOCATION TRACKING To The Wearable Interface Device
Here’s how you can add location tracking, without GPS, to the project for a smartwatch like HID with keyboard and touchpad, which was published in March issue.
"NATUREINSPIRED ADAS ALGOS Will Be MUCH BETTER Than Robotic Paradigm Algos"
Most of the ADASenabled vehicles of today function on algorithms (algos) inspired by robots used in a logistics setup. Can ADAS algos inspired by the human brain and nature be better? In a conversation with EFY's Mukul Yudhveer Singh, Gagandeep Reehal, Co-Founder, CEO & CTO, Minus Zero, illustrates this using the 'sunset mistaken for red light' example, shedding light on where India's Minus Zero is headed!
NEW EV POLICY: Will It Kill More Than Two Birds With One Stone?
With China taking the lead in electric vehicle production and sales in many global markets, can India’s new electric vehicle manufacturing policy encourage champion brands to set up shop in India? Can this policy be the turning point for India’s automobile industry’s bid to go global?
A Device That Enables SELLING UNUSED INTERNET DATA From Your Mobile Network
What if you could sell your remaining mobile data before the end of the month or even daily? Christophe Bureau, a Board Member of DotDot, in a conversation with EFY’s Mukul Yudhveer Singh, sheds light on what the Dot device offers beyond assisting users in selling their unused internet data
"EV INDUSTRY'S In The Compounding Stage Of BATTERY CELL TECHNOLOGY"
As sodium-ion battery packs gain attention in India, does this spell a bleak future for lithium-ion batteries? Furthermore, where does hydrogen stand as a fuel cell and combustion fuel? Dr Yashodhan Pramod Gokhale, CTO of Battrix, weighs in
ASSISTIVE AI: Semiconductor Design, Manufacture, And Workforce
Together, human intelligence and AI create a powerful synergy, highlighting the vital lesson for the semiconductor workforce: adapt to new technologies