Can I call Tongyi Tingwu from outside Alibaba Cloud? Transcribing recordings and live speech

July 28, 2025

I wanted to understand how interview assistants turn conversations into text, so I ran a local transcription experiment using a 35-second English mock-interview recording and a microphone. I also wanted to know how to send prerecorded files and ongoing speech to a commercial API. First I asked which providers had good speech recognition APIs, then followed up: “Is Alibaba Cloud’s product Tingwu? Can I use it from a server outside Alibaba Cloud?”

Yes, you can call it from a server outside Alibaba Cloud. Tongyi Tingwu offers network-accessible APIs (OpenAPI). Your application needs to reach the service endpoint and sign its requests with an authorized Alibaba Cloud identity. The AppKey you get after enabling the service and creating a Tingwu application identifies the application. Signing credentials prove who’s making the call. Your program can run on an office computer or another cloud. Once you’ve chosen where it runs, the next question is how audio gets from that computer to Tingwu. Prerecorded files and live microphones take different paths.12

Automatic speech recognition (ASR) answers “What was said?” If it recognizes “Design an online reading app” in an interview recording, it has produced an ASR result. Extracting questions from an hour of conversation, organizing chapters, and creating a summary require additional processing after transcription. Tongyi Tingwu groups recording transcription and these optional capabilities into tasks. The application can retrieve just the results it needs. Alibaba Cloud also offers Intelligent Speech Interaction. Tingwu’s live streaming example uses that service’s real-time transcription SDK. When someone says “Alibaba Cloud ASR,” check which product’s API they mean and whether it returns recognition events or a completed task’s results.34

If I already have an MP3, who downloads it?

Suppose my program and testinterview.mp3 are on the same Ubuntu computer. My program can open the file. Giving Tingwu /home/me/testinterview.mp3, however, supplies only a path on my machine. For an offline task I give Tingwu an HTTP or HTTPS URL it can download, and Tingwu reads the file from that URL. “Offline” means the recording has finished and can be processed as a whole. Recognition still happens in the cloud.5

For example, put the MP3 in object storage (a service for accessing files by URL) and generate a time-limited read link to that specific file. The bucket can remain private as long as the link is still valid when Tingwu retrieves it. If you run your own download service, check the same thing: can Tingwu open that URL from its network and receive the audio directly? A sharing page that depends on my browser’s login session may give Tingwu nothing but a login page.5

In the Tingwu Python SDK 2.0.23, the task creation request is PUT /openapi/tingwu/v2/tasks. The following request body is simplified from the official example. Replace both the application identifier and the file URL. type=offline goes in the URL query parameters, and the SDK handles signing.15

{
  "AppKey": "你的听悟应用标识",
  "Input": {
    "SourceLanguage": "en",
    "FileUrl": "https://media.example.org/testinterview.mp3"
  }
}

After submission, save the TaskId. It works like a claim number for the recording. The program can later use it with GetTaskInfo to check the status. Once the task completes, read the transcription result file referenced by Result.Transcription. The backend accepting the task, successfully reading the audio, and finally generating text are three separately verifiable steps. Showing the whole transcript the instant you see a TaskId is one step too early.15

What if I want text on the page while someone speaks?

There’s no complete MP3 to download yet. The application backend first creates a live recording task and receives a task ID and a MeetingJoinUrl. The latter is the streaming address for this task. The side capturing audio connects there and keeps a bidirectional WebSocket open. It sends small chunks of audio as they arrive and receives recognition results from the same live session. The backend’s identity credentials can stay on the server, while the capture client uses the streaming address issued for this task.14

The official example suggests a handy debugging technique: “使用本地文件模拟 真实场景下音频流实时采集” (use a local file to simulate real-time audio capture). It reads known audio in chunks to simulate what a microphone produces over time. This lets you verify format, sample rate, and pacing before switching to a real microphone. On receiving an intermediate recognition result for a sentence, the page can update the current line. When the service decides the sentence is complete, the page can commit that line. For a complete transcript or summary, use the task ID to query the final result after the task ends.46

Integration decisionPrerecorded interview MP3Ongoing conversation
Who sends the audio?Tingwu downloads the audio from the submitted file URLThe capture program connects to the streaming URL and sends chunks
What does the program get first?A task ID for checking progressA task ID and this task’s streaming URL
When does the user see text?After completion, open the transcription resultShow recognition events while the speaker talks, then retrieve the full result after the session
Where to check if there’s no textCheck that the URL is readable, then check task statusCheck audio capture, format, and whether events are arriving over the connection

How can I compare price and quality on the same recording?

I looked up Tingwu’s documentation on streaming, result retrieval, hotwords, and pricing. For the online-reading-app question, the smallest test requires only English speech-to-text. If I also want a summary of the question, I need to count the summary feature separately. At the time, Tingwu’s product announcements already treated speech-to-text and several optional processing steps as separately billed items. When comparing two quotes, write down the features enabled for each, then compare tasks of the same duration to see what accounts for the difference.3

Use the same recording to compare recognition quality too. First, transcribe a reference by ear and mark the key requirements in the question and proper names such as CoderPad. When comparing complete transcripts, check whether those words are missing. When comparing streaming APIs, also record how long the first subtitle takes to appear and how often the interim text changes. The system I actually tested was local Whisper. For Tingwu, I got as far as the API and pricing documentation. I have no Tingwu transcript of this recording.

Footnotes

  1. Alibaba Cloud SDK. (2025, March 31). alibabacloud-tingwu20230930 2.0.23 [Python SDK]. PyPI. 当期发行文件,见包内 client.py 的 create_task_with_options、get_task_info_with_options 和 models.py 的请求与返回类型。 ↩ ↩2 ↩3 ↩4

  2. 阿里云. (n.d.). 使用 OpenAPI. 阿里云帮助中心. 接入点说明、用户身份与调用方式。 ↩

  3. 阿里云. (2024). 产品动态. 阿里云帮助中心. 对应日期的“价格调整”“AI 模型能力升级”及离线转写条目。 ↩ ↩2

  4. 阿里云. (2024, August 13). 实时推流. 阿里云帮助中心. 实时推流文档入口;引文见其子页《交互流程与实现》,“示例代码”Java 版 testRealtimeTrans 读取音频前的注释。 ↩ ↩2 ↩3

  5. 阿里云. (n.d.). 音视频文件离线转写. 阿里云帮助中心. 提交任务、Input.FileUrl 与查询任务示例。 ↩ ↩2 ↩3 ↩4

  6. 阿里云. (n.d.). 获取结果. 阿里云帮助中心. 通过任务查询或回调获取实时记录结果。 ↩

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-07-28). Can I call Tongyi Tingwu from outside Alibaba Cloud? Transcribing recordings and live speech. https://caiborui.com/blog/2025-07-28-zh-tingwu-file-realtime-transcription-entrans

@misc{borui2025-5f66ba12,
  author = {borui},
  title = {{Can I call Tongyi Tingwu from outside Alibaba Cloud? Transcribing recordings and live speech}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-07-28-zh-tingwu-file-realtime-transcription-entrans}
}