SaveVoiceSegment

Purpose

Use SaveVoiceSegment to save the digitized voice data that speaks a voice segment from temporary workspace to disk.


A screen capture of the Action SaveVoiceSegment window

Description

When a voice segment is first recorded, it is saved in a temporary workspace so that it can be rerecorded if necessary. SaveVoiceSegment saves the voice segment to disk.

Parameters

The parameters for SaveVoiceSegment distinguish this particular voice segment from all the others in the file.

Possible results

SaveVoiceSegment can have one of the following results:

Succeeded
The voice segment has been stored in the specified voice directory.
Failed
The voice segment was not stored in the specified voice directory
Invalid Request
The directory does not exist.

ASCII Syntax

With an ASCII editor, use these parameters in the following order:

  1. "VDIR_NAME"
  2. Voice directory name
  3. Segment ID
  4. Language

Or:

  1. "VDIR_ID"
  2. Voice directory ID
  3. Segment ID
  4. Language

For example:

label: "Check Edges"
        SaveVoiceSegment("VDIR_NAME", System, loc1_n, SV142)
        # SV142...App Profile Language
          edge EDGE_SAVE_VCE_SUCCESSFUL:         successful
          edge EDGE_SAVE_VCE_UNSUCCESSFUL:unsuccessful
          edge EDGE_SAVE_VCE_INV_REQ:           inv_req
        ;
        SaveVoiceSegment("VDIR_ID", 1, loc1_n, SV142);
          # SV142...App Profile Language

The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.