Skip to content

Commit c88b5ab

Browse files
authored
CC174962-174964: Adding two spaces to create hard break-line before snippet
Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version. Description: Missing hard break-line before snippet is preventing content to show properly. Please consider adding two spaces at the final of the line.
1 parent ae9a640 commit c88b5ab

File tree

1 file changed

+9
-2
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/cpp

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,24 @@ Let's add some code that works as a skeleton for our project.
5757
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.
5858
In order to make the requests and responses easier to manage, we'll declare a few classes to use for serializing / deserializing the JSON and some methods to assist nlohmann/json.
5959

60-
Go ahead and put their declarations before `recognizeSpeech`.
60+
Go ahead and put their declarations before `recognizeSpeech`
61+
.
6162
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=33-185)]
6263

6364
## Create and configure an Http Client
6465
The first thing we'll need is an Http Client that has a correct base URL and authentication set.
6566
Insert this code in `recognizeSpeech`
67+
6668
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=191-197)]
6769

6870
## Generate a transcription request
6971
Next, we'll generate the transcription request. Add this code to `recognizeSpeech`
72+
7073
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=199-203)]
7174

7275
## Send the request and check its status
7376
Now we post the request to the Speech service and check the initial response code. This response code will simply indicate if the service has received the request. The service will return a Url in the response headers that's the location where it will store the transcription status.
77+
7478
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=204-216)]
7579

7680
## Wait for the transcription to complete
@@ -79,17 +83,20 @@ Since the service processes the transcription asynchronously, we need to poll fo
7983
We can check the status by retrieving the content at the Url we got when the posted the request. When we get the content back, we deserialize it into one of our helper class to make it easier to interact with.
8084

8185
Here's the polling code with status display for everything except a successful completion, we'll do that next.
86+
8287
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=222-245,285-299)]
8388

8489
## Display the transcription results
8590
Once the service has successfully completed the transcription the results will be stored in another Url that we can get from the status response.
8691

8792
We'll download the contents of that URL, deserialize the JSON, and loop through the results printing out the display text as we go.
93+
8894
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=246-284)]
8995

9096
## Check your code
9197
At this point, your code should look like this:
9298
(We've added some comments to this version)
99+
93100
[!code-cpp[](~/samples-cognitive-services-speech-sdk/quickstart/cpp/windows/from-blob/helloworld.cpp?range=7-308)]
94101

95102
## Build and run your app
@@ -98,4 +105,4 @@ Now you're ready to build your app and test our speech recognition using the Spe
98105

99106
## Next steps
100107

101-
[!INCLUDE [footer](./footer.md)]
108+
[!INCLUDE [footer](./footer.md)]

0 commit comments

Comments
 (0)