Speech echo example using the gather verb over WebSocket transport.
Listens for speech input, echoes back what was said along with the confidence score, then listens again. Demonstrates:
- The
gatherverb withinput: ['speech'] - The
actionHookcallback pattern for handling gather results - Handling
speechDetectedandtimeoutevents - Using
reply()to respond to action hooks
npm install| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
Port the WebSocket server listens on |
LOG_LEVEL |
info |
Pino log level (debug, info, warn, error) |
npm startConfigure your jambonz application to use the WebSocket URL ws://your-server:3000/.