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/includes/how-to/text-to-speech-basics/text-to-speech-basics-python.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
author: eric-urban
3
3
ms.service: cognitive-services
4
4
ms.topic: include
5
-
ms.date: 07/02/2021
5
+
ms.date: 01/16/2022
6
6
ms.author: eur
7
7
---
8
8
@@ -43,7 +43,7 @@ There are a few ways that you can initialize a [`SpeechConfig`](/python/api/azur
43
43
In this example, you create a [`SpeechConfig`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechconfig) using a speech key and location/region. Get these credentials by following steps in [Try the Speech service for free](../../../overview.md#try-the-speech-service-for-free).
Next, instantiate a `SpeechSynthesizer` by passing your `speech_config` object and the `audio_config` object as params. Then, executing speech synthesis and writing to a file is as simple as running `speak_text_async()` with a string of text.
synthesizer.speak_text_async("A simple test to write to a file.")
78
78
```
79
79
@@ -84,7 +84,7 @@ Run the program, and a synthesized `.wav` file is written to the location you sp
84
84
In some cases, you may want to directly output synthesized speech directly to a speaker. To do this, use the example in the previous section, but change the `AudioOutputConfig` by removing the `filename` param, and set `use_default_speaker=True`. This outputs to the current active output device.
@@ -103,7 +103,7 @@ It's simple to make this change from the previous example. First, remove the `Au
103
103
This time, you save the result to a [`SpeechSynthesisResult`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.speechsynthesisresult) variable. The `audio_data` property contains a `bytes` object of the output data. You can work with this object manually, or you can use the [`AudioDataStream`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.audiodatastream) class to manage the in-memory stream. In this example you use the `AudioDataStream` constructor to get a stream from the result.
result = synthesizer.speak_ssml_async(ssml_string).get()
165
165
166
-
stream = AudioDataStream(result)
166
+
stream =speechsdk.AudioDataStream(result)
167
167
stream.save_to_wav_file("path/to/write/file.wav")
168
168
```
169
169
170
170
> [!NOTE]
171
-
> To change the voice without using SSML, you can set the property on the `SpeechConfig` by using `SpeechConfig.speech_synthesis_voice_name = "en-US-JennyNeural"`
171
+
> To change the voice without using SSML, you can set the property on the `SpeechConfig` by using `speech_config.speech_synthesis_voice_name = "en-US-JennyNeural"`
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/deploy-vulnerability-assessment-byol-vm.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Supported solutions report vulnerability data to the partner's management platfo
35
35
36
36
1. From Defender for Cloud's menu, open the **Recommendations** page.
37
37
38
-
1. Select the recommendation **A vulnerability assessment solution should be enabled on your virtual machines**.
38
+
1. Select the recommendation **Machines should have a vulnerability assessment solution**.
39
39
40
40
:::image type="content" source="./media/deploy-vulnerability-assessment-vm/recommendation-page-machine-groupings.png" alt-text="The groupings of the machines in the **A vulnerability assessment solution should be enabled on your virtual machines** recommendation page" lightbox="./media/deploy-vulnerability-assessment-vm/recommendation-page-machine-groupings.png":::
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/deploy-vulnerability-assessment-vm.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ The vulnerability scanner extension works as follows:
71
71
72
72
1. From Defender for Cloud's menu, open the **Recommendations** page.
73
73
74
-
1. Select the recommendation **A vulnerability assessment solution should be enabled on your virtual machines**.
74
+
1. Select the recommendation **Machines should have a vulnerability assessment solution**.
75
75
76
76
:::image type="content" source="./media/deploy-vulnerability-assessment-vm/recommendation-page-machine-groupings.png" alt-text="The groupings of the machines in the recommendation page." lightbox="./media/deploy-vulnerability-assessment-vm/recommendation-page-machine-groupings.png":::
77
77
@@ -110,7 +110,7 @@ The vulnerability scanner extension works as follows:
110
110
> - If you haven't got a third-party vulnerability scanner configured, you won't be offered the opportunity to deploy it.
111
111
> - If your selected machines aren't protected by Microsoft Defender for servers, the Defender for Cloud integrated vulnerability scanner option won't be available.
112
112
113
-
:::image type="content" source="./media/deploy-vulnerability-assessment-vm/recommendation-remediation-options-builtin.png" alt-text="The options for which type of remediation flow you want to choose when responding to the recommendation **A vulnerability assessment solution should be enabled on your virtual machines** recommendation page":::
113
+
:::image type="content" source="./media/deploy-vulnerability-assessment-vm/recommendation-remediation-options-builtin.png" alt-text="The options for which type of remediation flow you want to choose when responding to the recommendation ** Machines should have a vulnerability assessment solution** recommendation page":::
114
114
115
115
1. Choose the recommended option, **Deploy integrated vulnerability scanner**, and **Proceed**.
0 commit comments