feat: add speech synthesis demo
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# 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:
|
||||
|
||||
```sh
|
||||
cd ../sdk
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
cd ../demo-speech-synthesis
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## LWA Build And Release
|
||||
|
||||
```sh
|
||||
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
|
||||
|
||||
1. Run the LWA on a Windows CUTOS Runtime.
|
||||
2. Confirm **Speech API Ready** and at least one listed voice.
|
||||
3. Prefer a voice marked **Local** for offline operation.
|
||||
4. 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.
|
||||
Reference in New Issue
Block a user