annotate wiki/AIMCopy.wiki @ 536:2964a3b4a00a

New design params, including narrower AGC, Greenwood map for more channels, default 71, some renaming, open loop feature, ...
author dicklyon@google.com
date Thu, 22 Mar 2012 22:37:56 +0000
parents 3ac28bbe39be
children
rev   line source
tom@429 1 #summary Notes on using AIMCopy to extract features and make movies.
tom@429 2
tom@429 3 = Introduction =
tom@429 4 AIMCopy is the AIM-C command-line tool for both making movies and extracting features in raw form from sound files.
tom@429 5
tom@429 6 The default behavior of the SCons script that builds AIM-C is to make an AIMCopy binary at a path that looks something like:
tom@429 7 {{{
tom@429 8 build/{win32,posix,darwin}-release/AIMCopy{,.exe}
tom@429 9 }}}
tom@429 10 Where the first part of the directory name depends on the platform on which you built the binary, and the .exe suffix is added on Windows.
tom@429 11
tom@429 12 AIMCopy has the following command-line flags (which closely mirror the flags for [http://htk.eng.cam.ac.uk/ HTK]'s HCopy command).
tom@429 13 {{{
tom@429 14 AIM-C AIMCopy
tom@429 15 (c) 2006-2010, Thomas Walters and Willem van Engen
tom@429 16 http://www.acoustiscale.org/AIMC/
tom@429 17
tom@429 18 AIMCopy is intended as a drop-in replacement for HTK's HCopy
tom@429 19 command. It is used for making features from audio files for
tom@429 20 use with HTK.
tom@429 21 Usage:
tom@429 22 <flag> <meaning> <default>
tom@429 23 -A Print command line arguments off
tom@429 24 -C cf Set config file to cf none
tom@429 25 -S f Set script file to f none
tom@429 26 -V Print version information off
tom@429 27 -D d Write complete parameter set to file d none
tom@429 28 -G g Write graph to file g none
tom@429 29 }}}
tom@429 30
tom@429 31 To run AIMCopy, at minimum the -C and -S flags must be specified.
tom@429 32
tom@429 33 -C specifies a [ConfigurationFileFormat configuration file] to be used with AIMCopy, this dictates the set of AIM-C modules to use, and how they are joined together into a tree. Example configuration files for making movies, generating SAIs &c. can be found in {{{src/Configurations/}}}. The configuration file determines the output format(s). There can be multiple output modules specified in the configuration file, and each one will write a file based on the output path names specified in the script file (see below), each module adding a filename suffix to the output file. The filename suffix for each output module can be set in the parameters for that module. Further details of the configuration file format are at ConfigurationFileFormat.
tom@429 34
tom@429 35 -S specifies a 'script' file to use. This file should contain a list of paths to the audio files to process, and the base name of the output file in each case. There should be one pair of filenames per line, separated by whitespace. The paths may be absolute, or relative to the working directory. Filenames with spaces are probably not dealt with properly yet (TODO:tom). *WARNING: Currently, AIMCopy expects all audio files listed in the script file to have the same sample rate.* Unexpected behavior may occur if you mix-and match sample rates in the same file. (TODO:tom Fix this).
tom@429 36
tom@429 37 -A writes the complete command-line used to call AIMCopy to stdout. This is useful for record-keeping when piping the output of AIMCopy to a file.
tom@429 38
tom@429 39 - V prints the AIMCopy version information (this is also done by default if no other flags are specified).
tom@429 40
tom@429 41 -D writes the complete module tree description, and all parameters for all the modules used in the tree (including the default options) to the file specified. This keeps a complete record of exactly what parameters were used for every module, as well as version information for all the modules used.
tom@429 42
tom@429 43 -G writes a directed graph of the structure of the module tree to the file specified, in [http://www.graphviz.org/ dot format]. This can be used to draw a graph of the module structure using the dot command-line tool. For example
tom@429 44 {{{
tom@429 45 dot -Tps -ograph.ps graph.dot
tom@429 46 }}}
tom@429 47 will write the graph file graph.dot to the file graph.ps in postscript format.