|
| 1 | +# PR_26171_061 Text To Speech Engine Audio Feature Parity |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +Restored active Text To Speech feature parity from the archived `old_text2speech-V2` functionality sample while keeping active implementation in `toolbox/text-to-speech/` and reusable engine behavior in `src/engine/audio/`. |
| 6 | + |
| 7 | +## Changed Scope |
| 8 | + |
| 9 | +- Rebuilt reusable Text To Speech voice filtering, preset shaping, and queue-item helpers in `src/engine/audio/TextToSpeechEngine.js`. |
| 10 | +- Expanded `toolbox/text-to-speech/index.html` with Theme V2 controls for the old V2 feature set. |
| 11 | +- Rebuilt `toolbox/text-to-speech/text2speech.js` so the active tool consumes the engine audio module. |
| 12 | +- Expanded targeted browser validation in `tests/playwright/tools/TextToSpeechFunctional.spec.mjs`. |
| 13 | +- Updated Playwright V8 coverage artifacts for changed runtime JavaScript. |
| 14 | + |
| 15 | +## Requirement Checklist |
| 16 | + |
| 17 | +- PASS: Used `archive/v1-v2/tools/old_text2speech-V2/` as the required functionality sample. |
| 18 | +- PASS: Reusable TTS behavior lives in `src/engine/audio/`. |
| 19 | +- PASS: `toolbox/text-to-speech/` consumes `src/engine/audio/TextToSpeechEngine.js`. |
| 20 | +- PASS: Restored old controls/options/features in the active tool. |
| 21 | +- PASS: Browser SpeechSynthesis provider remains implemented. |
| 22 | +- PASS: Planned provider adapters do not block browser preview behavior. |
| 23 | +- PASS: No `tools/text2speech/` path was created. |
| 24 | +- PASS: No database files were changed. |
| 25 | +- PASS: Theme V2 remains the styling source. |
| 26 | +- PASS: HTML uses external JavaScript only. |
| 27 | +- PASS: No inline script, style, or event handler was added. |
| 28 | + |
| 29 | +## Restored Feature Set |
| 30 | + |
| 31 | +- Import JSON. |
| 32 | +- Copy JSON. |
| 33 | +- Export JSON. |
| 34 | +- Project Workspace return action during workspace launch. |
| 35 | +- Gender helper filter. |
| 36 | +- Language filter. |
| 37 | +- Browser voice selection. |
| 38 | +- Voice details. |
| 39 | +- Voice age shaping. |
| 40 | +- Character presets. |
| 41 | +- SSML-like presets. |
| 42 | +- Volume, rate, and pitch sliders with visible values. |
| 43 | +- Named sentence Name field. |
| 44 | +- Add, Duplicate, and Delete named sentence actions. |
| 45 | +- Text To Speak editor. |
| 46 | +- Speak, Pause, Resume, and Stop playback actions. |
| 47 | +- Named Sentences queue. |
| 48 | +- Output Summary JSON. |
| 49 | +- Clearable Status log. |
| 50 | +- URL JSON preset loading through `samplePresetPath`. |
| 51 | +- Project Workspace toolState loading and dirty-state writeback. |
| 52 | + |
| 53 | +## Validation Summary |
| 54 | + |
| 55 | +- PASS: `node --check src\engine\audio\TextToSpeechEngine.js` |
| 56 | +- PASS: `node --check toolbox\text-to-speech\text2speech.js` |
| 57 | +- PASS: `node --test tests\tools\Text2SpeechShell.test.mjs` |
| 58 | +- PASS: `npx playwright test tests/playwright/tools/TextToSpeechFunctional.spec.mjs` |
| 59 | +- PASS: `npm run test:workspace-v2` |
| 60 | + - Note: command name is legacy; user-facing language is Project Workspace. |
| 61 | +- PASS: `git diff --check` |
| 62 | +- PASS: changed runtime JS coverage collected for `src/engine/audio/TextToSpeechEngine.js`. |
| 63 | +- PASS: changed runtime JS coverage collected for `toolbox/text-to-speech/text2speech.js`. |
| 64 | + |
| 65 | +## Out Of Scope |
| 66 | + |
| 67 | +- No database changes. |
| 68 | +- No external paid provider implementation. |
| 69 | +- No generated audio file export provider. |
| 70 | +- No new `tools/text2speech/` path. |
| 71 | +- No archived tool activation. |
0 commit comments