Extract Audio and Grammar Streams to File

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Use the command-line tool MssContentExtract.exe to extract file-embedded content, such as speech recognition audio streams and grammars, from Speech Server trace log files.

To install Speech Server Log Tools, install Speech Server and select Data Processing Utilities. The default installation path for Speech Server Log Tools is %ProgramFiles%\Microsoft Office Communications Server 2007 Speech Server\SDK.

To launch MssContentExtract.exe

  1. On the taskbar, click Start, click Run, type cmd, and then click OK.

  2. At the command prompt, type cd /d %ProgramFiles%\Microsoft Office Communications Server 2007 Speech Server\SDK, and then press ENTER.

  3. Enter the appropriate MssContentExtract.exe syntax, and then press ENTER.

    To interrupt execution, press CTRL+C.

Note

Re-recognizer and Grammar Tuning Advisor support grammars contained in the tuning database or in a speech application project. Grammar files extracted by MSSContentExtract.exe are not supported by these two tools.

Syntax

MssContentExtract logfile
[@responsefile]
[/out:path]
[/from:datetime]
[/to: datetime]
[/y]
[/noaudio]
[/nogrammar]
[/nologo]
[/verbose]
[/help]

Parameters

Parameter Description

logfile

Specifies the paths and file names of the trace logs to read. Wildcards are supported. Use spaces to delimit multiple file names. Required.

@responsefile

Specifies the path and name of the file containing arguments for the command line. Optional.

/out:path

Specifies the folder to write to. If unspecified, the current folder is used. (Short form: /o) Optional.

/from:datetime

No events logged earlier than this date and time are extracted. If a date is omitted, the current date is used. Date and time are expected in the format specified in Control Panel under Regional and Language Options. (Short form: /f) Optional.

/to:datetime

No events logged later than this date and time are extracted. If a date is omitted, the current date is used. Date and time are expected in the format specified in Control Panel under Regional and Language Options. (Short form: /t) Optional.

/y

Specifies that the file overwrite warning is suppressed. Optional.

/noaudio

Specifies that audio extraction is suppressed. Optional.

/nogrammar

Specifies that grammar extraction is suppressed. Optional.

/nologo

Specifies that the copyright message is suppressed. Optional.

/verbose

Specifies that the file overwrite warning is suppressed. (Short form: /v) Optional.

/help

Specifies that a message displaying usage Help is displayed. (Short form: /h or /?) Optional.

Remarks

Audio data can span multiple trace log files as a result of the logging process writing data from a single utterance across multiple files. Streams that span multiple files can be extracted when both files are specified for the same invocation of MssContentExtract.exe. Any incomplete streams are identified by having the tilde (~) character appended to their file name extension (for example, 3cbcb133-bbd9-409e-9654-fc730c73597c-response.wav~).

Output files are .wav (audio) or .cfg (grammar). Wave file names are the context identifier for the turn in which the wave stream was logged. Grammar file names are the GrammarID.

Any argument with a space in it must be delimited with quotation marks.

Response File

The response file provides an alternate method for specifying arguments. Arguments in a response file can be entered in one line or one line per argument. Any text entered after a pound sign (#) in a response file is treated as a comment. See the following example of the content of a response file.

/from:"1/1/05 1:02:00"

/y

/verbose

#Use a pound sign to specify comment text.

The first of the following examples shows how to specify a response file.

Example

msscontentextract *.etl @responsefile.txt

msscontentextract *.etl /from:1/1/05 /to:"1/2/05 2:00:00"

See Also

Other Resources

Management of Tuning Data
Speech Application Analysis and Tuning