https://github.com/unic/speech-poc
Speech PoC for a recipe cooking mode
https://github.com/unic/speech-poc
Last synced: 9 months ago
JSON representation
Speech PoC for a recipe cooking mode
- Host: GitHub
- URL: https://github.com/unic/speech-poc
- Owner: unic
- Created: 2021-08-16T13:35:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-16T13:48:32.000Z (almost 5 years ago)
- Last Synced: 2025-03-02T04:41:48.722Z (over 1 year ago)
- Language: Svelte
- Size: 233 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Speech Cooking Mode PoC
Recipe demo page with speech API implementation to enable controlling the cooking mode with voice commands in four different languages.
## Developing
Once you've installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
```bash
npm run build
```
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
## Usage / Commands
Open cooking mode and say a sentence containing the words in the current set language:
```js
nextStep: {
'de': ['nächster', 'schritt'],
'en': ['next', 'step'],
'fr': ['suivant', 'étape'],
'it': ['prossimo', 'passo']
},
previousStep: {
'de': ['vorheriger', 'schritt'],
'en': ['previous', 'step'],
'fr': ['précédent', 'étape'],
'it': ['precedente', 'passo']
},
firstStep: {
'de': ['erster', 'schritt'],
'en': ['first', 'step'],
'fr': ['première', 'étape'],
'it': ['primo', 'passo']
},
lastStep: {
'de': ['letzter', 'schritt'],
'en': ['last', 'step'],
'fr': ['dernière', 'étape'],
'it': ['ultimo', 'passo']
},
ingredientsStep: {
'de': ['zeige', 'zutaten'],
'en': ['show', 'ingredients'],
'fr': ['montrer', 'ingrédients'],
'it': ['mostra', 'ingredienti']
},
readInstructions: {
'de': ['lese', 'anweisungen'],
'en': ['read', 'instructions'],
'fr': ['lire', 'instructions'],
'it': ['leggere', 'istruzioni']
},
readIngredients: {
'de': ['lese', 'zutaten'],
'en': ['read', 'ingredients'],
'fr': ['lire', 'ingrédients'],
'it': ['leggere', 'ingredienti']
},
close: {
'de': ['schließen'],
'en': ['close'],
'fr': ['fermer'],
'it': ['chiudere']
}
```