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/ai-services/speech-service/fast-transcription-create.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: eric-urban
7
7
ms.author: eur
8
8
ms.service: azure-ai-speech
9
9
ms.topic: how-to
10
-
ms.date: 2/28/2025
10
+
ms.date: 4/15/2025
11
11
# Customer intent: As a user who implements audio transcription, I want create transcriptions as quickly as possible.
12
12
---
13
13
@@ -50,6 +50,9 @@ The following example shows how to transcribe an audio file with a specified loc
50
50
- Replace `YourServiceRegion` with your Speech resource region.
51
51
- Replace `YourAudioFile` with the path to your audio file.
52
52
53
+
> [!IMPORTANT]
54
+
> For the recommended keyless authentication with Microsoft Entra ID, replace `--header 'Ocp-Apim-Subscription-Key: YourSubscriptionKey'` with `--header "Authorization: Bearer YourAccessToken"`. For more information about keyless authentication, see the [role-based access control](./role-based-access-control.md#authentication-with-keys-and-tokens) how-to guide.
@@ -299,6 +302,9 @@ The following example shows how to transcribe an audio file with language identi
299
302
- Replace `YourServiceRegion` with your Speech resource region.
300
303
- Replace `YourAudioFile` with the path to your audio file.
301
304
305
+
> [!IMPORTANT]
306
+
> For the recommended keyless authentication with Microsoft Entra ID, replace `--header 'Ocp-Apim-Subscription-Key: YourSubscriptionKey'` with `--header "Authorization: Bearer YourAccessToken"`. For more information about keyless authentication, see the [role-based access control](./role-based-access-control.md#authentication-with-keys-and-tokens) how-to guide.
@@ -585,6 +591,9 @@ The following example shows how to transcribe an audio file with diarization ena
585
591
- Replace `YourServiceRegion` with your Speech resource region.
586
592
- Replace `YourAudioFile` with the path to your audio file.
587
593
594
+
> [!IMPORTANT]
595
+
> For the recommended keyless authentication with Microsoft Entra ID, replace `--header 'Ocp-Apim-Subscription-Key: YourSubscriptionKey'` with `--header "Authorization: Bearer YourAccessToken"`. For more information about keyless authentication, see the [role-based access control](./role-based-access-control.md#authentication-with-keys-and-tokens) how-to guide.
@@ -854,6 +863,9 @@ The following example shows how to transcribe an audio file that has one or two
854
863
- Replace `YourServiceRegion` with your Speech resource region.
855
864
- Replace `YourAudioFile` with the path to your audio file.
856
865
866
+
> [!IMPORTANT]
867
+
> For the recommended keyless authentication with Microsoft Entra ID, replace `--header 'Ocp-Apim-Subscription-Key: YourSubscriptionKey'` with `--header "Authorization: Bearer YourAccessToken"`. For more information about keyless authentication, see the [role-based access control](./role-based-access-control.md#authentication-with-keys-and-tokens) how-to guide.
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/role-based-access-control.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ A role definition is a collection of permissions. When you create an AI Services
36
36
|**Cognitive Services Data Reader (Preview)**|No |View only |Yes |
37
37
38
38
> [!IMPORTANT]
39
-
> Whether a role can list resource keys is important for [Speech Studio authentication](#speech-studio-authentication). To list resource keys, a role must have permission to run the `Microsoft.CognitiveServices/accounts/listKeys/action` operation. Please note that if key authentication is disabled in the Azure Portal, then none of the roles can list keys.
39
+
> Whether a role can list resource keys is important for [Speech Studio authentication](#speech-studio-authentication). To list resource keys, a role must have permission to run the `Microsoft.CognitiveServices/accounts/listKeys/action` operation. Please note that if key authentication is disabled in the Azure portal, then none of the roles can list keys.
40
40
41
41
Keep the built-in roles if your Speech resource can have full read and write access to the projects.
42
42
@@ -48,6 +48,43 @@ The [roles](#roles-for-speech-resources) define what permissions you have. Authe
48
48
49
49
To authenticate with Speech resource keys, all you need is the key and region. To authenticate with a Microsoft Entra token, the Speech resource must have a [custom subdomain](speech-services-private-link.md#create-a-custom-domain-name).
50
50
51
+
Here's how to create a new Azure AI Services resource with a custom subdomain. You can also use an existing resource, but it must have a custom subdomain. For more information about creating a custom subdomain, see [Create a custom domain name](speech-services-private-link.md#create-a-custom-domain-name).
52
+
53
+
```bash
54
+
resourceGroupName=my-speech-rg
55
+
location=eastus
56
+
AIServicesResourceName=my-aiservices-$location
57
+
58
+
# create an AIServices resource for Speech and other AI services
The returned `accessToken` is a Microsoft Entra token that you can use to authenticate without API keys. The token has a [limited lifetime](/entra/identity-platform/configurable-token-lifetimes#access-tokens).
75
+
76
+
Now you can use the `accessToken` to authenticate with the AI Services resource. For example, you can use the token via the [Fast transcription REST API](./fast-transcription-create.md):
For the SDK, you configure whether to authenticate with an API key or Microsoft Entra token. For details, see [Microsoft Entra authentication with the Speech SDK](how-to-configure-azure-ad-auth.md).
0 commit comments