Translate ML

Prev Next

A node that translates any input event with a Text attribute.

Parameters

name
description
default
Source Language Language of the source text. tr-TR
Target Language Language of the target text en-US
Credential API Key Credential for the OpenAI service empty
OpenAI Model OpenAI Model for the request gpt-4.1-nano-2025-04-14
Prompt The specialized prompt with placeholders used for the translation. You are a professional translation system specialized in ...
Model Model information to be used by the service, required by some providers.
MaxTokens Maximum amount of tokens to be used by the provider. 2048
Temperature Temperature Value to be used by the provider 0.0
Provider Name of the provider VLLM
VLLM API Base Enter VLLM Api Base, required if the provider is VLLM
Azure API Base API Base string, required if the provider is Azure
Azure API Version API Version string, required if the provider is Azure
API Key API Key specific to the provider. Only required if the provider also requires it.

Inputs

Audio

 none

Events

name description known nodes that generate this event
Any event that has Data.Text Any Text based event. SR Milestone, etc. SR Http, SR Websocket, Translate etc.
Language Change Language Change events that are tagged with either "Source" or "Target" will set their respective languages. Language Identifier, Text Language Identifier, Event Tagger
Language Change notes

The language change event from Language Identifier and Text Language Identifier should be tagged using the Event Tagger Node in order to effectively change this node's language .

Outputs

Audio

 none

Events

name
description
Translation Contains the translated text in Data.Text field.

Remarks

Project Structure

The node expects events that have the Text field. Which means the node can be used with any and all SR nodes.
A minimum viable project that utilizes Translate node can be built as such:
image.png

With this project, one can use both Speech recognition and have the text translated to any desired language simultaneously.

Taking this a step further, we can construct a project such as:
image.png

Which recognizes a speech, translates the text into another language, and uses TTS to create simultaneous audio outputs.

Keep This in Mind

Keep in mind that the SR node needs a model in Source Language, and TTS node needs a Voice in the Target Language for this particular case.

Finally, here's a project that manipulates the Translation event so that it is punctuated, filtered, normalized before returning the output.
image.png

Keep This in Mind

Also, keep in mind that the SR node needs to support the Source Language, and Punctuation, Profanity Filter, Normalizer nodes need to support the Target Language.

Detailed Workflow

Utilizes Http calls to Knovvu ML Realtime Translation with the provided node parameters. Raises a Translation event for every successful response.

Supported flow types

Stream, Batch

Release Notes

v4.9.0
  • Added Node.