The VoiceSegment class is used to represent a voice segment stored on the Blueworx Voice Response server. This segment can contain pre-recorded speech to be used by the voice application, or it can be empty in preparation for obtaining input from the caller. VoiceSegments can be deleted, imported and exported dynamically, see Handling voice segments dynamically.
To distinguish the voice segment from other segments on the server, each VoiceSegment object has a name, a category and a locale.
public class InApp extends WVRApplication { . . . // Create the Welcome and Difficulties segment objects public VoiceSegment vs_welcome = new VoiceSegment("App1Segments", "Welcome"); public VoiceSegment vs_difficulties = new VoiceSegment("App1Segments", "Difficulties"); . . . }To manage your voice segments, specify for each one a category defined in your Voice Segment Database and a unique label identifying the voice segment.