diff --git a/Scripts/Services/TextToSpeech/TextToSpeech.cs b/Scripts/Services/TextToSpeech/TextToSpeech.cs index 1f87727f6..ba6a51380 100755 --- a/Scripts/Services/TextToSpeech/TextToSpeech.cs +++ b/Scripts/Services/TextToSpeech/TextToSpeech.cs @@ -303,14 +303,14 @@ public bool ToSpeech(string text, ToSpeechCallback callback, bool usePost = fals if (usePost) { Dictionary upload = new Dictionary(); - upload["text"] = "\"" + text + "\""; + upload["text"] = text; req.Send = Encoding.UTF8.GetBytes(Json.Serialize(upload)); req.Headers["Content-Type"] = "application/json"; } else { - req.Parameters["text"] = "\"" + text + "\""; + req.Parameters["text"] = text; } return connector.Send(req);