Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How can I call Whisper_Cloudflare's translation function via API?

2025-08-19 177

The translation function is realized by passing parameters through the API, the steps are as follows:

  1. Setting the task type: Add to the request task=translate Parameters.
  2. Specify target language: By language=en(or other language code) defines the output language.
  3. Send audio data: POST as binary to the worker URL of the /raw Interface.

Example cURL request:

curl -X POST "https://whispercloudflare.tchepai.com/raw?task=translate&language=en" 
-H "Content-Type: application/octet-stream" 
--data-binary "@audio.mp3"

The return result is the translated text and timestamp (in JSON format).

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish