add custome voice
This commit is contained in:
@@ -114,10 +114,12 @@ test("race audio can ignore a mismatched configured voice and select the announc
|
||||
const started = speakTextHelper("Race finished", {
|
||||
state: { settings: { audioEnabled: true, speechVoiceUri: "voice-sv", speechRate: 1, speechPitch: 1 } },
|
||||
currentLanguage: () => "sv",
|
||||
}, { language: "en", voiceUri: "" });
|
||||
}, { language: "en", voiceUri: "", rate: 1.1, pitch: 0.85 });
|
||||
assert.equal(started, true);
|
||||
assert.equal(spoken[0].lang, "en-US");
|
||||
assert.equal(spoken[0].voice.voiceURI, "voice-en");
|
||||
assert.equal(spoken[0].rate, 1.1);
|
||||
assert.equal(spoken[0].pitch, 0.85);
|
||||
} finally {
|
||||
globalThis.window = originalWindow;
|
||||
globalThis.SpeechSynthesisUtterance = OriginalUtterance;
|
||||
|
||||
Reference in New Issue
Block a user