#!/bin/bash pfx="stdbuf -i0 -o0 -e0" amixer cset numid=3 1 $pfx /home/bus/bin/debug_client -m DRIVER_NOTIFY | \ $pfx grep -P '\|\d+:\d+ ' | \ $pfx cut -f2 -d'|' | \ $pfx cut -f2- -d' ' | \ $pfx tr -d '"' | \ espeak --stdout | \ aplay