#!/bin/sh #####################################################-*-mode:shell-script-*- ### ## ### Alan W Black and Kevin Lenzo ## ### Copyright (c) 1998 ## ### All Rights Reserved. ## ### ## ### Permission to use, copy, modify, and licence this software and its ## ### documentation for any purpose, is hereby granted without fee, ## ### subject to the following conditions: ## ### 1. The code must retain the above copyright notice, this list of ## ### conditions and the following disclaimer. ## ### 2. Any modifications must be clearly marked as such. ## ### 3. Original authors' names are not deleted. ## ### ## ### THE AUTHORS OF THIS WORK DISCLAIM ALL WARRANTIES WITH REGARD TO ## ### THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY ## ### AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY ## ### SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## ### WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## ### AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## ### ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## ### THIS SOFTWARE. ## ### ## ### This file is part "Building Voices in the Festival Speech ## ### Synthesis System" by Alan W Black and Kevin Lenzo written at ## ### Robotics Institute, Carnegie Mellon University, fall 98 ## ############################################################################ ### ## ### Generate xlabel format representation of EST pm files suitable ## ### for view in University of Macquarie's emulabel or Entropic's Xwaves ## ### ## ############################################################################ for i in $* do echo $i fname=`basename $i .pm` awk '{if ($1 == "EST_Header_End") { post_header = 1; printf("#\n"); } else if (post_header == 1) { printf("%f 125 %f\n",$1,$2); }}' $i >pm_lab/$fname.lab done