Rework sound effects and add pre-generated Piper narration

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-16 12:29:51 +02:00
parent 61eccb2f80
commit 7050cb1ac6
60 changed files with 918 additions and 83 deletions
+10
View File
@@ -0,0 +1,10 @@
// Vecteurs communs avec tests/python/test_voice_key.py : les deux implémentations doivent concorder.
import { speechKey, speechText } from '../../app/js/core/speechKey.js';
import assert from 'node:assert';
assert.equal(speechText(' Un `print()` affiche\n du texte. '), 'Un print() affiche du texte.');
assert.equal(speechKey('fr', 'Un `print()` affiche du texte.'), '0933ff041539352b');
assert.equal(speechKey('en', 'Héllo wörld'), '87e2e25e5123e565');
assert.equal(speechKey('fr', ''), 'dc8d3218feba4761');
assert.notEqual(speechKey('fr', 'Bonjour'), speechKey('en', 'Bonjour'));
console.log('speech key ok');