#!/bin/bash

tdata=$1
rec=$2	# obsolete
p=$3

tmp=/tmp/hmmlist$$.txt
trap "rm -f $tmp" EXIT

ti=tmpE$p
tj=tmpE$(($p+1))

tr ' ' '\012' < $tdata/generated_phones >$tmp
python bin/compute_HHed_commands.py $tj >$tj/cmds.hed ||
	die.sh "bin/compute_HHed_commands failed" || exit 1
HHEd -H $ti/acoustics.mmf -M $tj $tj/cmds.hed $tmp
