Skip to content

Commit aad2291

Browse files
committed
initial stub save progress
1 parent 4be12ef commit aad2291

File tree

5 files changed

+42
-5
lines changed

5 files changed

+42
-5
lines changed
89.2 KB
Loading
23.9 KB
Loading
65.4 KB
Loading
2.07 KB
Loading

articles/cognitive-services/Speech-Service/power-automate-batch-transcription.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ You'll [upload files to the container](#upload-files-to-the-container) after the
4545

4646
## Create a Power Automate flow
4747

48+
### Create a new flow
49+
4850
1. [Sign in to power automate](https://make.powerautomate.com/)
4951
1. From the collapsible menu on the left, select **Create**.
5052
1. Select **Automated cloud flow** to start from a blank flow that can be triggered by a designated event.
@@ -53,7 +55,10 @@ You'll [upload files to the container](#upload-files-to-the-container) after the
5355

5456
1. In the **Build an automated cloud flow** dialog, enter a name for your flow such as "BatchSTT".
5557
1. Select **Skip** to exit the dialog and continue without choosing a trigger.
56-
1. Choose a trigger for the first connector. For this example, enter "blob" in the search connectors and triggers box to narrow the results.
58+
59+
### Configure the flow trigger
60+
61+
1. Choose a trigger from the [Azure Blob Storage connector](/connectors/azureblob/). For this example, enter "blob" in the search connectors and triggers box to narrow the results.
5762
1. Under the **Azure Blob Storage** connector, select the **When a blob is added or modified** trigger.
5863

5964
:::image type="content" source="./media/power-platform/flow-search-blob.png" alt-text="A screenshot of the search connectors and triggers dialog." lightbox="./media/power-platform/flow-search-blob.png":::
@@ -69,29 +74,61 @@ You'll [upload files to the container](#upload-files-to-the-container) after the
6974
1. From the **Storage account name or blob endpoint** drop-down list, select **Use connection settings**. You should see the storage account name as a component of the connection string.
7075
1. Under **Container** select the folder icon. Choose the container that you [created previously](#create-the-azure-blob-storage-container).
7176

77+
### Create SAS URI by path
78+
79+
To transcribe an audio file that's in your [Azure Blob Storage container](#create-the-azure-blob-storage-container) you need a [Shared Access Signature (SAS) URI](/azure/storage/common/storage-sas-overview) for the file.
80+
81+
The [Azure Blob Storage connector](/connectors/azureblob/) supports SAS URIs for individual blobs, but not for entire containers.
82+
7283
1. Select **+ New step** to begin adding a new operation for the Azure Blob Storage connector.
7384
1. Enter "blob" in the search connectors and actions box to narrow the results.
7485
1. Under the **Azure Blob Storage** connector, select the **Create SAS URI by path** trigger.
7586
1. Under the **Storage account name or blob endpoint** drop-down, choose the same connection that you used for the **When a blob is added or modified** trigger.
7687
1. Select `Path` as dynamic content for the **Blob path** field.
7788

89+
By now, you should have a flow that looks like this:
90+
91+
:::image type="content" source="./media/power-platform/flow-progression-sas-uri.png" alt-text="A screenshot of the flow status after create SAS URI." lightbox="./media/power-platform/flow-progression-sas-uri.png":::
92+
93+
### Create transcription
94+
7895
1. Select **+ New step** to begin adding a new operation for the [Azure Cognitive Services for Batch Speech-to-text connector](/connectors/cognitiveservicesspe/).
7996
1. Enter "batch speech-to-text" in the search connectors and actions box to narrow the results.
8097
1. Select the **Azure Cognitive Services for Batch Speech-to-text** connector.
8198
1. Select the **Create transcription** action.
99+
1. Create a new connection to the Speech resource that you [created previously](#prerequisites). The connection will be available throughout the Power Automate environment. For more information, see [Manage connections in Power Automate](/power-automate/add-manage-connections).
100+
1. Enter a name for the connection such as "speech-resource-key". You can choose any name that you like.
101+
1. In the **API Key** field, enter the Speech resource key.
102+
103+
Optionally you can select the connector ellipses (...) to view available connections. If you weren't prompted to create a connection, then you already have a connection that's selected by default.
82104

83-
1. Create transcription
84-
1. Delete transcription
105+
:::image type="content" source="./media/power-platform/flow-progression-speech-resource-connection.png" alt-text="A screenshot of the view connections dialog." lightbox="./media/power-platform/flow-progression-speech-resource-connection.png":::
106+
107+
1. Configure the **Create transcription** action.
108+
1. In the **locale** field enter the expected locale of the audio data to transcribe.
109+
1. Select `DisplayName` as dynamic content for the **displayName** field. You can choose any name that you would like to refer to later.
110+
1. Select `Web Url` as dynamic content for the **contentUrls Item - 1** field. This is the SAS URI output from the [Create SAS URI by path](#create-sas-uri-by-path) action.
111+
112+
> [!TIP]
113+
> For more information about create transcription parameters, see the [Azure Cognitive Services for Batch Speech-to-text](/connectors/cognitiveservicesspe/#create-transcription) documentation.
85114
115+
1. From the top navigation menu, select **Save**.
86116

117+
### Test the flow
87118

119+
1. From the top navigation menu, select **Flow checker**. In the side panel that appears, you shouldn't see any errors or warnings. If you do, then you should fix them before continuing.
88120
1. From the top navigation menu, save the flow and select **Test the flow**. In the window that appears, select **Test**.
121+
1. In the side panel that appears, select **Manually** and then select **Test**.
89122

123+
After a few seconds, you should see an indication that the flow is in progress.
90124

125+
:::image type="content" source="./media/power-platform/flow-progression-test-started.png" alt-text="A screenshot of the flow in progress icon." lightbox="./media/power-platform/flow-progression-test-started.png":::
91126

92-
## Upload files to the container
127+
The flow is waiting for a file to be added or modified in the Azure Blob Storage container. That's the [trigger that you configured](#configure-the-flow-trigger) earlier.
128+
129+
To trigger the test flow, upload an audio file to the Azure Blob Storage container as described next.
93130

94-
When audio files are located in an [Azure Blob Storage](../../storage/blobs/storage-blobs-overview.md) account, you can request transcription of individual audio files or an entire Azure Blob Storage container. You can also [write transcription results](batch-transcription-create.md#destination-container-url) to a Blob container.
131+
## Upload files to the container
95132

96133
Follow these steps to upload [wav, mp3, or ogg](batch-transcription-audio-data.md#supported-audio-formats) files from your local directory to the Azure Storage container that you created previously.
97134

0 commit comments

Comments
 (0)