diff --git a/assets/voices/andrea-5694cd3779.mp3 b/assets/voices/andrea-5694cd3779.mp3 new file mode 100644 index 0000000..c16f5cd Binary files /dev/null and b/assets/voices/andrea-5694cd3779.mp3 differ diff --git a/assets/voices/andrea-a6bceec795.mp3 b/assets/voices/andrea-a6bceec795.mp3 new file mode 100644 index 0000000..76fccde Binary files /dev/null and b/assets/voices/andrea-a6bceec795.mp3 differ diff --git a/assets/voices/andrea-bc7d5f4dc0.mp3 b/assets/voices/andrea-bc7d5f4dc0.mp3 deleted file mode 100644 index aa03553..0000000 Binary files a/assets/voices/andrea-bc7d5f4dc0.mp3 and /dev/null differ diff --git a/assets/voices/index.json b/assets/voices/index.json index f3fc2de..1d49b03 100644 --- a/assets/voices/index.json +++ b/assets/voices/index.json @@ -3439,9 +3439,13 @@ "file": "andrea-366c066d68.mp3", "sec": 2.28 }, - "andrea|Ma... è l'Ingorgo! Le console, la gente, le spine della birra!": { - "file": "andrea-bc7d5f4dc0.mp3", - "sec": 7.5 + "andrea|Mahhh... è l'INGORGOOOO!!!": { + "file": "andrea-5694cd3779.mp3", + "sec": 3.74 + }, + "andrea|Le console, la gente, le spine della birra!": { + "file": "andrea-a6bceec795.mp3", + "sec": 2.57 }, "andrea|Il palio può aspettare una sera. O no?": { "file": "andrea-24e5ac53da.mp3", diff --git a/src/story/story.js b/src/story/story.js index ec7b1b4..d1605ca 100644 --- a/src/story/story.js +++ b/src/story/story.js @@ -345,7 +345,9 @@ export const story = { type: 'incanto', swap: [{ set: 'ingorgo' }], complete: [ - { say: 'Ma... è l\'Ingorgo! Le console, la gente, le spine della birra!' }, + // Più emozione (Andrea: «MAHHH E' L'INGORGOOOOO!!!!!»); la voce legge la versione di tools/pronuncia.json. + { say: 'Mahhh... è l\'INGORGOOOO!!!' }, + { say: 'Le console, la gente, le spine della birra!' }, { say: 'Il palio può aspettare una sera. O no?' }, ], }, diff --git a/tests/ingorgo.browser.mjs b/tests/ingorgo.browser.mjs index 4dadd88..b24ada3 100644 --- a/tests/ingorgo.browser.mjs +++ b/tests/ingorgo.browser.mjs @@ -36,7 +36,7 @@ try { await page.screenshot({ path: `${out}/2-fasci.png` }); await page.waitForFunction(() => game.closeup?.t > 2.5, null, { timeout: 5000 }); await page.screenshot({ path: `${out}/3-coriandoli.png` }); - await page.waitForFunction(() => !game.closeup && game.state.flags.ingorgo && game.speech?.text.includes('Ingorgo'), null, { timeout: 5000 }); + await page.waitForFunction(() => !game.closeup && game.state.flags.ingorgo && game.speech?.text.toLowerCase().includes('ingorgo'), null, { timeout: 5000 }); await page.screenshot({ path: `${out}/3b-festa.png` }); await page.evaluate(() => settle(game)); // La festa, scena per scena: lo sfondo di notte, e la musica di più console insieme. diff --git a/tools/pronuncia.json b/tools/pronuncia.json index d2ae71a..6243e53 100644 --- a/tools/pronuncia.json +++ b/tools/pronuncia.json @@ -20,5 +20,6 @@ "Imposto": "Impòsto", "Libici": "Lìbici", "mancano": "màncano", - "console": "consòl" + "console": "consòl", + "Mahhh... è l'INGORGOOOO!!!": "Maaaa, è l'Ingorgo! L'Ingorgooo!" } diff --git a/video/ingorgo-sonoro.mjs b/video/ingorgo-sonoro.mjs index 5fc6b75..a7aa373 100644 --- a/video/ingorgo-sonoro.mjs +++ b/video/ingorgo-sonoro.mjs @@ -129,10 +129,10 @@ export async function run(d) { await musica(H); // 4. Il giro della festa: Andrea si accorge della festa camminando fra la gente (la seconda battuta si salta), poi una // console per posto, a stacchi veloci. - await p.waitForFunction(() => !game.closeup && game.speech?.text.includes("Ingorgo"), null, { timeout: 10000 }); + await p.waitForFunction(() => !game.closeup && game.speech?.text.toLowerCase().includes("ingorgo"), null, { timeout: 10000 }); await d.cue("festa"); await p.evaluate(() => { game.queue.length = 0; game.walkTo([200, 300]); }); - await p.waitForFunction(() => !game.speech?.text.includes("Ingorgo"), null, { timeout: 20000 }); + await p.waitForFunction(() => !game.speech?.text.toLowerCase().includes("ingorgo"), null, { timeout: 20000 }); await p.evaluate(() => { game.queue.length = 0; game.speech = null; }); await sleep(300); for (const [scene, da, a, brano] of [["via_antica_posta", [330, 345], [300, 290], H], ["piazzetta_comune", [260, 350], [300, 300], L],