Skip to content

Commit

Permalink
fix(Speech to Text): Fixed sending language model in Recognize
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumTaj committed Jan 5, 2019
1 parent ffde91d commit 449ff33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public SpeechRecognitionResults Recognize(string contentType, Stream audio, stri

restRequest = client.PostAsync($"{this.Endpoint}/v1/recognize");

if (!string.IsNullOrEmpty(model))
restRequest.WithArgument("model", model);

if (!string.IsNullOrEmpty(transferEncoding))
restRequest.WithHeader("Transfer-Encoding", transferEncoding);
Expand Down

0 comments on commit 449ff33

Please sign in to comment.