Skip to content

Commit e531cd4

Browse files
committed
chore: Do not serialize plain text in stt
1 parent fdd124e commit e531cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IBM.Watson.SpeechToText.v1/SpeechToTextService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,7 @@ public DetailedResponse<object> AddGrammar(string customizationId, string gramma
25832583
{
25842584
restRequest.WithArgument("allow_overwrite", allowOverwrite);
25852585
}
2586-
var httpContent = new StringContent(JsonConvert.SerializeObject(grammarFile));
2586+
var httpContent = new StringContent(grammarFile);
25872587
System.Net.Http.Headers.MediaTypeHeaderValue grammarFileContentType;
25882588
System.Net.Http.Headers.MediaTypeHeaderValue.TryParse(contentType, out grammarFileContentType);
25892589
httpContent.Headers.ContentType = grammarFileContentType;

0 commit comments

Comments
 (0)