Configure Schedules

You can configure schedules by enabling the schedule in the IDOL Speech Server configuration file and adding a schedule file that defines the task schedule.

Create a Schedule File

The schedule file is a text file that contains the details of the schedules. Each line of the schedule file contains the details of a particular task schedule.

TIP:

You can add comment lines by starting the line with a pound sign (#).

Specify the task details in the following format:

Name;Hours;Minutes;Task_Type;Task_Parameters

where

Name is the name of the schedule.
Hours are the hours (0-23) that you want to run the schedule. Separate multiple hours with commas. If you want to run the task every hour, set this value to an asterisk (*).
Minutes are the minutes (0-59) in the specified hour that you want to run the schedule. Separate multiple minutes with commas.
Task_Type is the type of task that you want to run. This value is the same as the Type parameter for the AddTask action.
Task_Parameters are the parameters for the task that you want to run. Specify parameters in the same way that you use in the AddTask action string. For details of the available task parameters, see the IDOL Speech Server Reference.

For scheduled tasks, you can use the following special placeholder tags in the task parameters to add an appropriate value for each schedule run, rather than a fixed value for all runs:

${NAME} The schedule label.
${ITERATION} The iteration of this scheduled task being run.
${YEAR} The year that the task runs (YYYY).
${MONTH} The month that the task run runs (1-12).
${DAY} The day that the task runs (1-31).
${HOUR} The hour that the task runs (0-23).
${MINUTE} The minute that the task runs (0-59).

For example:

BreakingNewsENUK;*;0,30;Type=LanguageModelBuild&Lang=ENUK&ContentServer=content1.example.com&ContentDatabase=news&NewLanguageModel=${NAME}-${HOUR}${MINUTE}.tlm

This example schedule runs a LanguageModelBuild task at 0 and 30 minutes past each hour. Each time the schedule runs, it creates a new language model with a name that follows the template ${NAME}-${HOUR}${MINUTE}.tlm (for example BreakingNewsENUK-1230.tlm).

Enable the Schedule in the Configuration File

After you create the schedule file, you must enable the schedule in the IDOL Speech Server configuration file.

To enable a schedule

  1. Open your configuration file in a text editor.

  2. Find the [Schedule] section, or create one if it does not exist.

  3. Set EnableSchedule to True.

  4. Set ScheduleFile to the path and file name of the file that contains your schedule details. You can specify an absolute or relative file path. If you specify a relative path, it is considered as being relative to the IDOL Speech Server installation directory.

  5. Save and close the configuration file.

  6. Restart IDOL Speech Server to implement your changes. IDOL Speech Server starts to run the schedule at the next scheduled time.

For example: 

[Schedule]
EnableSchedule=True
ScheduleFile=C:\SpeechServerFiles\Schedule\speechserver-schedule.txt

_HP_HTML5_bannerTitle.htm