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/openai/includes/dall-e-rest.md
+96-2Lines changed: 96 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Use this guide to get started calling the Azure OpenAI in Azure AI Foundry Model
18
18
- <ahref="https://www.python.org/"target="_blank">Python 3.8 or later version</a>.
19
19
- The following Python libraries installed: `os`, `requests`, `json`.
20
20
- An Azure OpenAI resource created in a supported region. See [Region availability](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability).
21
-
- Then, you need to deploy a `dalle3` model with your Azure resource. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
21
+
- Then, you need to deploy a `gpt-image-1` or `dalle3` model with your Azure resource. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
22
22
23
23
## Setup
24
24
@@ -41,6 +41,98 @@ Go to your resource in the Azure portal. On the navigation pane, select **Keys a
41
41
42
42
Create a new Python file named _quickstart.py_. Open the new file in your preferred editor or IDE.
43
43
44
+
#### [GPT-image-1](#tab/gpt-image-1)
45
+
46
+
1. Replace the contents of _quickstart.py_ with the following code. Change the value of `prompt` to your preferred text. Also set `deployment` to the deployment name you chose when you deployed the GPT-image-1 model.
The script makes a synchronous image generation API call.
119
+
120
+
> [!IMPORTANT]
121
+
> Remember to remove the key from your code when you're done, and never post your key publicly. For production, use a secure way of storing and accessing your credentials. For more information, see [Azure Key Vault](/azure/key-vault/general/overview).
122
+
123
+
1. Run the application with the `python` command:
124
+
125
+
```console
126
+
python quickstart.py
127
+
```
128
+
129
+
Wait a few moments to get the response.
130
+
131
+
132
+
133
+
#### [DALL-E](#tab/dall-e-3)
134
+
135
+
44
136
1. Replace the contents of _quickstart.py_ with the following code. Change the value of `prompt` to your preferred text.
45
137
46
138
You also need to replace `<dalle3>`in the URLwith the deployment name you chose when you deployed the DALL-E 3 model. Entering the model name will result in an error unless you chose a deployment name that is identical to the underlying model name. If you encounter an error, double check to make sure that you don't have a doubling of the `/` at the separation between your endpoint and `/openai/deployments`.
@@ -83,6 +175,8 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
83
175
84
176
Wait a few moments to get the response.
85
177
178
+
---
179
+
86
180
## Output
87
181
88
182
The output from a successful image generation API call looks like the following example. The `url` field contains a URL where you can download the generated image. The URL stays active for24 hours.
@@ -99,7 +193,7 @@ The output from a successful image generation API call looks like the following
99
193
}
100
194
```
101
195
102
-
The Image APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md). For examples of error responses, see the [DALL-E how-to guide](../how-to/dall-e.md).
196
+
The Image APIs come with a content moderation filter. If the service recognizes your prompt as harmful content, it doesn't generate an image. For more information, see [Content filtering](../concepts/content-filter.md). For examples of error responses, see the [Image generation how-to guide](../how-to/dall-e.md).
103
197
104
198
The system returns an operation status of `Failed`and the `error.code` value in the message isset to `contentFilter`. Here's an example:
You can find ready to use embedded speech samples at [GitHub](https://aka.ms/embedded-speech-samples). For remarks on projects from scratch, see samples specific documentation:
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/includes/release-notes/release-notes-sdk.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -893,7 +893,7 @@ This table shows the previous and new object names for real-time diarization and
893
893
### Speech SDK 1.16.0: 2021-March release
894
894
895
895
> [!NOTE]
896
-
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Download it [here](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads).
896
+
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
897
897
898
898
#### New features
899
899
@@ -938,7 +938,7 @@ This table shows the previous and new object names for real-time diarization and
938
938
### Speech SDK 1.15.0: 2021-January release
939
939
940
940
> [!NOTE]
941
-
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Download it [here](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads).
941
+
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
942
942
943
943
#### Highlights summary
944
944
- Smaller memory and disk footprint making the SDK more efficient.
@@ -992,7 +992,7 @@ This table shows the previous and new object names for real-time diarization and
992
992
### Speech SDK 1.14.0: 2020-October release
993
993
994
994
> [!NOTE]
995
-
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Download it [here](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads).
995
+
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
996
996
997
997
#### New features
998
998
-**Linux**: Added support for Debian 10 and Ubuntu 20.04 LTS.
@@ -1040,7 +1040,7 @@ Stay healthy!
1040
1040
### Speech SDK 1.13.0: 2020-July release
1041
1041
1042
1042
> [!NOTE]
1043
-
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Download and install it from [here](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads).
1043
+
> The Speech SDK on Windows depends on the shared Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
1044
1044
1045
1045
#### New features
1046
1046
-**C#**: Added support for asynchronous conversation transcription. See documentation [here](../../get-started-stt-diarization.md).
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/includes/spx-setup.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.author: eur
12
12
Follow these steps to install the Speech CLI on Windows:
13
13
14
14
1. Install the [Microsoft Visual C++ Redistributable for Visual Studio](/cpp/windows/latest-supported-vc-redist#latest-microsoft-visual-c-redistributable-version) for your platform. Installing it for the first time might require a restart.
0 commit comments