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.
Allerede abonnent ? Logg på
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.
Allerede abonnent? Logg på
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.
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.
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).
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.
loT SMART METER With Dashboard
Energy meters in homes track electricity usage, enabling accurate billing by governments and providers.
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.
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?
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.
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.
"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...