Skip to content

Commit 02cde6e

Browse files
authored
Merge pull request #284421 from cdpark/refresh-ai-whisper
Feature 294024: Q&M: AI Services freshness for 180d target - Whisper model
2 parents d98124d + 500f627 commit 02cde6e

File tree

6 files changed

+33
-25
lines changed

6 files changed

+33
-25
lines changed

articles/ai-services/openai/includes/whisper-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ $response = Invoke-RestMethod -Uri $url -Headers $headers -Form $form -Method Po
3636
return $response.text
3737
```
3838

39-
You can get sample audio files from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
39+
You can get sample audio files, such as *wikipediaOcelot.wav*, from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
4040

4141
> [!IMPORTANT]
42-
> For production, use a secure way of storing and accessing your credentials like [The PowerShell Secret Management with Azure Key Vault](/powershell/utility-modules/secretmanagement/how-to/using-azure-keyvault). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
42+
> For production, store and access your credentials using a secure method, such as [The PowerShell Secret Management with Azure Key Vault](/powershell/utility-modules/secretmanagement/how-to/using-azure-keyvault). For more information about credential security, see [Azure AI services security](../../security-features.md).
4343
4444
## Output
4545

articles/ai-services/openai/includes/whisper-python.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ms.date: 3/19/2024
1111

1212
### Prerequisites
1313

14-
- <a href="https://www.python.org/" target="_blank">Python 3.8 or later version</a>
15-
- The following Python libraries: os
14+
- [Python 3.8 or later](https://www.python.org)
15+
- The following Python library: os
1616

1717
### Set up
1818

@@ -34,9 +34,9 @@ pip install openai==0.28.1
3434

3535
---
3636

37-
1. Create a new Python file called quickstart.py. Then open it up in your preferred editor or IDE.
37+
1. Create a new Python file called *quickstart.py*. Then open it up in your preferred editor or IDE.
3838

39-
1. Replace the contents of quickstart.py with the following code. Modify the code to add your deployment name:
39+
1. Replace the contents of *quickstart.py* with the following code. Modify the code to add your deployment name:
4040

4141
# [OpenAI Python 1.x](#tab/python-new)
4242

@@ -63,8 +63,6 @@ pip install openai==0.28.1
6363

6464
# [OpenAI Python 0.28.1](#tab/python)
6565

66-
67-
6866
```python
6967
import openai
7068
import time
@@ -92,13 +90,16 @@ pip install openai==0.28.1
9290

9391
---
9492

95-
Run the application with the python command on your quickstart file:
93+
Run the application using the `python` command on your quickstart file:
9694

95+
```python
96+
python quickstart.py
97+
```
9798

98-
You can get sample audio files from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
99+
You can get sample audio files, such as *wikipediaOcelot.wav*, from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
99100

100101
> [!IMPORTANT]
101-
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
102+
> For production, store and access your credentials using a secure method, such as [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see [Azure AI services security](../../security-features.md).
102103
103104
## Output
104105

articles/ai-services/openai/includes/whisper-rest.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@ curl $AZURE_OPENAI_ENDPOINT/openai/deployments/YourDeploymentName/audio/transcri
2020
-F file="@./wikipediaOcelot.wav"
2121
```
2222

23-
The format of your first line of the command with an example endpoint would appear as follows `curl https://aoai-docs.openai.azure.com/openai/deployments/{YourDeploymentName}/audio/transcriptions?api-version=2024-02-01 \`.
23+
The first line of the preceding command with an example endpoint would appear as follows:
2424

25-
You can get sample audio files from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
25+
```bash
26+
curl https://aoai-docs.openai.azure.com/openai/deployments/{YourDeploymentName}/audio/transcriptions?api-version=2024-02-01 \
27+
```
28+
29+
You can get sample audio files, such as *wikipediaOcelot.wav*, from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
2630

2731
> [!IMPORTANT]
28-
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
32+
> For production, store and access your credentials using a secure method, such as [Azure Key Vault](/azure/key-vault/general/overview). For more information about credential security, see [Azure AI services security](../../security-features.md).
2933
3034
## Output
3135

7.31 KB
Loading

articles/ai-services/openai/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ items:
3838
href: dall-e-quickstart.md
3939
- name: Use your data
4040
href: use-your-data-quickstart.md
41-
- name: Whisper
41+
- name: Whisper model
4242
href: whisper-quickstart.md
4343
- name: Text to speech (preview)
4444
href: text-to-speech-quickstart.md

articles/ai-services/openai/whisper-quickstart.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: 'Speech to text with Azure OpenAI Service'
2+
title: Convert speech to text with Azure OpenAI Service
33
titleSuffix: Azure OpenAI
4-
description: Use the Azure OpenAI Whisper model for speech to text.
4+
description: Learn how to use the Azure OpenAI Whisper model for speech to text conversion.
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.custom: devx-track-python
88
ms.topic: quickstart
9-
ms.date: 3/19/2024
9+
ms.date: 8/09/2024
1010
ms.reviewer: v-baolianzou
1111
ms.author: eur
1212
author: eric-urban
@@ -16,20 +16,23 @@ zone_pivot_groups: openai-whisper
1616

1717
# Quickstart: Speech to text with the Azure OpenAI Whisper model
1818

19-
In this quickstart, you use the Azure OpenAI Whisper model for speech to text.
19+
This quickstart explains how to use the [Azure OpenAI Whisper model](../speech-service/whisper-overview.md) for speech to text conversion. The Whisper model can transcribe human speech in numerous languages, and it can also translate other languages into English.
2020

21-
The file size limit for the Azure OpenAI Whisper model is 25 MB. If you need to transcribe a file larger than 25 MB, you can use the Azure AI Speech [batch transcription](../speech-service/batch-transcription-create.md#use-a-whisper-model) API.
21+
The file size limit for the Whisper model is 25 MB. If you need to transcribe a file larger than 25 MB, you can use the Azure AI Speech [batch transcription](../speech-service/batch-transcription-create.md#use-a-whisper-model) API.
22+
23+
> [!NOTE]
24+
> The OpenAI Whisper model is currently in Limited Access Public Preview.
2225
2326
## Prerequisites
2427

25-
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true).
26-
- An Azure OpenAI resource with a `whisper` model deployed in a supported region. [Whisper model regional availability](./concepts/models.md#whisper-models). For more information, see [Create a resource and deploy a model with Azure OpenAI](how-to/create-resource.md).
28+
- An Azure subscription. You can [create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true).
29+
- An Azure OpenAI resource with a Whisper model deployed in a [supported region](./concepts/models.md#whisper-models). For more information, see [Create a resource and deploy a model with Azure OpenAI](how-to/create-resource.md).
2730

2831
## Set up
2932

3033
### Retrieve key and endpoint
3134

32-
To successfully make a call against Azure OpenAI, you'll need an **endpoint** and a **key**.
35+
To successfully make a call against Azure OpenAI, you need an *endpoint* and a *key*.
3336

3437
|Variable name | Value |
3538
|--------------------------|-------------|
@@ -105,5 +108,5 @@ If you want to clean up and remove an Azure OpenAI resource, you can delete the
105108

106109
## Next steps
107110

108-
* Learn more about how to work with Whisper models with the Azure AI Speech [batch transcription](../speech-service/batch-transcription-create.md) API.
109-
* For more examples, check out the [Azure OpenAI Samples GitHub repository](https://aka.ms/AOAICodeSamples)
111+
* To learn how to convert audio data to text in batches, see [Create a batch transcription](../speech-service/batch-transcription-create.md).
112+
* For more examples, check out the [Azure OpenAI Samples GitHub repository](https://aka.ms/AOAICodeSamples).

0 commit comments

Comments
 (0)