@pie-players/pie-tool-tts-inline 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/tool-tts-inline.js +1008 -1000
- package/dist/tool-tts-inline.svelte.d.ts +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/package.json +25 -7
- package/dist/tool-tts-inline.d.ts +0 -5
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ toolCoordinator.showTool('tts-passage-1');
|
|
|
96
96
|
## Behavior
|
|
97
97
|
|
|
98
98
|
1. **Tool Registration**: Registers with ToolCoordinator on mount using the provided `tool-id`
|
|
99
|
-
2. **Text Extraction**: Finds nearest `.
|
|
99
|
+
2. **Text Extraction**: Finds nearest `.pie-section-player__passage-content` or `.pie-section-player__item-content` container
|
|
100
100
|
3. **TTS Trigger**: Calls `ttsService.speak(text, { catalogId, language })`
|
|
101
101
|
4. **Catalog Resolution**: TTSService checks for SSML in accessibility catalogs (priority order):
|
|
102
102
|
- **Extracted catalogs** (from embedded SSML) - auto-generated by section player
|
|
@@ -151,7 +151,7 @@ This tool follows the PIE Assessment Toolkit tool pattern:
|
|
|
151
151
|
|
|
152
152
|
## Example
|
|
153
153
|
|
|
154
|
-
See
|
|
154
|
+
See active demos in `apps/section-demos`.
|
|
155
155
|
|
|
156
156
|
## License
|
|
157
157
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|