Skip to main content

Speech Translation: start task

POST 

/api/technology/speech-translation-whisper-enhanced

Start an Enhanced Speech Translation Built on Whisper task for a media file.

Features of Enhanced Speech Translation Built on Whisper​

  • Multiple models can be deployed in the Speech Platform. You can select which one the task uses with the model query parameter.
  • Multi-channel audio files are supported.
  • Channel ID is included in individual translation segments.
  • The target language of the translation can be specified with the output_language query parameter. Supported output languages can be retrieved from the API in the response to the Speech Platform Info endpoint. Look for the technologies entry with technology set to text_translation; its models field lists the deployed models which correspond to supported output languages. English is always supported, even if it is not included in the list.
  • Source language for translation of the whole media file can be forced with the source_language query parameter, otherwise it is detected automatically.
  • Language switching can be activated with the language_switching query parameter. With this feature, the technology automatically identifies the predominant language spoken within each thirty-second segment of the file and uses it as the source language for translating that particular segment.
  • If source_language is set, language_switching is ignored.
  • A language explicitly set as the source_language must be licensed. Otherwise, an error is raised. Supported languages for a Speech to Text model can be retrieved from the API in the response to the Speech Platform Info endpoint when it's called with the include_model_features query parameter set to true. Look for the technologies entry with technology set to enhanced_speech_to_text_built_on_whisper; its models field lists the deployed models and their features entry lists the supported source translation_languages.
  • When the source_language is autodetected or language_switching is used, only licensed languages are considered as the source for the translation. In case the actually detected language is not licensed, the closest licensed language is used instead.
  • Processing can be limited to a specific time segment in the media file with query parameters.

Multiple models​

Speech Translation supports multiple models that can differ in performance, accuracy, and supported languages. Models can even be adapted to improve performance on domain-specific data. The list of deployed models can be found in the response to the Speech Platform Info endpoint. Look for the technologies entry with technology set to enhanced_speech_to_text_built_on_whisper; its models field lists the deployed models.

Request​

Responses​

Speech Translation task was accepted. Follow the Location header to poll for the task state.

Response Headers
    X-Locationdeprecated

    Use the Location header instead. Will be removed in version 2027.1.0.

    Example: /api/technology/speech-translation-whisper-enhanced/123e4567-e89b-12d3-a456-426614174000
    Location

    A URL the client should poll for task state and result.

    Example: /api/technology/speech-translation-whisper-enhanced/123e4567-e89b-12d3-a456-426614174000