Skip to content

Commit 6bc57e4

Browse files
Minor edits.
1 parent 6374fa9 commit 6bc57e4

File tree

12 files changed

+33
-34
lines changed

12 files changed

+33
-34
lines changed

articles/ai-services/speech-service/includes/common/environment-variables.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ ms.date: 08/24/2023
77
ms.author: eur
88
---
99

10-
Your application must be authenticated to access Azure AI services resources. For production, use a secure way of storing and accessing your credentials. For example, after you [get a key](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource) for your <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices" title="Create a Speech resource" target="_blank">Speech resource</a>, write it to a new environment variable on the local machine that runs the application.
10+
Your application must be authenticated to access Azure AI services resources. For production, use a secure way of storing and accessing your credentials. For example, after you [get a key](~/articles/ai-services/multi-service-resource.md?pivots=azportal#get-the-keys-for-your-resource) for your Speech resource, write it to a new environment variable on the local machine that runs the application.
1111

1212
> [!TIP]
1313
> Don't include the key directly in your code, and never post it publicly. See [Azure AI services security](../../../security-features.md) article for more authentication options such as [Azure Key Vault](../../../use-key-vault.md).
1414
1515
To set the environment variable for your Speech resource key, open a console window, and follow the instructions for your operating system and development environment.
1616

17-
- To set the `SPEECH_KEY` environment variable, replace `your-key` with one of the keys for your resource.
18-
- To set the `SPEECH_REGION` environment variable, replace `your-region` with one of the regions for your resource.
17+
- To set the `SPEECH_KEY` environment variable, replace *your-key* with one of the keys for your resource.
18+
- To set the `SPEECH_REGION` environment variable, replace *your-region* with one of the regions for your resource.
1919

2020
#### [Windows](#tab/windows)
2121

@@ -25,9 +25,9 @@ setx SPEECH_REGION your-region
2525
```
2626

2727
> [!NOTE]
28-
> If you only need to access the environment variable in the current running console, you can set the environment variable with `set` instead of `setx`.
28+
> If you only need to access the environment variables in the current console, you can set the environment variable with `set` instead of `setx`.
2929
30-
After you add the environment variables, you might need to restart any running programs that need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before running the example.
30+
After you add the environment variables, you might need to restart any programs that need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before you run the example.
3131

3232
#### [Linux](#tab/linux)
3333

@@ -42,7 +42,7 @@ After you add the environment variables, run `source ~/.bashrc` from your consol
4242

4343
##### Bash
4444

45-
Edit your *.bash_profile*, and add the environment variables:
45+
Edit your *.bash_profile* file, and add the environment variables:
4646

4747
```bash
4848
export SPEECH_KEY=your-key
@@ -62,5 +62,5 @@ For iOS and macOS development, you set the environment variables in Xcode. For e
6262

6363
To set the environment variable for your Speech resource region, follow the same steps. Set `SPEECH_REGION` to the region of your resource. For example, `westus`.
6464

65-
For more configuration options, see the [Xcode documentation](https://help.apple.com/xcode/#/dev745c5c974).
65+
For more configuration options, see [Configuration Settings File (xcconfig) format](https://help.apple.com/xcode/#/dev745c5c974).
6666
***

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ms.author: eur
2424
spx recognize --microphone --source en-US
2525
```
2626

27-
1. Speak into the microphone, and you see transcription of your words into text in real-time. The Speech CLI stops after a period of silence, 30 seconds, or when you press Ctrl+C.
27+
1. Speak into the microphone, and you see transcription of your words into text in real-time. The Speech CLI stops after a period of silence, 30 seconds, or when you select **Ctrl**+**C**.
2828

2929
```output
3030
Connection CONNECTED...

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ ms.author: eur
1616

1717
## Set up the environment
1818

19-
The Speech SDK is available as a [NuGet package](https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech) and implements .NET Standard 2.0. You install the Speech SDK later in this guide. For any other requirements, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-cpp).
19+
The Speech SDK is available as a [NuGet package](https://www.nuget.org/packages/Microsoft.CognitiveServices.Speech) and implements .NET Standard 2.0. You install the Speech SDK later in this guide. For other requirements, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-cpp).
2020

2121
### Set environment variables
2222

2323
[!INCLUDE [Environment variables](../../common/environment-variables.md)]
2424

2525
## Recognize speech from a microphone
2626

27-
Follow these steps to create a new console application and install the Speech SDK.
27+
Follow these steps to create a console application and install the Speech SDK.
2828

2929
1. Create a new C++ console project in Visual Studio Community 2022 named `SpeechRecognition`.
3030
1. Install the Speech SDK in your new project with the NuGet package manager.
@@ -114,7 +114,7 @@ Follow these steps to create a new console application and install the Speech SD
114114
> [!IMPORTANT]
115115
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
116116
117-
1. Speak into your microphone when prompted. What you speak should be output as text:
117+
1. Speak into your microphone when prompted. What you speak should appear as text:
118118
119119
```output
120120
Speak into your microphone.

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The Speech SDK is available as a [NuGet package](https://www.nuget.org/packages/
2424

2525
## Recognize speech from a microphone
2626

27-
Follow these steps to create a new console application and install the Speech SDK.
27+
Follow these steps to create a console application and install the Speech SDK.
2828

2929
1. Open a command prompt where you want the new project. Create a console application with the .NET CLI, which creates the *Program.cs* file in the project directory.
3030

@@ -103,7 +103,7 @@ Follow these steps to create a new console application and install the Speech SD
103103
> [!IMPORTANT]
104104
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
105105
106-
1. Speak into your microphone when prompted. What you speak should be output as text:
106+
1. Speak into your microphone when prompted. What you speak should appear as text:
107107

108108
```output
109109
Speak into your microphone.

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/go.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install the [Speech SDK for Go](../../../quickstarts/setup-platform.md?pivots=pr
2424

2525
## Recognize speech from a microphone
2626

27-
Follow these steps to create a new GO module.
27+
Follow these steps to create a GO module.
2828

2929
1. Open a command prompt where you want the new module, and create a new file named *speech-recognition.go*.
3030
1. Copy the following code into *speech-recognition.go*:
@@ -111,7 +111,7 @@ Follow these steps to create a new GO module.
111111
> [!IMPORTANT]
112112
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
113113
114-
1. Now build and run the code:
114+
1. Build and run the code:
115115

116116
```cmd
117117
go build

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/java.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ms.author: eur
1919
Before you can do anything, you need to install the Speech SDK. The sample in this quickstart works with the [Java Runtime](~/articles/ai-services/speech-service/quickstarts/setup-platform.md?pivots=programming-language-java&tabs=jre).
2020

2121
1. Install [Apache Maven](https://maven.apache.org/install.html). Then run `mvn -v` to confirm successful installation.
22-
1. Create a new `pom.xml` file in the root of your project, and copy the following into it:
22+
1. Create a new `pom.xml` file in the root of your project, and copy the following code into it:
2323

2424
```xml
2525
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -62,7 +62,7 @@ Before you can do anything, you need to install the Speech SDK. The sample in th
6262

6363
## Recognize speech from a microphone
6464

65-
Follow these steps to create a new console application for speech recognition.
65+
Follow these steps to create a console application for speech recognition.
6666

6767
1. Create a new file named *SpeechRecognition.java* in the same project root directory.
6868
1. Copy the following code into *SpeechRecognition.java*:
@@ -117,7 +117,7 @@ Follow these steps to create a new console application for speech recognition.
117117

118118
1. To change the speech recognition language, replace `en-US` with another [supported language](~/articles/ai-services/speech-service/language-support.md). For example, `es-ES` for Spanish (Spain). If you don't specify a language, the default is `en-US`. For details about how to identify one of multiple languages that might be spoken, see [language identification](~/articles/ai-services/speech-service/language-identification.md).
119119

120-
Run your new console application to start speech recognition from a microphone:
120+
1. Run your new console application to start speech recognition from a microphone:
121121

122122
```console
123123
javac SpeechRecognition.java -cp ".;target\dependency\*"
@@ -127,9 +127,9 @@ Follow these steps to create a new console application for speech recognition.
127127
> [!IMPORTANT]
128128
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
129129
130-
1. Speak into your microphone when prompted. What you speak should be output as text:
130+
1. Speak into your microphone when prompted. What you speak should appear as text:
131131

132-
```console
132+
```output
133133
Speak into your microphone.
134134
RECOGNIZED: Text=I'm excited to try speech to text.
135135
```

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You also need a *.wav* audio file on your local machine. You can use your own *.
1818

1919
## Set up the environment
2020

21-
Before you can do anything, you need to install the Speech SDK for JavaScript. If you just want the package name to install, run `npm install microsoft-cognitiveservices-speech-sdk`. For guided installation instructions, see the [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-javascript).
21+
Before you can do anything, you need to install the Speech SDK for JavaScript. Run this command: `npm install microsoft-cognitiveservices-speech-sdk`. For guided installation instructions, see the [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-javascript).
2222

2323
### Set environment variables
2424

@@ -88,7 +88,7 @@ Follow these steps to create a Node.js console application for speech recognitio
8888
8989
The speech from the audio file should be output as text:
9090

91-
```console
91+
```output
9292
RECOGNIZED: Text=I'm excited to try speech to text.
9393
```
9494

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/objectivec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ The Speech SDK can be used in Xcode projects as a [CocoaPod](https://cocoapods.o
2929
Follow these steps to recognize speech in a macOS application.
3030

3131
1. Clone the [Azure-Samples/cognitive-services-speech-sdk](https://github.com/Azure-Samples/cognitive-services-speech-sdk) repository to get the [Recognize speech from a microphone in Objective-C on macOS](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/objectivec/macos/from-microphone) sample project. The repository also has iOS samples.
32-
1. Navigate to the directory of the downloaded sample app (`helloworld`) in a terminal.
33-
1. Run the command `pod install`. This command generates a `helloworld.xcworkspace` Xcode workspace containing both the sample app and the Speech SDK as a dependency.
32+
1. In a console window, navigate to the directory of the downloaded sample app, *helloworld*.
33+
1. Run the command `pod install`. This command generates a `helloworld.xcworkspace` Xcode workspace that contains both the sample app and the Speech SDK as a dependency.
3434
1. Open the `helloworld.xcworkspace` workspace in Xcode.
3535
1. Open the file named *AppDelegate.m* and locate the `buttonPressed` method as shown here.
3636

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/python.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ ms.author: eur
1818

1919
The Speech SDK for Python is available as a [Python Package Index (PyPI) module](https://pypi.org/project/azure-cognitiveservices-speech/). The Speech SDK for Python is compatible with Windows, Linux, and macOS.
2020

21-
- You must install the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](/cpp/windows/latest-supported-vc-redist?view=msvc-170&preserve-view=true) for your platform. Installing this package for the first time might require a restart.
21+
- For Windows, install the [Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022](/cpp/windows/latest-supported-vc-redist?view=msvc-170&preserve-view=true) for your platform. Installing this package for the first time might require a restart.
2222
- On Linux, you must use the x64 target architecture.
2323

24-
Install a version of [Python from 3.7 or later](https://www.python.org/downloads/). For any other requirements, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-python).
24+
Install a version of [Python from 3.7 or later](https://www.python.org/downloads/). For other requirements, see [Install the Speech SDK](../../../quickstarts/setup-platform.md?pivots=programming-language-python).
2525

2626
### Set environment variables
2727

2828
[!INCLUDE [Environment variables](../../common/environment-variables.md)]
2929

3030
## Recognize speech from a microphone
3131

32-
Follow these steps to create a new console application.
32+
Follow these steps to create a console application.
3333

3434
1. Open a command prompt where you want the new project, and create a new file named *speech_recognition.py*.
3535
1. Run this command to install the Speech SDK:
@@ -80,9 +80,9 @@ Follow these steps to create a new console application.
8080
> [!IMPORTANT]
8181
> Make sure that you set the `SPEECH_KEY` and `SPEECH_REGION` environment variables as described in [Set environment variables](#set-environment-variables). If you don't set these variables, the sample fails with an error message.
8282
83-
1. Speak into your microphone when prompted. What you speak should be output as text:
83+
1. Speak into your microphone when prompted. What you speak should appear as text:
8484

85-
```console
85+
```output
8686
Speak into your microphone.
8787
RECOGNIZED: Text=I'm excited to try speech to text.
8888
```

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/rest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ ms.author: eur
1414

1515
[!INCLUDE [Prerequisites](../../common/azure-prerequisites.md)]
1616

17-
You also need a *.wav* audio file on your local machine. You can use your own *.wav* file (up to 60 seconds) or download the [https://crbn.us/whatstheweatherlike.wav](https://crbn.us/whatstheweatherlike.wav) sample file.
17+
You also need a *.wav* audio file on your local machine. You can use your own *.wav* file up to 60 seconds or download the [https://crbn.us/whatstheweatherlike.wav](https://crbn.us/whatstheweatherlike.wav) sample file.
1818

1919
### Set environment variables
2020

2121
[!INCLUDE [Environment variables](../../common/environment-variables.md)]
2222

2323
## Recognize speech from a file
2424

25-
At a command prompt, run the following cURL command. Replace *YourAudioFile.wav* with the path and name of your audio file.
25+
Open a console window and run the following cURL command. Replace *YourAudioFile.wav* with the path and name of your audio file.
2626

2727
# [Windows](#tab/windows)
2828

0 commit comments

Comments
 (0)