Show an inline speech retry control
Build and publish frontend / publish (push) Successful in 42s

This commit is contained in:
Ein Anderssono
2026-10-15 23:58:34 +02:00
parent 7d447940b3
commit 1c8d429f81
5 changed files with 48 additions and 3 deletions
+6
View File
@@ -155,8 +155,14 @@ test('replacing active speech waits one event-loop turn after WebKit cancel', ()
test('speech start timeout tells the player how to recover when mobile playback is blocked', () => {
const h = makeHarness();
h.controller.speak('En replik');
const cancelledBeforeTimeout = h.synthesis.cancelled;
h.runTimer(4000);
assert.match(h.states.at(-1).message, /Tryck på Läs senaste repliken/);
assert.equal(h.synthesis.cancelled, cancelledBeforeTimeout + 1);
const cancelledBeforeRetry = h.synthesis.cancelled;
h.controller.speak('Manuell återläsning');
assert.equal(h.synthesis.spoken.at(-1).text, 'Manuell återläsning');
assert.equal(h.synthesis.cancelled, cancelledBeforeRetry);
});
test('character voice identity gives stable distinct masculine, feminine, and neutral timbres', () => {