Puppet Stage: a browser puppet that lip-syncs to local text-to-speech and takes stage directions, live or from a screenplay.

0 downloads

dbbasic-face/setup.sh
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-face.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-face.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-face.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Dan Quellhorst Converse: characters know they have bodies 52ca998 4 months, 1 week ago History
setup.sh · 1.4 KB · 46 lines
1#!/usr/bin/env bash
2# Downloads Rhubarb Lip Sync (MIT) into tools/ and checks for required commands.
3set -euo pipefail
4cd "$(dirname "$0")"
5
6RHUBARB_VERSION="1.14.0"
7
8case "$(uname -s)" in
9 Darwin) RHUBARB_OS="macOS" ;;
10 Linux) RHUBARB_OS="Linux" ;;
11 *) echo "Unsupported OS: $(uname -s)"; exit 1 ;;
12esac
13
14if ls tools/*/rhubarb >/dev/null 2>&1; then
15 echo "✓ Rhubarb already present in tools/"
16else
17 url="https://github.com/DanielSWolf/rhubarb-lip-sync/releases/download/v${RHUBARB_VERSION}/Rhubarb-Lip-Sync-${RHUBARB_VERSION}-${RHUBARB_OS}.zip"
18 echo "Downloading Rhubarb Lip Sync ${RHUBARB_VERSION} (${RHUBARB_OS})..."
19 mkdir -p tools
20 curl -sL -o tools/rhubarb.zip "$url"
21 unzip -q -o tools/rhubarb.zip -d tools/
22 rm tools/rhubarb.zip
23 echo "✓ Rhubarb installed in tools/"
24fi
25
26echo
27echo "Checking required commands:"
28missing=0
29for cmd in node ffmpeg ffprobe; do
30 if command -v "$cmd" >/dev/null; then echo " ✓ $cmd"; else echo " ✗ $cmd (brew install ${cmd/ffprobe/ffmpeg})"; missing=1; fi
31done
32
33echo
34echo "TTS engines (at least one needed):"
35found_tts=0
36for cmd in say espeak espeak-ng; do
37 if command -v "$cmd" >/dev/null; then echo " ✓ $cmd"; found_tts=1; fi
38done
39[ "$found_tts" = 1 ] || { echo " ✗ none found — install espeak (brew/apt install espeak) or use macOS"; missing=1; }
40
41echo
42if [ "$missing" = 0 ]; then
43 echo "All set. Run: node server.js"
44else
45 echo "Install the missing pieces above, then run: node server.js"
46fi