Skip to content

Commit 8aca7cc

Browse files
authored
Merge pull request #190 from watson-developer-cloud/189-text-to-speech-synthesize
move accept from header to query param
2 parents a47b18f + 334fa2d commit 8aca7cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public System.IO.Stream Synthesize(Text text, string accept = null, string voice
125125
{
126126
var request = this.Client.WithAuthentication(this.UserName, this.Password)
127127
.PostAsync($"{this.Endpoint}/v1/synthesize");
128-
request.WithHeader("Accept", accept);
128+
request.WithArgument("accept", accept);
129129
if (!string.IsNullOrEmpty(voice))
130130
request.WithArgument("voice", voice);
131131
if (!string.IsNullOrEmpty(customizationId))

test/IBM.WatsonDeveloperCloud.TextToSpeech.v1.IntegrationTests/TextToSpeechServiceIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void Synthesize_Success()
9494
_Text = _synthesizeText
9595
};
9696

97-
var synthesizeResult = Synthesize(synthesizeText, "audio/wave");
97+
var synthesizeResult = Synthesize(synthesizeText, "audio/wav");
9898

9999
Assert.IsNotNull(synthesizeResult);
100100
}

0 commit comments

Comments
 (0)