tom@429: #summary Notes on using AIMCopy to extract features and make movies. tom@429: tom@429: = Introduction = tom@429: AIMCopy is the AIM-C command-line tool for both making movies and extracting features in raw form from sound files. tom@429: tom@429: 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: {{{ tom@429: build/{win32,posix,darwin}-release/AIMCopy{,.exe} tom@429: }}} tom@429: 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: tom@429: 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: {{{ tom@429: AIM-C AIMCopy tom@429: (c) 2006-2010, Thomas Walters and Willem van Engen tom@429: http://www.acoustiscale.org/AIMC/ tom@429: tom@429: AIMCopy is intended as a drop-in replacement for HTK's HCopy tom@429: command. It is used for making features from audio files for tom@429: use with HTK. tom@429: Usage: tom@429: tom@429: -A Print command line arguments off tom@429: -C cf Set config file to cf none tom@429: -S f Set script file to f none tom@429: -V Print version information off tom@429: -D d Write complete parameter set to file d none tom@429: -G g Write graph to file g none tom@429: }}} tom@429: tom@429: To run AIMCopy, at minimum the -C and -S flags must be specified. tom@429: tom@429: -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: tom@429: -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: tom@429: -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: tom@429: - V prints the AIMCopy version information (this is also done by default if no other flags are specified). tom@429: tom@429: -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: tom@429: -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: {{{ tom@429: dot -Tps -ograph.ps graph.dot tom@429: }}} tom@429: will write the graph file graph.dot to the file graph.ps in postscript format.