Skip to main content
The translation service converts text between language pairs using neural machine translation models, running fully on the Qualcomm NPU. Batch translation is supported — multiple strings can be translated in a single request.

Prerequisites

Ensure the Audio Analytics container is deployed and running. See Running the Audio Analytics container for setup instructions.

Available models

Query the models endpoint to get the list of available translation models:
The currently available models are: Use the name value from the response in your translation requests.

Endpoints

Translate text

Parameters:
  • text (required): Array of strings to translate
  • model (required): Translation model name
  • source_language (required): Source language code matching the selected model (e.g. en for opus-en-es)
  • target_language (required): Target language code
Response:

Batch translation

Translate multiple strings in a single request by passing an array of texts:
Response:
Results are returned in the same order as the input array.

Python example

Next steps

Speech recognition

Transcribe audio to text on-device

Text-to-speech

Synthesize speech from text on-device