Murf AI icon

Murf AI

Murf AI APIs to generate speech, dubbing, and more

Actions5

Overview

This node provides translation capabilities using the Murf AI API. Specifically, the Translate operation under the Translation resource allows users to translate text from one language into another supported target language. It is useful in scenarios where automated multilingual content generation or localization is needed, such as translating user-generated content, documents, or messages within workflows.

Practical examples include:

  • Translating customer feedback collected in various languages into a single language for analysis.
  • Localizing marketing content dynamically based on user location.
  • Automating translation of chatbot responses to support multiple languages.

Properties

Name Meaning
Target Language The language into which the input text will be translated. Options include Bengali (India), Chinese (China), Croatian (Croatia), Dutch (Netherlands), English variants (Australia, India, Scotland, UK, US & Canada), French (France), German (Germany), Greek (Greece), Hindi (India), Italian (Italy), Japanese (Japan), Korean (Korea), Polish (Poland), Portuguese (Brazil), Slovak (Slovakia), Spanish (Mexico and Spain), Tamil (India).
Text The text string to be translated. Supports up to 4,000 characters per sentence, with a maximum of 10 sentences per request.
Additional Options - Batch Mode Boolean option indicating whether to process multiple texts as a batch, where each sentence is separated by a newline (max 10 sentences).

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON contains the translated text result. The exact structure depends on the underlying API response but generally includes the translated string mapped to a key like translatedText or similar.

No binary data output is produced by this translation operation.

Dependencies

  • Requires an active API key credential for the Murf AI service that supports translation endpoints.
  • The node makes HTTP requests to the Murf AI translation API endpoint.
  • Proper network connectivity and valid credentials are necessary for successful execution.

Troubleshooting

  • Common Issues:

    • Exceeding the character or sentence limits per request may cause errors.
    • Invalid or unsupported target language codes can lead to failed translations.
    • Network issues or invalid API keys will result in authentication or connection errors.
  • Error Messages:

    • Errors related to "Invalid API key" indicate misconfigured or expired credentials; verify and update the API key.
    • "Text too long" or "Too many sentences" errors mean input exceeds allowed limits; reduce input size accordingly.
    • "Unsupported language" errors suggest the selected target language is not recognized; choose a valid option from the list.
  • Resolution Tips:

    • Ensure the input text respects the length and sentence count constraints.
    • Confirm the target language is correctly selected from the provided options.
    • Check API key validity and network access permissions.

Links and References

Discussion