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
TRULY INNOVATIVE ELECTRONICS -INNOVATION UPDATES
Electronics For You

TRULY INNOVATIVE ELECTRONICS -INNOVATION UPDATES

Amongst numerous press releases of new products received by us, these are the ones we found worthy of the title Truly Innovative Electronics

time-read
4 mins  |
December 2024
Elastomer enhancing smart wearable performance
Electronics For You

Elastomer enhancing smart wearable performance

A high-tech, flexible wearable device made from the innovative elastomer material

time-read
1 min  |
December 2024
Nanotechnology based noninvasive cancer diagnostics
Electronics For You

Nanotechnology based noninvasive cancer diagnostics

Nanoflake sensors built from indium oxide with platinum and nickel detect changes in isoprene

time-read
1 min  |
December 2024
Space communication with silent amplifiers
Electronics For You

Space communication with silent amplifiers

In the new communication system from researchers at Chalmers University of Technology, in Sweden, a weak optical signal (red) from the spacecraft's transmitter can be amplified noisefree when it encounters two so-called pump waves (blue and green) of different frequencies in a receiver on Earth.

time-read
1 min  |
December 2024
Advancements in TOPCon solar cells
Electronics For You

Advancements in TOPCon solar cells

The structure and performance of tandem devices with highly passivated TOPCon bottom cells

time-read
1 min  |
December 2024
Quantum leap in magnetism refines superconductors
Electronics For You

Quantum leap in magnetism refines superconductors

Rice University physicists have uncovered key magnetic and electronic properties in kagome magnets, structures resembling basket-weaving patterns.

time-read
1 min  |
December 2024
Sensor targets food antioxidants
Electronics For You

Sensor targets food antioxidants

A research team from Hunan City University and Xiangtan University in China has developed a sensor for detecting TBHQ, a food antioxidant used in oils and fats, addressing health concerns at high concentrations.

time-read
1 min  |
December 2024
Data sensing with repurposed RFID tags
Electronics For You

Data sensing with repurposed RFID tags

UC San Diego researchers have advanced passive data collection with a breakthrough in battery-free sensing.

time-read
1 min  |
December 2024
Seal-inspired sensors to safeguard offshore wind farms
Electronics For You

Seal-inspired sensors to safeguard offshore wind farms

Schematic structure of the seal whisker-inspired flow sensors

time-read
1 min  |
December 2024
Artificial nose identifies scents accurately
Electronics For You

Artificial nose identifies scents accurately

Artificial nose identifies scents accurately

time-read
1 min  |
December 2024