Give Voice To Your Azure OpenAI Chatbot
In this article, I’ll show you how can you give voice to your chatbot so that you can ask question in your voice and get response back as an audio.
To make this entire flow, we need to integrate two services:
- Azure Speech Service
- Azure OpenAI Service
Which means that you should have an active Azure subscription before getting started.
Workflow
This is how the high level workflow looks like:
First we will take user’s voice from microphone, then will transcribe that voice so that we can get text using Azure Speech SDK. Next, we will pass that text to OpenAI API and get the response back. As a final step, we will pass this response to Azure Speech SDK, which will convert it back to voice.
Prerequisites
In order to proceed, one must full fill below requirements:
- Azure subscription — An active Azure subscription is required. If you do not have one, you can create a free account here .
- An instance of Azure speech service
- An instance of Azure OpenAI service
Let’s get started with each of the steps mentioned in workflow.