XenoGuard 4.0 Documentation

Translate Audio To English

ActionStep Reference » OpenAI » Audio » Translate Audio To English

The OpenAI Audio Translate To English ActionStep translates an audio content into English text. It's a part of the OpenAI suite of tools that makes use of OpenAI's powerful API to process natural language audio files.

[-] Hide
  1. Open the OpenAI node in the Workspace Explorer.
  2. In the Audio node, select the Translate Audio To English ActionStep.

Parameters:

The ActionStep has the following input parameters:


Name Description
API Key
The OpenAI API key.

Allowed Context Scopes
 [Fixed, Local, Global, Reference]
Allowed Context Types [Fixed, Variable, Parameter, Result, Enum]
Allowed Context Values [String]
Audio File
The target audio file.

Allowed Context Scopes
 [Fixed, Local, Global, Reference]
Allowed Context Types [Fixed, Variable, Parameter, Result, Enum]
Allowed Context Values [String]
Timeout
The timeout in milliseconds for the API request.

Allowed Context Scopes
 [Fixed, Local, Global, Reference]
Allowed Context Types [Fixed, Variable, Parameter, Result, Enum]
Allowed Context Values [Int64]

Results:

The ActionStep returns the following results:

name Description
Success
Indicates the result of the OpenAI request.

Allowed Context Scopes
 [Fixed, Local, Global, Reference]
Allowed Context Types [Fixed, Variable, Parameter, Result, Enum]
Allowed Context Values [Boolean]
Output
The result text from the audio file.

Allowed Context Scopes
 [Fixed, Local, Global, Reference]
Allowed Context Types [Fixed, Variable, Parameter, Result, Enum]
Allowed Context Values [String]

Example 1 (Audio Translation and Playback ActionScript):

This example showcases an ActionScript designed to translate an audio file to English and then play back the translation. The script starts by defining a key for OpenAI and sets the operation to synchronous execution. It executes two parallel actions: the first plays an audio file, and the second waits for a short period before initiating the 'OpenAI Translate Audio To English' ActionStep, which translates the content of a German audio file into English using the specified API key. After the translation is complete, the script uses a speech output action with Microsoft Zira's voice to read out the translated text, which in this case is "OpenAI is a company based in California that focuses on the development of artificial intelligence, AI," ensuring that the user not only receives the translation but also hears it spoken aloud.


See other operations:

Transcribe Audio
Text To Speech