echo "Change subword unit: ";
    echo "<select name=swunit onchange=jssubmitform() >";
    echo "<option name=syl value=syl " . selectswunit('syl', $swunit) . ">Syllable</option>";
    echo "<option name=phn value=phn " . selectswunit('phn', $swunit) . ">Phoneme</option>";
    echo "<option name=wrd value=wrd " . selectswunit('wrd', $swunit) . ">Word</option>";
    echo "</select>";
    displaysent($exnum, $swunit);
    echo "<br><b>Zoom, select and listen to the waveform. Enter the symbol boundaries in the space provided.</b><br>";
    echo "<table border=1><tr>";
    echo "<td width=620 valign=top>";
    //echo "<applet code=audioTransport/SVLAudioTool.class archive='media/svlAudioTool.jar' width=600 height=400>";
    echo "<applet code=audioTransport/SVLAudioTool.class archive='media/speechAnalysisSigned.jar' name='speechtool' width=600 height=400>";
    echo "<param name=foo value='bar'>";
    echo "Please install the latest version of the Java plugin for your browser. <br>";
    echo "</applet><br>";
    echo "</td>";
    echo "<td width=200 align=center valign=top>";
    echo "<font size=-1>Subword unit boundaries</font>";
    displaylabels($exnum, $swunit);
    echo "</td>";
    echo "</tr></table>";
    echo '<script type="text/javascript">';
    echo "loadwavfile('ex" . $exnum . ".wav');";
    echo '</script>';
}
?>
</form>

</html>

    echo "<font size=-1>3. Repeat the experiment for different sounds and different speaker category.</font><br>";
    echo "<font size=-1>4. Repeat the experiment for vowels recorded in your own voice.</font><br>";
}
?>

<table><tr>
<td width=620 valign=top>
<applet code=audioTransport.NatureSpeech.class archive='media/NatureOfSpeechS.jar' name='speechtool' width=620 height=480 >
Please install the latest version of the Java plugin for your browser. <br>
</applet><br>
</td>

<?php 
if ($changeflag == 1) {
    echo "<td width=300 align=center valign=top>";
    echo "<font size=-1>Enter pitch (\\( F_0 \\)), formants (\\( F_1 \\), \\( F_2 \\), \\( F_3 \\)) and vowel duration values.<br>(Hint: \\( F_s=8 \\) kHz, \\( N_{fft}=1024 \\))</font>";
    displaylabels($spk, $utt);
    echo "</td>";
    echo '<script type="text/javascript">';
    echo "loadwavfile('" . $spk . $utt . ".wav');";
    // echo "loadwavfile('ex2.wav');";
    echo '</script>';
}
?>

</tr></table>

</form>
</html>

</form>

<?php 
if ($changeflag == 1) {
    displaysent($exnum);
    echo "<font size=-1><ol>";
    echo "<li>Select the correct excitation type, manner of articulation (MoA) and place of articulation (PoA) for each of the phonemes listed in the table.</li>";
    echo "<li>Click on the phoneme symbol (first column of the table) to zoom fit to the presegmented label, and observe the signal characteristics.</li>";
    echo "</ol></font>";
    echo "<table><tr>";
    echo "<td width=620 valign=top>";
    echo "<applet code=audioTransport/SVLAudioTool.class archive='media/speechAnalysis.jar' name='speechtool' width=600 height=400>";
    echo "<param name=foo value='bar'>";
    echo "Please install the latest version of the Java plugin for your browser. <br>";
    echo "</applet><br>";
    echo "</td>";
    echo "</tr></table>";
    // echo "<td width=200 valign=top>";
    displaylabels($exnum);
    // echo "</td>";
    // echo "</tr></table>";
    echo '<script type="text/javascript">';
    echo "loadwavfile('ex" . $exnum . ".wav');";
    echo '</script>';
}
?>

</html>

<?php 
if ($uttflag == 1) {
    include 'syllabify.php';
    if ($sylflag == 1) {
        echo "<h4>Record your speech and identify the syllable boundaries</h4>";
        echo "<table border=1><tr>";
        echo "<td width=620 valign=top>";
        //echo "<applet code=audioTransport/SVLAudioTool.class archive='media/svlAudioTool.jar' width=600 height=400>";
        echo "<applet code=audioTransport/SVLAudioTool.class archive='media/speechAnalysisSigned.jar' name='speechtool' width=600 height=400>";
        echo "<param name=foo value='bar'>";
        echo "Please install the latest version of the Java plugin for your browser. <br>";
        echo "</applet><br>";
        echo "</td>";
        echo "<td width=200 align=center valign=top>";
        echo "<font size=-1>Subword unit boundaries</font>";
        displaylabels(preg_replace('/\\s+/', ' ', trim($rsylseq)));
        echo "</td>";
        echo "</tr></table><br>";
        echo '<script type="text/javascript">';
        // echo "loadwavfile('ex".$exnum.".wav');";
        echo '</script>';
    }
} else {
    echo "<b>Choose your language and construct a sentence.</b><br>";
    include 'trans.html';
}
?>
</html>