Feedback

  • Contents
 

Find Localized File

This TUI tool retrieves the path to a localized version of an audio file (wav). Specify a path to the base file and then the tool retrieves the path to the version of the file based on the language you request.  If a language is specified, it has precedence otherwise; the language attribute of the interaction is used.  If no language attribute is set on the interaction, the default system language will be used. Both the InteractionID and the language are optional.

The name match is determined by the name of the file. For example, when searching for ringback.wav in English any of these files would be returned:

  • Ringback.en-US.wav

  • Ringback_en-US.wav

  • Ringbacken-US.wav

  • Ringback.en.wav

  • Ringback_en.wav

  • Ringbacken.wav

  • Ringback.wav

Inputs

Interaction ID (optional)

An optional InteractionID that determines the language for the search. The language attribute on the interaction is used.

File Path (string)

A string of the full path for the base file, for example C:\I3\IC\Resources\Ringback.wav

Language (optional)

The language code of the prompt phrase to be played. If no language is specified, the language attribute of the interaction will be used. If no language is specified for the interaction either, the default language will be used.

Outputs

Path to localized file (string)

A string that contains the path to the localized version of thefile, if it exists. For example, C:\I3\IC\REsources\Ringback-en_US.wav

Exit Paths

Success

The Success path is taken if a matching localized file was found.

Failure

The Failure path is taken if no matching localized file was found.