Speak to ChatGPT on Android

Ashish Suthar
3 min readApr 2, 2023

--

OpenAI + Automate Android App + https://unsplash.com/photos/wrkNQmhmdvY Background

Have you ever wished you could simply speak to your phone and have it respond with accurate information, or even hold a conversation with you? With the latest advancements in natural language processing and machine learning, this futuristic dream is becoming a reality. And with the help of ChatGPT, a large language model trained by OpenAI, you can now converse with your Android device like never before.

The process is simple and easy to set up. Using the Automate Android app, you can create a flow that recognizes speech, makes an API call to ChatGPT, parses the response, and converts the text to speech. Let’s break down each step in more detail.

First, the speech recognition block uses the microphone on your Android device to pick up your voice and convert it into text. Store that text into variable inputText. This text is then passed on to the next block, which makes an API call to ChatGPT.

1. Configure Speech recognition block in Automate App

ChatGPT API uses GPT 3.5 Turbo language model to generate a response to your query or statement. You can modify the request body if you want to use ChatGPT with a different model. The response is returned in JSON format, which is then parsed by the third block. Store response in data variable.

2. Configure HTTP request block in Automate App to make OpenAI API Call

Now we will parse JSON using jsonDecode function and store into variable using Variable Set block of Automate App.

3. Configure Variable set block in Automate App to parse ChatGPT response.

The fourth block adds a delay of one second to ensure that the response has been fully processed before moving on to the next step.

4. Configure Delay block

Finally, the fifth block converts the text response into speech, allowing you to hear ChatGPT’s answer in a natural and conversational tone.

5. Configure Speak response block to convert text to speech in Automate App

With this flow in place, you can now speak to your Android device and receive accurate and informative responses from ChatGPT.

Continuous conversation with ChatGPT using Automate on Android

In conclusion, by using the Automate Android app and ChatGPT, you can create a flow that allows you to speak to your phone and receive intelligent and conversational responses. This exciting technology opens up a world of possibilities, from personal assistants to language translation, and is sure to change the way we interact with our devices in the future. So why not give it a try and see how ChatGPT can enhance your Android experience?

P.S.

--

--