Move server-side summarization out of lib/tts/summarization.js into a shared lib/text module exposing tts, note and notification modes. TTS and notification runtimes now delegate to the shared service, note mode is used to distill a selected excerpt into a short project note. Expose the new endpoint via /api/text/summarize and route it through the common request middleware. Client voice/summarize.ts accepts a mode option and points at the new endpoint with an absolute URL that respects the desktop server origin. VS Code webview swaps the stubbed tts summarize path for /api/text/summarize and hardens URL parsing with window.location.href as the base.
20 lines
319 B
JavaScript
20 lines
319 B
JavaScript
/**
|
|
* TTS Module Entry Point
|
|
*
|
|
* Public export surface for the Text-to-Speech domain module.
|
|
*/
|
|
|
|
export {
|
|
ttsService,
|
|
TTSService,
|
|
TTS_VOICES,
|
|
} from './service.js';
|
|
|
|
export {
|
|
summarizeText,
|
|
sanitizeForTTS,
|
|
sanitizeForNote,
|
|
} from '../text/summarization.js';
|
|
|
|
export { transcribeAudio } from './stt.js';
|