voice usage

This commit is contained in:
Artur Mukhamadiev 2026-08-14 16:27:50 +03:00
parent cf800f4bb3
commit 1f75e6c0b9
4 changed files with 32 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.pi/npm/
tools/
.env

5
.pi/settings.json Normal file
View File

@ -0,0 +1,5 @@
{
"packages": [
"npm:talk-pi@1.0.16"
]
}

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# AI-assisted voice controlled web app demo on TV
## Requirements:
```sh
npm install -g agent-browser
pi install npm:talk-pi
pi install npm:@juicesharp/rpiv-voice
```
## How to run with voice
```sh
./scripts/pi-talk.sh --approve
```

9
scripts/pi-talk.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
project_dir=$(dirname -- "$script_dir")
pi_bin=$(command -v pi)
cd "$project_dir"
exec node --env-file="$project_dir/.env" "$pi_bin" "$@"