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.
Esta historia es de la edición March 2023 de Electronics For You.
Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.
Ya eres suscriptor ? Conectar
Esta historia es de la edición March 2023 de Electronics For You.
Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.
Ya eres suscriptor? Conectar
STK435 IC-Based STEREO AMPLIFIER
This stereo AF amplifier uses the STK435 IC, a highly popular choice due to its simplicity.
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.
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.
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.
FLAME-SENSING FIRE ALARM Using An Arduino Nano
Fire safety alarms are crucial in both residential and industrial environments.
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.
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.
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.
"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.
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