Skip to content

Commit 010e959

Browse files
committed
Corrected sdk prefix
1 parent b534bad commit 010e959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cognitive-services/Speech-Service/includes/how-to/speech-to-text-basics/speech-to-text-basics-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ switch (result.reason) {
138138
const cancellation = sdk.CancellationDetails.fromResult(result);
139139
console.log(`CANCELED: Reason=${cancellation.Reason}`);
140140

141-
if (cancellation.Reason == CancellationReason.Error) {
141+
if (cancellation.Reason == sdk.CancellationReason.Error) {
142142
console.log(`CANCELED: ErrorCode=${cancellation.ErrorCode}`);
143143
console.log(`CANCELED: ErrorDetails=${cancellation.ErrorDetails}`);
144144
console.log("CANCELED: Did you update the subscription info?");

0 commit comments

Comments
 (0)