You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/power-automate-batch-transcription.md
+42-5Lines changed: 42 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ You'll [upload files to the container](#upload-files-to-the-container) after the
45
45
46
46
## Create a Power Automate flow
47
47
48
+
### Create a new flow
49
+
48
50
1.[Sign in to power automate](https://make.powerautomate.com/)
49
51
1. From the collapsible menu on the left, select **Create**.
50
52
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
53
55
54
56
1. In the **Build an automated cloud flow** dialog, enter a name for your flow such as "BatchSTT".
55
57
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.
57
62
1. Under the **Azure Blob Storage** connector, select the **When a blob is added or modified** trigger.
58
63
59
64
:::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
69
74
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.
70
75
1. Under **Container** select the folder icon. Choose the container that you [created previously](#create-the-azure-blob-storage-container).
71
76
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
+
72
83
1. Select **+ New step** to begin adding a new operation for the Azure Blob Storage connector.
73
84
1. Enter "blob" in the search connectors and actions box to narrow the results.
74
85
1. Under the **Azure Blob Storage** connector, select the **Create SAS URI by path** trigger.
75
86
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.
76
87
1. Select `Path` as dynamic content for the **Blob path** field.
77
88
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
+
78
95
1. Select **+ New step** to begin adding a new operation for the [Azure Cognitive Services for Batch Speech-to-text connector](/connectors/cognitiveservicesspe/).
79
96
1. Enter "batch speech-to-text" in the search connectors and actions box to narrow the results.
80
97
1. Select the **Azure Cognitive Services for Batch Speech-to-text** connector.
81
98
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.
82
104
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.
85
114
115
+
1. From the top navigation menu, select **Save**.
86
116
117
+
### Test the flow
87
118
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.
88
120
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**.
89
122
123
+
After a few seconds, you should see an indication that the flow is in progress.
90
124
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":::
91
126
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.
93
130
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
95
132
96
133
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.
0 commit comments