Skip to content

Commit a00da8f

Browse files
committed
previous fix to synthesize method
1 parent c336c68 commit a00da8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IBM.WatsonDeveloperCloud.TextToSpeech.v1/TextToSpeechService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public System.IO.Stream Synthesize(Text text, string accept = null, string voice
136136
{
137137
var request = this.Client.WithAuthentication(this.UserName, this.Password)
138138
.PostAsync($"{this.Endpoint}/v1/synthesize");
139-
request.WithHeader("Accept", accept);
139+
request.WithArgument("accept", accept);
140140
if (!string.IsNullOrEmpty(voice))
141141
request.WithArgument("voice", voice);
142142
if (!string.IsNullOrEmpty(customizationId))

0 commit comments

Comments
 (0)