web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

Ram Prakash Duraisamy Profile Picture Ram Prakash Duraisamy 5,593 Super User 2025 Season 2

Lets see this in 3 Different Blogs, First we Start with Canvas PowerApps

 

Pre-Requisites :

 

 

1. Canvas PowerApps :

 

rampprakash_1-1677500143211.png

  • And Click Create
  • Select Insert --> Select Microphone

rampprakash_2-1677500322386.png

  • In the OnStop of the Microphone Input the Below Values

rampprakash_3-1677500433705.png

 

 

 

 

 

ClearCollect(
 AudioCollection,
 Microphone1.Audio
);
Set(
 JSONValue,
 JSON(
 AudioCollection,
 JSONFormat.IncludeBinaryData
 )
);

 

 

 

 

 

Here Microphone1 is name of Microphone media

 

  • Now Click Insert and Add Audio

rampprakash_4-1677500525759.png

 

  • Select Audio And Click Media and Paste the Below Code

rampprakash_5-1677500595748.png

 

 

 

 

 

Microphone1.Audio

 

 

 

 

 

This Code Uses when ever you tired to Record By Speech you can hear Back from AUDIO option by Playing

 

  •  Now Add a Button and Name it as SUBMIT (or) Convert to Text
  •  Select Power Automate at the Left Side of the Tab and Click Add New Flow

rampprakash_0-1677646789273.png

 

Comments

*This post is locked for comments

  • bijunorderia Profile Picture bijunorderia
    Posted at
    How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

    The input parameter for the power automate flow should be as follows for this tutorial to work.

    Set the following formula on the button that triggers the PVA flow

    --

    ClearCollect(RecordCollection,Microphone1.Audio);
    Set(SpeechToTextOutputVar, NameOfTheFlow.Run(JSON(First(RecordCollection),JSONFormat.IncludeBinaryData)).OutPut)

    --

    Here .OutPut is the final output of the PVA flow that you have created. 

     

  • Ram Prakash Duraisamy Profile Picture Ram Prakash Duraisamy 5,593 Super User 2025 Season 2
    Posted at
    How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

    only Microphone1.Audio

  • GertogJanDW Profile Picture GertogJanDW Microsoft Employee
    Posted at
    How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

    Yes I understand, my question is what  input parameter? Do you have an example? Only the audio component or with some additional parameters like binary data?

  • Ram Prakash Duraisamy Profile Picture Ram Prakash Duraisamy 5,593 Super User 2025 Season 2
    Posted at
    How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

    Its a Power Automate Function with input parameter

  • GertogJanDW Profile Picture GertogJanDW Microsoft Employee
    Posted at
    How to Convert Speech to Text from Canvas PowerApps (Part I Canvas App)

    What to type in as onselect property of the button after you created the flow?