Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions extensions/reviewed/TextToSpeech.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name": "TextToSpeech",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Users/Users_user_chat_talk.svg",
"shortDescription": "Read text aloud using system Text-to-Speech. Configurable voice and speed.",
"version": "1.0.0",
"version": "1.0.1",
"tags": [
"string",
"text",
Expand All @@ -36,7 +36,7 @@
"events": [
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": "// When calling getVoices, browsers return an empty list\n// while gathering the real list of available voices.\n// This forces to load the voices at the start of the scene.\nif (speechSynthesis.onvoiceschanged !== undefined) {\n gdjs._ttsWait = true;\n speechSynthesis.addEventListener(\"voiceschanged\", function listener() {\n gdjs._ttsWait = false;\n speechSynthesis.removeEventListener(\"voiceschanged\", listener);\n });\n\n // Trigger the loading of the voices\n speechSynthesis.getVoices();\n}\n",
"inlineCode": "// When calling getVoices, browsers return an empty list\n// while gathering the real list of available voices.\n// This forces to load the voices at the start of the scene.\nif (typeof speechSynthesis === \"undefined\") return;\n\nif (speechSynthesis.onvoiceschanged !== undefined) {\n gdjs._ttsWait = true;\n speechSynthesis.addEventListener(\"voiceschanged\", function listener() {\n gdjs._ttsWait = false;\n speechSynthesis.removeEventListener(\"voiceschanged\", listener);\n });\n\n // Trigger the loading of the voices\n speechSynthesis.getVoices();\n}\n",
"parameterObjects": "",
"useStrict": true,
"eventsSheetExpanded": false
Expand Down Expand Up @@ -127,7 +127,7 @@
"events": [
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": "window.speechSynthesis.cancel();\n",
"inlineCode": "if (window.speechSynthesis) window.speechSynthesis.cancel();\n",
"parameterObjects": "",
"useStrict": true,
"eventsSheetExpanded": false
Expand Down