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
> On RHEL/CentOS 8, follow the instructions on [how to configure OpenSSL for Linux](~/articles/cognitive-services/speech-service/how-to-configure-openssl-linux.md).
48
42
43
+
---
44
+
49
45
* On Windows, you need the [Microsoft Visual C++ Redistributable for Visual Studio 2019](https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads) for your platform.
50
46
51
47
## Install the Speech SDK
@@ -54,7 +50,7 @@ ms.author: chlandsi
54
50
55
51
This command installs the Python package from [PyPI](https://pypi.org/) for the Speech SDK:
56
52
57
-
```sh
53
+
```Bash
58
54
pip install azure-cognitiveservices-speech
59
55
```
60
56
@@ -72,16 +68,15 @@ If you have a problem, or you're missing a feature, see [Support and help option
72
68
73
69
You can copy the [sample code](#sample-code) from this quickstart to a source file `quickstart.py` and run it in your IDE or in the console:
74
70
75
-
```sh
71
+
```Bash
76
72
python quickstart.py
77
73
```
78
74
79
75
Or you can download this quickstart tutorial as a [Jupyter](https://jupyter.org) notebook from the [Speech SDK sample repository](https://github.com/Azure-Samples/cognitive-services-speech-sdk/) and run it as a notebook.
80
76
81
77
### Sample code
82
78
83
-
````Python
84
-
79
+
````python
85
80
import azure.cognitiveservices.speech as speechsdk
86
81
87
82
# Replace with your own subscription key and region identifier from here: https://aka.ms/speech/sdkregion
1. Copy, paste, and save the [Python code](#sample-code) to the newly created file.
134
129
1. Insert your Speech service subscription information.
135
130
1. If selected, a Python interpreter displays on the left side of the status bar at the bottom of the window.
136
-
Otherwise, bring up a list of available Python interpreters. Open the command palette (Ctrl+Shift+P) and enter **Python: Select Interpreter**. Choose an appropriate one.
131
+
Otherwise, bring up a list of available Python interpreters. Open the command palette (<kbd>Ctrl+Shift+P</kbd>) and enter **Python: Select Interpreter**. Choose an appropriate one.
137
132
1. You can install the Speech SDK Python package from within Visual Studio Code. Do that if it's not installed yet for the Python interpreter you selected.
138
-
To install the Speech SDK package, open a terminal. Bring up the command palette again (Ctrl+Shift+P) and enter **Terminal: Create New Integrated Terminal**.
133
+
To install the Speech SDK package, open a terminal. Bring up the command palette again (<kbd>Ctrl+Shift+P</kbd>) and enter **Terminal: Create New Integrated Terminal**.
139
134
In the terminal that opens, enter the command `python -m pip install azure-cognitiveservices-speech` or the appropriate command for your system.
140
135
1. To run the sample code, right-click somewhere inside the editor. Select **Run Python File in Terminal**.
141
136
Your text is converted to speech, and saved in the audio data specified.
142
137
143
-
```text
138
+
```console
144
139
Speech synthesized to [helloworld.wav] for text [Hello world!]
0 commit comments