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 `[Session]` section, add a new analysis task by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=Ingest
       Engine1=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.
   `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, Micro Focus recommends setting this parameter because restricting the possible languages can increase accuracy and improve performance. For a list of supported languages with language codes, see Speech Analysis Supported Languages.
   `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.
   `SegmentDuration` | (Optional, default `15s`) The amount of audio to analyze as a single segment.

   For example:

       [SpeechLanguageId]
       Type=LanguageID
       LangList=ENUK,DEDE
       Mode=Cumulative
       SegmentDuration=30s

   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. Micro Focus recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus 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 swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm