

Set(DesiredOutput,’ConvertSpeechToText’.Run(JSON(First(AudioCollection),JSONFormat.IncludeBinaryData))) Finally select the ‘ OnSelect’ property of the ‘ Submit’ button and add the following formula.Later in this article, we will add more actions to the Power Automate (Flow), so as to carry out a Speech to Text conversion. Note – We completed these steps in the Power Automate (Flow) just so that we can get the Power Automate (Flow) added to our Power Apps. Once that has been done, add a ‘ Compose Action’and select ‘Ask in PowerApps’ from the Dynamic content in the pane on the right side of the image below.Rename the Power Automate (Flow) to “ Convert Speech To Text” and add ‘PowerApps’ as a trigger.Then, click on ‘ Create a new Flow’ as shown below.To do this, click on the ‘Power Automate’ option as highlighted. Inside the Action menu, there is an option to add ‘Power Automate’ to your existing Power Apps.Now it’s time to add a Power Automate (Flow) to our Power Apps.Select the ‘ Text’property of ‘ AudioJSON’ label as below to display it’s value set earlier.

Select the ‘ OnStop’ property of Microphone and add the following formula to it:ĬlearCollect(AudioCollection,Microphone1.Audio) Set(JSONValue,JSON(AudioCollection,JSONFormat.IncludeBinaryData)).Then,we’ll create variable ‘ JSONValue’ and set it with the JSON of the audio.We will first configure a collection called “ AudioCollection” to add a recorded Audio sample.Step 2- Configuring the components with Formula’s Now that we have the outer body ready, let’s go ahead and configure our components with formulas.The final structure of Power Apps is shown below.Rename Label 1 to ‘ AudioJSON’ and Label 2 to ‘ TextOutput’, as shown.Add two Lables to the Canvas that we will use as containers to hold values.Next, rename the Button to ‘ Submit’ as shown.Now add a Button to the Canvas as shown below.Specify the Name and the Format of the APP and Click on ‘Create’.Go to, sign in with your work or school account, click on the Apps menu in the left navigation bar, and then click on ‘+Create’ and Select Canvas app from blank.Step 1- Creating the basic structure of The Canvas App Working knowledge of both Power Apps and Power Automate(Flow).ĭesigning a Canvas App with The Microphone Control to Capture Audio.Appropriate privileges to create Power Apps and Power Automate(Flow).Power Automate Plan for consuming the HTTP Custom actions.
#Azure speech to text tutorial pdf


#Azure speech to text tutorial series
This post is part 1 of a 3 part series on Converting Speech to Text in Power Apps.
