This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| # Path to audio input | |
| AUDIO=input.wav | |
| # Step 1: Record from mic | |
| echo "🎙️ Speak now..." | |
| arecord -f S16_LE -r 16000 -d 5 -q "$AUDIO" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OUT_DIR="$PWD/../quick-docs-html" | |
| mkdir -p "$OUT_DIR" | |
| podman run --rm \ | |
| -v "$PWD:/work:Z" \ | |
| -v "$OUT_DIR:/out:Z" \ | |
| -w /work \ | |
| docker.io/asciidoctor/docker-asciidoctor \ | |
| bash -lc ' |