Skip to content

Commit ac2e850

Browse files
authored
Merge pull request #151 from watson-developer-cloud/ROB-1359
HOTFIX: TTS keeps saying the word "quote" at the end of all speech, I…
2 parents 289b41b + 16fa1cb commit ac2e850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Services/TextToSpeech/TextToSpeech.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ public bool ToSpeech(string text, ToSpeechCallback callback, bool usePost = fals
303303
if (usePost)
304304
{
305305
Dictionary<string, string> upload = new Dictionary<string, string>();
306-
upload["text"] = "\"" + text + "\"";
306+
upload["text"] = text;
307307

308308
req.Send = Encoding.UTF8.GetBytes(Json.Serialize(upload));
309309
req.Headers["Content-Type"] = "application/json";
310310
}
311311
else
312312
{
313-
req.Parameters["text"] = "\"" + text + "\"";
313+
req.Parameters["text"] = text;
314314
}
315315

316316
return connector.Send(req);

0 commit comments

Comments
 (0)