Open topic with navigation

# Configuration File Sections

The HPE IDOL Speech Server configuration file (`speechserver.cfg`) contains the following sections representing configurable areas.

`[Server]` | `[Logging]`
`[Service]` | `[MyLogging]`
`[Paths]` | `[ActionName]`
`[License]` | `[MyEventHandler]`

For details of these sections and the parameters for each section, see the HPE IDOL Speech Server Reference. The following sections describe the general configuration sections.

## [Server] Section

The `[Server]` configuration section contains general settings for HPE IDOL Speech Server. For example:

    [Server]
    Port=13000
    AdminClients=*.*.*.*
    QueryClients=*.*.*.*
    NumberOfTaskManagers=5
    TasksPerTaskManager=1
    MaxLangResources=2
    BinaryDataPort=16000
    TasksConfig=./speechserver-tasks.cfg
    TaskHistorySize=5000
    LegacyTaskStates=False

## [Service] Section

The `[Service]` section contains parameters that determine which machines are permitted to use and control the HPE IDOL Speech Server service. For example:

    [Service]
    ServicePort=40010
    ServiceControlClients=127.0.0.1
    ServiceStatusClients=127.0.0.1

## [Paths] Section

The `[Paths]` section contains parameters that specify directories that contain files that HPE IDOL Speech Server requires. For example:

    [Paths]
    FFmpegDirectory=C:\HewlettPackardEnterprise\SpeechServer\libraries
    CustomLMDir=T:\customLM
    TempDir=T:\temp
    TrainedAmDir=T:\trainedAM

## [License] Section

The `[License]` section contains licensing details, which you must not change. For example:

    [License]
    LicenseServerHost=127.0.0.1
    LicenseServerACIPort=20000
    LicenseServerTimeout=600000
    LicenseServerRetries=1

## [Logging] Section

The `[Logging]` section lists the logging streams to set up to create separate log files for different log message types (query, index, and application). It also contains a subsection for each of the listed logging streams, in which you can configure the parameters that determine how each stream is logged. For example:

    [Logging]
    LogDirectory=$USER_INSTALL_DIR$\logs
    LogTime=True
    LogEcho=True
    LogLevel=FULL

    0=ApplicationLogStream
    1=ActionLogStream
    2=SoftsoundLogStream

    [ApplicationLogStream]
    LogFile=Application.log
    LogTypeCSVs=application

    [ActionLogStream]
    LogFile=Action.log
    LogTypeCSVs=action

    [SoftsoundLogStream]
    LogFile=Softsound.log
    LogTypeCSVs=softsound

## [ActionName] Sections

The `[``ActionName``]` sections contain parameters that specify event handlers to use when an action starts, finishes, or returns an error. You configure the event handlers themselves in individual `[``MyEventHandler``]` sections.

Note: Only the `AddTask` and `LoadLanguage` actions support event handlers.

    [AddTask]
    OnError=ErrorHandler
    OnStart=StartHandler
    OnFinish=FinishHandler

## [MyEventHandler] Sections

The `[``MyEventHandler``]` sections contain parameters that control how HPE IDOL Speech Server processes actions when they start, finish, or return an error. You must create a `[``MyEventHandler``]` section for each handler configuration section that you specify in the `[``ActionName``]` sections.

    [ErrorHandler]
    LibraryName=HTTPHandler
    URL=http://handlers:8080/lo-proxy/callback.htm?

    [StartHandler]
    LibraryName=TextFileHandler
    FilePath=./EventData/

© 2013-2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback 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. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm