返回首页
Lanson Flow 文档库

File-level translation for offline transcription.

::callout{icon="i-lucide-triangle-alert" color="amber"} translate_to is not currently accepted by the offline transcription endpoint. Sending it in the request body has no effect. ::

Usage

Specify translate_to when submitting a transcription job:

curl -X POST https://audio.lansonai.com/v1/audio/transcriptions/jobs \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "audio_url": "https://cdn.example.com/audio.wav",
    "language": "zh",
    "translate_to": "en"
  }'

| Parameter | Description | |---|---| | language | Source language of the audio | | translate_to | Target language for translation |

Omit translate_to to get transcription only, without translation.

Source and translation correspondence

Translation results correspond to source segments. Each segment's translation follows the source text.

Latency

Translation adds processing time. Measured translation latency is available on the [Service Status](https://control.lansonai.com/status/lanson-audio) page.

Related

  • [Transcribe Audio](/docs/recorded/transcribe-audio) — submit a job
  • [Live Translation](/docs/concepts/live-translation) — translation concepts
  • [Realtime Translation](/docs/realtime/realtime-translation) — real-time translation