Open topic with navigation

# Identify the Language of Speech

To identify the language of speech

1. Create a new configuration to send to Media Server with the `process` action, or open an existing configuration that you want to modify.

2. In the `[Analysis]` section, add a new analysis task by setting the `AnalysisEngineN` parameter. You can give the task any name, for example:

       [Analysis]
       AnalysisEngine0=SpeechLanguageId

3. Create a new section to contain the settings for the task, and set the following parameters:

   `Type` | The analysis engine to use. Set this parameter to `LanguageID`.
   `Input` | (Optional) The audio track to process. If you do not specify an input track, Media Server processes the first audio track produced by the ingest engine.
   `LanguageIdServers` | The host name and ACI port of an IDOL Speech Server. Separate the host name and port with a colon (for example, `speechserver:15000`). You can specify multiple IDOL Speech Servers by using a comma-separated list. Media Server can connect to only one IDOL Speech Server at a time, but you can provide multiple servers for failover. TIP: You can specify a default IDOL Speech Server to use for all language identification tasks by setting the `LanguageIdServers` parameter in the `[Resources]` section of the Media Server configuration file.
   `LangList` | (Optional) The list of languages to consider when running language identification. If you know which languages are likely to be present in the media, HPE recommends setting this parameter because restricting the possible languages can increase accuracy and improve performance.
   `Mode` | The type of language identification task to run. Set this parameter to one of the following options: `Boundary` - Language identification seeks to determine boundaries in the audio where the language changes, and returns results for the time between boundaries. `Segmented` - The audio is segmented into fixed-size segments and Media Server does not consider previous segments when running analysis. You can use this mode to determine the language if there are multiple languages present in the audio, but this mode does not identify the exact boundary points at which the language changes. `Cumulative` - Media Server outputs results to the result track after analyzing each audio segment but every result is based on analysis of the current segment and all of the previous segments. You might use this mode if you are processing a video file and expect the audio to contain only one language or you want to identify the primary language that is spoken. NOTE: Cumulative mode is not suitable for analyzing continuous streams.
   `SegmentSize` | (Optional, default `15`) The amount of audio to analyze as a single segment, in seconds.

   For example:

       [SpeechLanguageId]
       Type=LanguageID
       LanguageIDServers=speechserver:15000
       Mode=Cumulative
       SegmentSize=30

   For more information about the parameters that you can use to configure this task, refer to the Media Server Reference.

4. Save and close the configuration file. HPE recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

© 2017 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