From cca01e85a35576225661699a7be63550e9500642 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 30 May 2021 12:41:19 -0400 Subject: 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 --- test/test-options-util.js | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/test-options-util.js b/test/test-options-util.js index 80f935d1..d20eec3e 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -104,11 +104,11 @@ function createProfileOptionsTestData1() { }, audio: { enabled: true, - sources: ['jpod101'], + sources: ['jpod101', 'text-to-speech', 'custom'], volume: 100, autoPlay: false, customSourceUrl: 'http://localhost/audio.mp3?term={expression}&reading={reading}', - textToSpeechVoice: '' + textToSpeechVoice: 'example-voice' }, scanning: { middleMouse: true, @@ -306,11 +306,25 @@ function createProfileOptionsUpdatedTestData1() { }, audio: { enabled: true, - sources: ['jpod101'], + sources: [ + { + type: 'jpod101', + url: '', + voice: '' + }, + { + type: 'text-to-speech', + url: '', + voice: 'example-voice' + }, + { + type: 'custom', + url: 'http://localhost/audio.mp3?term={term}&reading={reading}', + voice: '' + } + ], volume: 100, - autoPlay: false, - customSourceUrl: 'http://localhost/audio.mp3?term={term}&reading={reading}', - textToSpeechVoice: '' + autoPlay: false }, scanning: { touchInputEnabled: true, -- cgit v1.2.3