From 16fa1cb00476dd1dcfe53ba0c6c4c82e937b9427 Mon Sep 17 00:00:00 2001 From: Richard Lyle Date: Sat, 10 Sep 2016 21:50:53 -0500 Subject: [PATCH] HOTFIX: TTS keeps saying the word "quote" at the end of all speech, I don't think it's required to put quotes around the parameters anymore. --- Scripts/Services/TextToSpeech/TextToSpeech.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);