Skip to content

Commit 16fa1cb

Browse files
author
Richard Lyle
committed
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.
1 parent 289b41b commit 16fa1cb

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)