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
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/includes/quickstarts/from-blob/cpp/windows.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,20 +57,24 @@ Let's add some code that works as a skeleton for our project.
57
57
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.
58
58
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.
59
59
60
-
Go ahead and put their declarations before `recognizeSpeech`.
60
+
Go ahead and put their declarations before `recognizeSpeech`
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.
@@ -79,17 +83,20 @@ Since the service processes the transcription asynchronously, we need to poll fo
79
83
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.
80
84
81
85
Here's the polling code with status display for everything except a successful completion, we'll do that next.
0 commit comments