Skip to content

Commit fb11014

Browse files
committed
draft edits
1 parent f83472e commit fb11014

File tree

2 files changed

+27
-15
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts

2 files changed

+27
-15
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/from-microphone/go/go.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ Before you get started:
2121
> * [Setup your development environment and create an empty project](../../../../quickstarts/setup-platform.md)
2222
> * Make sure that you have access to a microphone for audio capture
2323
24-
## Support and updates
25-
26-
Updates to the Speech SDK Go package are distributed via
27-
2824
## Setup your environment
2925

3026
Update the go.mod file with the latest SDK version by adding this line
@@ -101,8 +97,21 @@ func main() {
10197
}
10298
```
10399
100+
Replace the `YOUR_SUBSCRIPTION_KEY` and `YOUR_SUBSCRIPTIONKEY_REGION` values with actual values from the Speech resource.
101+
102+
- Navigate to the Azure portal, and open the Speech resource
103+
- Under the **Keys** on the left, there are two available subscription keys
104+
- Use either one as the `YOUR_SUBSCRIPTION_KEY` value replacement
105+
- Under the **Overview** on the left, note the region and map it to the region identifier
106+
- Use the Region identifier as the `YOUR_SUBSCRIPTIONKEY_REGION` value replacement, for example: `"westus"` for **West US**
107+
108+
## Code explanation
109+
The Speech subscription key and region are required to create a speech configuration object. The configuration object is needed to instantiate a speech recognizer object.
110+
111+
The recognizer instance exposes multiple ways to recognize speech. In this example, speech is continuously recognized. This functionality lets the Speech service know that you're sending many phrases for recognition, and when the program terminates to stop recognizing speech. As results are yielded, the code will write them to the console.
112+
104113
## Build and run
105-
You're now set up to build your project and test your custom voice assistant using the Speech service.
114+
You're now set up to build your project and test speech recognition using the Speech service.
106115
1. Build your project, e.g. **"go build"**
107116
2. Run the module and speak a phrase or sentence into your device's microphone. Your speech is transmitted to the Speech service and transcribed to text, which appears in the output.
108117

articles/cognitive-services/Speech-Service/includes/quickstarts/voice-assistants/go/go.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ Before you get started:
2525
> [!NOTE]
2626
> Please refer to [the list of supported regions for voice assistants](~/articles/cognitive-services/speech-service/regions.md#voice-assistants) and ensure your resources are deployed in one of those regions.
2727
28-
## Support and updates
29-
30-
Updates to the Speech SDK Go package are distributed via
31-
3228
## Setup your environment
3329

3430
Update the go.mod file with the latest SDK version by adding this line
@@ -39,7 +35,7 @@ require (
3935
```
4036

4137
## Start with some boilerplate code
42-
1. Replace the contents of your source file (e.g. `quickstart.go`) with the below, which includes:
38+
Replace the contents of your source file (e.g. `quickstart.go`) with the below, which includes:
4339

4440
- "main" package definition
4541
- importing the necessary modules from the Speech SDK
@@ -101,18 +97,25 @@ func main() {
10197
}
10298
```
10399
104-
2. Update these fields at the top of the function with your bot subscription information
105-
```sh
106-
subscription := "YOUR_SUBSCRIPTION_KEY"
107-
region := "YOUR_BOT_REGION"
108-
```
100+
Replace the `YOUR_SUBSCRIPTION_KEY` and `YOUR_BOT_REGION` values with actual values from the Speech resource.
101+
102+
- Navigate to the Azure portal, and open the Speech resource
103+
- Under the **Keys** on the left, there are two available subscription keys
104+
- Use either one as the `YOUR_SUBSCRIPTION_KEY` value replacement
105+
- Under the **Overview** on the left, note the region and map it to the region identifier
106+
- Use the Region identifier as the `YOUR_BOT_REGION` value replacement, for example: `"westus"` for **West US**
109107
110108
> [!NOTE]
111109
> Please refer to [the list of supported regions for voice assistants](~/articles/cognitive-services/speech-service/regions.md#voice-assistants) and ensure your resources are deployed in one of those regions.
112110
113111
> [!NOTE]
114112
> For information on configuring your bot, see the Bot Framework documentation for [the Direct Line Speech channel](https://docs.microsoft.com/azure/bot-service/bot-service-channel-connect-directlinespeech).
115113
114+
## Code explanation
115+
The Speech subscription key and region are required to create a speech configuration object. The configuration object is needed to instantiate a speech recognizer object.
116+
117+
The recognizer instance exposes multiple ways to recognize speech. In this example, speech is continuously recognized. This functionality lets the Speech service know that you're sending many phrases for recognition, and when the program terminates to stop recognizing speech. As results are yielded, the code will write them to the console.
118+
116119
## Build and run
117120
You're now set up to build your project and test your custom voice assistant using the Speech service.
118121
1. Build your project, e.g. **"go build"**

0 commit comments

Comments
 (0)