1.1 KiB
1.1 KiB
Demo Speech Synthesis
CUTOS 4.0 LWA demo for @cutos/speech-synthesis. It uses the browser-side Web Speech API and Windows-installed voices. It does not require a CUTOS Provider, Device Driver, or Gateway service.
Local Development
Build the sibling SDK first:
cd ../sdk
npm install
npm run build
cd ../demo-speech-synthesis
npm install
npm run dev
LWA Build And Release
npx cutos lwa build
npx cutos login --username office
npx cutos lwa upload
npx cutos lwa list demo-speech-synthesis
npx cutos lwa publish --device <device-id>
The release version is managed only by public/config.json.
Offline Validation
- Run the LWA on a Windows CUTOS Runtime.
- Confirm Speech API Ready and at least one listed voice.
- Prefer a voice marked Local for offline operation.
- Enter text and click Speak; the Activity card should show start and completion events.
If no voices are listed, install a Windows speech voice pack and restart the Runtime. Some WebView implementations require speech to start from a user interaction, so this demo always uses an explicit Speak button.