summaryrefslogtreecommitdiff
path: root/ext/data/schemas/options-schema.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-30 12:41:19 -0400
committerGitHub <noreply@github.com>2021-05-30 12:41:19 -0400
commitcca01e85a35576225661699a7be63550e9500642 (patch)
treede52f621afa61afd6df2fdc6c91286e9247574ff /ext/data/schemas/options-schema.json
parentefd35de67f6700ecf4f49a87d310d99cefbaa328 (diff)
Improve multiple audio sources (#1718)
* Add url/voice options to audio sources * Add help for TTS * Remove old settings * Update tests * Update use of audio source URL * Improve labels for sources with the same type
Diffstat (limited to 'ext/data/schemas/options-schema.json')
-rw-r--r--ext/data/schemas/options-schema.json55
1 files changed, 34 insertions, 21 deletions
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json
index 9afad1e3..4b97342c 100644
--- a/ext/data/schemas/options-schema.json
+++ b/ext/data/schemas/options-schema.json
@@ -343,8 +343,6 @@
"enabled",
"volume",
"autoPlay",
- "customSourceUrl",
- "textToSpeechVoice",
"sources"
],
"properties": {
@@ -362,31 +360,46 @@
"type": "boolean",
"default": false
},
- "customSourceUrl": {
- "type": "string",
- "default": ""
- },
- "textToSpeechVoice": {
- "type": "string",
- "default": ""
- },
"sources": {
"type": "array",
"items": {
- "type": "string",
- "enum": [
- "jpod101",
- "jpod101-alternate",
- "jisho",
- "text-to-speech",
- "text-to-speech-reading",
- "custom",
- "custom-json"
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "url",
+ "voice"
],
- "default": "jpod101"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "jpod101",
+ "jpod101-alternate",
+ "jisho",
+ "text-to-speech",
+ "text-to-speech-reading",
+ "custom",
+ "custom-json"
+ ],
+ "default": "jpod101"
+ },
+ "url": {
+ "type": "string",
+ "default": ""
+ },
+ "voice": {
+ "type": "string",
+ "default": ""
+ }
+ }
},
"default": [
- "jpod101"
+ {
+ "type": "jpod101",
+ "url": "",
+ "voice": ""
+ }
]
}
}