#!/bin/sh

device="$(pactl info | grep 'Default Sink: ' | tuc -d 'Default Sink: ' -f 2)"
echo "device: $device"
sox --no-show-progress -t pulseaudio $device -d $(pocketsphinx soxflags) | pocketsphinx -
