The IDOL Speech Server configuration file (speechserver.cfg
) contains the following sections representing configurable areas.
[Server]
|
[Logging]
|
[Service]
|
[MyLogging]
|
[Paths]
|
[ActionName]
|
|
[MyEventHandler]
|
For details of these sections and the parameters for each section, see the IDOL Speech Server Reference. The following sections describe the general configuration sections.
The [Server]
configuration section contains general settings for IDOL Speech Server. For example:
[Server] Port=13000 NumberOfTaskManagers=5 TasksPerTaskManager=1 MaxLangResources=2 BinaryDataPort=16000 TasksConfig=./speechserver-tasks.cfg TaskHistorySize=5000 LegacyTaskStates=False
The [Service]
section contains parameters that determine which machines are permitted to use and control the IDOL Speech Server service. For example:
[Service] ServicePort=40010
The [Paths]
section contains parameters that specify directories that contain files that IDOL Speech Server requires. For example:
[Paths] FFmpegDirectory=C:\HewlettPackardEnterprise\SpeechServer\libraries CustomLMDir=T:\customLM TempDir=T:\temp TrainedAmDir=T:\trainedAM
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
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
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.
Only the AddTask
and LoadLanguage
actions support event handlers.
[AddTask] OnError=ErrorHandler OnStart=StartHandler OnFinish=FinishHandler
The [MyEventHandler]
sections contain parameters that control how 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/
You can use the [ACIEncryption]
section to encrypt communications between ACI servers and any applications that use the HPE ACI API. For example:
[ACIEncryption] CommsEncryptionType=GSS ServiceName=Kerberos
The [AuthorizationRoles]
defines roles that enable a particular set of actions for particular clients, SSL identities, and GSS principals. You must create a subsection for each authorization role that you define in the [AuthorizationRoles]
configuration section.
For example:
[AuthorizationRoles] 0=AdminRole 1=UserRole [AdminRole] StandardRoles=Admin,Index,ServiceControl Clients=localhost SSLIdentities=admin.example.com [UserRole] StandardRoles=Query,ServiceStatus SSLIdentities=admin.example.com,userserver.example.com
|