Importing voice segments from the file system

If you have sound files recorded in a studio or using a sound recorder utility, you must import them from your file system into the Java voice segment space. You can also import voice segments that have been exported from another voice response node: see Exporting voice segments to the file system.

Figure 1. Importing voice segments into the Java voice segment space
This picture shows the import of voice segments into the Java voice segment space.

Create a dtjplex control file, as shown in Figure 2 or Figure 3, change to the directory containing the files to be imported (because the file names in the dtjplex control file are relative to the current directory), and then execute one of the following commands:

You can import the following types of audio data into any base Blueworx Voice Response system:

The data is converted, at the same time as the import, to the appropriate format for that Blueworx Voice Response system.

You can also import data in ulaw, alaw, adpcm, gsm format, if the base Blueworx Voice Response system supports that format. For example, you can import an alaw file into an E1 Blueworx Voice Response system but not into a T1 Blueworx Voice Response system. Use the file_encoding parameter to specify this.

For reference information, see dtjplex importVoiceHost action.

Examples

Figure 2. Example of control file for importing voice segments from another voice response node on the same operating system
# Set overall parameter values:
# Source:
segment_category=Pizzas
segment_locale=en_US
# Destination:
import_hints=Q0S0
# Set parameter values for individual segments:
file_name=hello
segment_name=hello
;
file_name=goodbye
segment_name=goodbye
;
Figure 3. Example of control file for importing WAV files into a T1 system (any platform)
# Set overall parameter values:
# Source:
file_encoding=wav
# Destination:
segment_encoding=ulaw
segment_rate=8000
segment_category=Pizzas
segment_locale=en_US
# Set parameter values for individual segments:
file_name=hello.wav
segment_name=hello
;
file_name=goodbye.wav
segment_name=goodbye
;

To import the voice segments specified in the file called pizzas.txt into the Java voice segment space on the local host:

dtjplex -action importVoiceHost -controlfile pizzas.txt

To import the voice segments specified in the file called pizzas.txt into the Java voice segment space on the host called annapurna:

dtjplex -action importVoiceHost -host annapurna -controlfile pizzas.txt

To import the voice segments specified in the file called pizzas.txt into the Java voice segment space on all hosts:

dtjplex -action importVoiceAll -controlfile pizzas.txt 

Related information