You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand `text2speach-V2` from a baseline speech sample into a schema-backed, workspace-embeddable full TTS options tool while keeping the exact tool-facing name `text2speach-V2` and preserving `/src/engine/audio/` structure.
6
+
7
+
## Scope
8
+
9
+
Changed only Workspace Manager V2/text2speach-V2 lifecycle, queue, schema, defaults, UI, and Playwright coverage surfaces.
10
+
11
+
No `start_of_day` files were changed.
12
+
13
+
`docs/dev/codex_commands.md` and `docs/dev/commit_comment.txt` were updated locally as required and remain ignored so they cannot be committed.
14
+
15
+
## Implementation Summary
16
+
17
+
- Added full enum/default coverage in `src/engine/audio/TextToSpeechDefaults.js` for language, queue mode, repeat count, character preset, ssml-like preset, numeric ranges, required queue fields, and schema-complete default queue data.
18
+
- Expanded `TextToSpeechEngine` to use selected `SpeechSynthesis` voices and to support speak, pause, resume, stop, replace/append queue mode, repeat count, loop mode, and delay between repeats.
19
+
- Added SpeechSynthesis `voiceschanged` handling so browsers that load voices after page startup repopulate the Voice dropdown and re-enable Speak when a real voice becomes available.
20
+
- Rebuilt `text2speach-V2` UI controls around textarea text input, voice/language dropdowns, range sliders, queue mode, auto speak, repeat/delay, character preset, ssml-like preset, and direct/workspace action buttons.
21
+
- Added `tools/schemas/tools/text2speach-V2.schema.json`; every queue item requires all defined speech options.
22
+
- Registered the payload schema in `tools/schemas/workspace.manifest.schema.json`.
23
+
- Updated Workspace Manager V2 toolState hydration so selected-game text2speach-V2 launches receive schema-complete default queue data when the game manifest has no text2speach-V2 payload.
24
+
- Updated save/log item details to report `text2speach-V2 queue=3`.
25
+
26
+
## Tool Completion Status
27
+
28
+
Failing tool before: `text2speach-V2` did not expose the full TTS option set, did not have a workspace payload schema requiring all speech item options, and did not hydrate schema-complete queue data for Workspace Manager V2 launch/save flows.
29
+
30
+
Tool fixed: `text2speach-V2`.
31
+
32
+
Remaining failures after targeted validation: none found in `npm run test:workspace-v2`.
33
+
34
+
## Playwright Impact
35
+
36
+
Playwright impacted: Yes.
37
+
38
+
Coverage added/updated for:
39
+
40
+
- full option rendering
41
+
- schema-valid default queue
42
+
- required queue item option keys
43
+
- voice dropdown population from `speechSynthesis.getVoices()`
44
+
- voice dropdown recovery when `getVoices()` is empty at startup and `voiceschanged` fires later
Expected pass behavior: text2speach-V2 renders all full TTS options, enables Speak only when text and a live voice are available, calls the expected SpeechSynthesis APIs, and persists schema-valid queue data through Workspace Manager V2 toolState context.
56
+
57
+
Expected fail behavior: tests fail if any required queue option is missing, controls are not populated from enum/default/runtime voice sources, numeric controls are not sliders, speech action buttons do not call the expected APIs, or Workspace Manager V2 omits the text2speach-V2 schema-complete queue payload.
Skipped. The full samples smoke test is intentionally out of scope because this PR is limited to text2speach-V2 full TTS options/schema/toolState behavior and targeted Workspace Manager V2 coverage, not broad sample runtime behavior.
2. Confirm the Speech Queue has named default sentences and the Speech Options section shows voice, language, volume, rate/speed, pitch, queue mode, auto speak, repeat count, delay, character preset, and ssml-like preset controls.
109
+
3. Select a voice, edit the text, and use Speak, Pause, Resume, and Stop.
110
+
4. Open Workspace Manager V2, pick a repo folder, select a game, launch `text2speach-V2`, and confirm Repo Destination is not shown and the workspace action buttons are available.
111
+
5. Return to Workspace Manager V2 and confirm the selected game/toolState remains active.
112
+
113
+
Expected outcome: all controls remain enabled according to voice/text availability, speech actions update the status log, and Workspace Manager V2 retains schema-complete text2speach-V2 queue data.
constTEXT_TO_SPEECH_SAMPLE_TEXT="Welcome to Toolbox Aid. This is the default text2speach-V2 sample line for previewing narration, prompts, and menu feedback.";
0 commit comments