Open topic with navigation

# Align the Transcript

The transcript aligner compares the speech-to-text transcript and the original transcript text to produce an aligned transcript. The aligner either uses words as whole units or breaks them down into phonemes or letters. You can therefore select one of three modes:

- `words`
- `prons` (phonemes)
- `letters`

In addition, the alignment algorithm can also work in one of two polarity modes:

- In positive polarity mode, only the matched units get a positive score, and mismatches are not penalized. This mode is the default mode for transcript alignment, and is more robust to transcript and speech data errors.
- In negative polarity mode, the matched units get a zero score, and the mismatched units are penalized. HPE recommends this mode if the transcripts are very accurate or the speech-to-text output is of a poor quality.

To run the transcript alignment task

- Send an `AddTask` action to IDOL Speech Server, and set the following parameters:

  `Type` | The task name. Set to `TranscriptAlign`.
  `TxtFile` | The normalized transcript file.
  `CtmFile` | The speech-to-text transcript produced for the audio file.
  `Out` | The file to write the aligned transcript to.
  `MatchType` | The mode–either `words`, `prons`, or `letters`.

For example:

    http://localhost:13000/action=AddTask&Type=TranscriptAlign&TxtFile=C:\data\transcript.txt&CtmFile=C:\misc\speechtext.ctm&Out=AlignedTranscript.ctm&MatchType=words

This action uses port `13000` to instruct IDOL Speech Server, which is located on the local machine, to compare the original transcript `transcript.txt` with the speech-to-text transcript `speechtext.ctm` to produce an aligned transcript, `AlignedTranscript.ctm`. The action instructs IDOL Speech Server to use the `words` alignment mode.

This action returns a token. You can use the token to:

- Check the task status. See Check the Status of a Task.
- Retrieve the results. See Find Recommended Language Resources to Use in a Task. For an explanation of the results file, see Interpret the Results.

© 2013-2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm