Speech:Summer 2011 Notes

From Openitware
Revision as of 10:11, 17 February 2012 by Mcy59 (Talk | contribs)

Jump to: navigation, search


Notes

NFS

NFS is a protocol that allows file systems to be distributed and shared over a network. File system sharing is especially important when working with multiple users and terminals. Without NFS/LDAP, users would have to create a user name and password on each new machine they attempted to access. By utilizing NFS/LDAP, user information can be created on any client machine and then stored and accessed on the network's server. This eliminates user frustration by granting networked computers access to specific non-local information.

Required NFS software using openSUSE

To configure your host as an NFS client, you do not need to install additional software. All needed packages are installed by default.

NFS server software is not part of the default installation. To install the NFS server software, start YaST and select Software+Software Management. Now choose Filter+Patterns and select File Server or use the Search option and search for NFS Server. Confirm the installation of the packages to finish the installation process.

Mounting

Mounting allows authorized users to import/export file systems. Once mounting has been set up, a server can access specified client directories and vice versa. The best way to complete this is by using YaST's very easy to use GUI. For a full step-by-step walk through of how to do this Click Here

Trainining

setup task directory

To set up the task directory:

  1. From the SphinxTrain directory, create a directory to store the task in: mkdir taskName
    • % cd /root/speechtools/SphinxTrain-1.0; mkdir train1
  2. Move to that directory: cd taskName
    • % cd train1
  3. Execute the following command: ../scripts_pl/setup_SphinxTrain.pl -task taskName
    • % ../scripts_pl/setup_SphinxTrain.pl -task train1
Copy wav files into wavTemp directory
  1. Create the wavTemp directory: mkdir wavTemp
    • % mkdir wavTemp
  2. Move into the wavTemp directory:cd wavTemp
    • % cd wavTemp
  3. Copy all sph files that will be used for this train into the wavTemp directory.
    • % cp -i /media/data/Switchboard/disk1/swb1/sw02001.sph .; cp -i /media/data/Sw...
Copy necessary scripts into the etc directory.

There are two custom scripts that are needed to perform a train. These are /root/bin/genPhones.sh and /root/bin/genTrans.pl. Copy both of these scripts into the etc directory of the task.

  • % cd ../etc; cp -i /root/bin/genPhones.sh; cp -i /root/bin/genTrans.pl
Copy dictionary into task etc directory with filename taskName.dic
Download transcript.
  1. Download the transcript to the task etc directory.
Run genTrans.pl
  1. cd into the etc directory and execute genTrans.pl with two arguments. The first argument is the unedited transcription's filename. The second argument should be the task name.
Run genPhones.sh
  1. This needs to be customized for the current project, but should then be run to generate the phonemes.
Download filler file to etc directory.
  1. Download File:Train1.filler to the task etc directory.
  2. Rename the filler file you just downloaded to taskName.filler.
Run make_feats.pl
From the root of the task, execute: ./scripts_pl/make_feats.pl -ctl etc/taskName_train.fileids
Run Runall.pl
From the root of the task, execute: ./scripts_pl/RunAll.pl