Skip to content

Commit d6c2b6c

Browse files
authored
Merge pull request #100951 from IEvangelist/speechQuickstart1656542
[CogSvcs] added specific instructions for replacing values
2 parents 870ee25 + 454de20 commit d6c2b6c

File tree

5 files changed

+60
-61
lines changed

5 files changed

+60
-61
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/cpp/windows.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
---
2-
title: "Quickstart: Recognize speech stored in blob storage, C++ - Speech service"
3-
titleSuffix: Azure Cognitive Services
4-
description: TBD
5-
services: cognitive-services
6-
author: erhopf
7-
manager: nitinme
2+
author: IEvangelist
83
ms.service: cognitive-services
9-
ms.subservice: speech-service
104
ms.topic: include
11-
ms.date: 10/28/2019
12-
ms.author: erhopf
13-
zone_pivot_groups: programming-languages-set-two
5+
ms.date: 01/13/2020
6+
ms.author: dapine
147
---
158

169
## Prerequisites
1710

1811
Before you get started, make sure to:
1912

2013
> [!div class="checklist"]
21-
> * [Create an Azure Speech Resource](../../../../get-started.md)
22-
> * [Upload a source file to an azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
23-
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=dotnet)
24-
> * [Create an empty sample project](../../../../quickstarts/create-project.md?tabs=dotnet)
14+
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=linux&pivots=programmming-language-cpp)
15+
> * [Create an empty sample project](../../../../quickstarts/create-project.md?pivots=programmming-language-cpp)
16+
> * [Create an Azure Speech resource](../../../../get-started.md)
17+
> * [Upload a source file to an Azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
2518
2619
## Open your project in Visual Studio
2720

@@ -50,7 +43,8 @@ vcpkg install nlohmann-json
5043
Let's add some code that works as a skeleton for our project.
5144

5245
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=7-32,187-190,300-309)]
53-
(You'll need to replace the values of `YourSubscriptionKey`, `YourServiceRegion`, and `YourFileUrl` with your own values.)
46+
47+
[!INCLUDE [placeholder-replacements](../placeholder-replacement.md)]
5448

5549
## JSON Wrappers
5650

articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/csharp/dotnet.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
---
2-
title: "Quickstart: Recognize speech stored in blob storage, C# - Speech service"
3-
titleSuffix: Azure Cognitive Services
4-
description: TBD
5-
services: cognitive-services
6-
author: erhopf
7-
manager: nitinme
2+
author: IEvangelist
83
ms.service: cognitive-services
9-
ms.subservice: speech-service
104
ms.topic: include
11-
ms.date: 10/28/2019
12-
ms.author: erhopf
13-
zone_pivot_groups: programming-languages-set-two
5+
ms.date: 01/13/2020
6+
ms.author: dapine
147
---
158

169
## Prerequisites
1710

1811
Before you get started, make sure to:
1912

2013
> [!div class="checklist"]
21-
> * [Create an Azure Speech Resource](../../../../get-started.md)
22-
> * [Upload a source file to an azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
23-
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=dotnet)
24-
> * [Create an empty sample project](../../../../quickstarts/create-project.md?tabs=dotnet)
14+
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=vs&pivots=programmming-language-csharp)
15+
> * [Create an empty sample project](../../../../quickstarts/create-project.md?pivots=programmming-language-csharp)
16+
> * [Create an Azure Speech resource](../../../../get-started.md)
17+
> * [Upload a source file to an Azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
2518
2619
## Open your project in Visual Studio
2720

@@ -30,7 +23,7 @@ The first step is to make sure that you have your project open in Visual Studio.
3023
1. Launch Visual Studio 2019.
3124
2. Load your project and open `Program.cs`.
3225

33-
## Add a reference to NewtonSoftJSon
26+
## Add a reference to Newtonsoft.Json
3427

3528
1. In the Solution Explorer, right-click the **helloworld** project, and then select **Manage NuGet Packages** to show the NuGet Package Manager.
3629

@@ -40,7 +33,7 @@ The first step is to make sure that you have your project open in Visual Studio.
4033

4134
1. In the search box, type *newtonsoft.json* and select **Enter**.
4235

43-
1. From the search results, select the **Newtonsoft.Json** package, and then select **Install** to install the latest stable version.
36+
1. From the search results, select the [**Newtonsoft.Json**](https://www.nuget.org/packages/Newtonsoft.Json) package, and then select **Install** to install the latest stable version.
4437

4538
1. Accept all agreements and licenses to start the installation.
4639

@@ -51,7 +44,9 @@ The first step is to make sure that you have your project open in Visual Studio.
5144
Let's add some code that works as a skeleton for our project.
5245

5346
[!code-csharp[](~/samples-cognitive-services-speech-sdk/quickstart/csharp/dotnet/from-blob/program.cs?range=6-43,138,277)]
54-
(You'll need to replace the values of `YourSubscriptionKey`, `YourServiceRegion`, and `YourFileUrl` with your own values.)
47+
48+
[!INCLUDE [placeholder-replacements](../placeholder-replacement.md)]
49+
5550
## JSON Wrappers
5651

5752
As the REST API's take requests in JSON format and also return results in JSON we could interact with them using only strings, but that's not recommended.

articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/java/jre.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
---
2-
title: "Quickstart: Recognize speech stored in blob storage, Java - Speech service"
3-
titleSuffix: Azure Cognitive Services
4-
description: TBD
5-
services: cognitive-services
6-
author: erhopf
7-
manager: nitinme
2+
author: IEvangelist
83
ms.service: cognitive-services
9-
ms.subservice: speech-service
104
ms.topic: include
11-
ms.date: 10/28/2019
12-
ms.author: erhopf
13-
zone_pivot_groups: programming-languages-set-two
5+
ms.date: 01/13/2020
6+
ms.author: dapine
147
---
158

169
## Prerequisites
1710

1811
Before you get started, make sure to:
1912

2013
> [!div class="checklist"]
21-
> * [Create an Azure Speech Resource](../../../../get-started.md)
22-
> * [Upload a source file to an azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
23-
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=dotnet)
24-
> * [Create an empty sample project](../../../../quickstarts/create-project.md?tabs=dotnet)
14+
> * [Setup your development environment](../../../../quickstarts/setup-platform.md?tabs=jre&pivots=programmming-language-java)
15+
> * [Create an empty sample project](../../../../quickstarts/create-project.md?pivots=programmming-language-java)
16+
> * [Create an Azure Speech resource](../../../../get-started.md)
17+
> * [Upload a source file to an Azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
18+
2519

2620
## Open your project in Eclipse
2721

@@ -41,7 +35,8 @@ Open your pom.xml and add the following reference:
4135
Let's add some code that works as a skeleton for our project.
4236

4337
[!code-java[](~/samples-cognitive-services-speech-sdk/quickstart/java/jre/from-blob/src/quickstart/Main.java?range=1-13,95-105,206-207)]
44-
(You'll need to replace the values of `YourSubscriptionKey`, `YourServiceRegion`, and `YourFileUrl` with your own values.)
38+
39+
[!INCLUDE [placeholder-replacements](../placeholder-replacement.md)]
4540

4641
## JSON Wrappers
4742

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Quickstart: Recognize speech stored in blob storage - Speech service"
3+
titleSuffix: Azure Cognitive Services
4+
services: cognitive-services
5+
author: IEvangelist
6+
manager: nitinme
7+
ms.service: cognitive-services
8+
ms.subservice: speech-service
9+
ms.topic: include
10+
ms.date: 01/13/2020
11+
ms.author: dapine
12+
---
13+
14+
You'll need to replace the following values:
15+
16+
- `YourSubscriptionKey`: found in the the **Keys** page of the Azure portal for the Speech resource
17+
- `YourServiceRegion`: found in the the **Overview** page of the Azure portal for the Speech resource
18+
- `YourFileUrl`: found in under the **Blob service / Containers** page of the Azure portal for the Storage account resource
19+
- Select the appropriate container
20+
- Select the desired blob
21+
- Copy the **URL** under the **Properties** page

articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/python/python.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
---
2-
title: "Quickstart: Recognize speech stored in blob storage, C# - Speech service"
3-
titleSuffix: Azure Cognitive Services
4-
description: TBD
5-
services: cognitive-services
6-
author: erhopf
7-
manager: nitinme
2+
author: IEvangelist
83
ms.service: cognitive-services
9-
ms.subservice: speech-service
104
ms.topic: include
11-
ms.date: 10/28/2019
12-
ms.author: erhopf
13-
zone_pivot_groups: programming-languages-set-two
5+
ms.date: 01/13/2020
6+
ms.author: dapine
147
---
158

169
## Prerequisites
1710

1811
Before you get started, make sure to:
1912

2013
> [!div class="checklist"]
21-
> * [Create an Azure Speech Resource](../../../../get-started.md)
22-
> * [Upload a source file to an azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
2314
> * [Setup your development environment](../../../../quickstarts/setup-platform.md)
2415
> * [Create an empty sample project](../../../../quickstarts/create-project.md)
16+
> * [Create an Azure Speech resource](../../../../get-started.md)
17+
> * [Upload a source file to an Azure blob](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal)
2518
2619
## Download and install the API client library
2720

@@ -38,7 +31,7 @@ Follow these steps for the installation:
3831
1. Install the extracted python-client module in your Python environment using pip: `pip install path/to/package/python-client`.
3932
1. The installed package has the name `swagger_client`. You can check that the installation worked using the command `python -c "import swagger_client"`.
4033

41-
> **Note:**
34+
> [!NOTE]
4235
> Due to a [known bug in the Swagger autogeneration](https://github.com/swagger-api/swagger-codegen/issues/7541), you might encounter errors on importing the `swagger_client` package.
4336
> These can be fixed by deleting the line with the content
4437
> ```py
@@ -63,7 +56,8 @@ pip install requests
6356
Let's add some code that works as a skeleton for our project.
6457
6558
[!code-python[](~/samples-cognitive-services-speech-sdk/quickstart/python/from-blob/python-client/main.py?range=1-2,7-34,115-119)]
66-
(You'll need to replace the values of `YourSubscriptionKey`, `YourServiceRegion`, and `YourFileUrl` with your own values.)
59+
60+
[!INCLUDE [placeholder-replacements](../placeholder-replacement.md)]
6761
6862
## Create and configure an Http Client
6963
The first thing we'll need is an Http Client that has a correct base URL and authentication set.

0 commit comments

Comments
 (0)