User guide
This topic describes how to configure and use the Tingwu - General Service Insight Agent.
Preparations
You must activate the Tingwu Agent service.
NoteAfter activation, you can use all Tingwu Agent services on the Alibaba Cloud Model Studio platform.
1. Create an application
On the console page, click the Create Application button in the middle or upper-right corner to create an application. You can create multiple applications.
2. Configure debugging
After you configure debugging, you can test the results multiple times. After confirming that the results meet your expectations, publish the application. Then, refer to API integration for actual development calls.
1. Provide content for insights
Content source
Select one of the following content sources:
-
Audio file: Supports audio files in MP3, WAV, M4A, WMA, AAC, OGG, AMR, FLAC, and AIFF formats, and video files in MP4, WMV, M4V, FLV, RMVB, DAT, MOV, MKV, WEBM, AVI, MPEG, 3GP, and OGG formats. The file size cannot exceed 6 GB.
-
Tingwu task: Enter the task ID (TaskID) of a completed transcription task in the current application. This can save on speech-to-text costs.
NoteAfter a task is created, the system returns the TaskID field in the response.
-
Dialogue content: Enter the dialogue text in the specified format. This can also save on speech-to-text costs.
Example 1:
Speaker 1: Dialogue content.
Speaker 2: Dialogue content.
Example 2:
Sales: Dialogue content.
Customer: Dialogue content.
Transcription model
You only need to select a transcription model when the content source is Audio File:
- Automotive model (Chinese, English, and Cantonese)
- paraformer-v2 (Chinese, English, Japanese, Korean, and Cantonese)
- paraformer-8k-v2 (Chinese)
- Education model (Chinese and English)
Audio type
You only need to select an audio type when the content source is Audio File:
- Telephone recording or 16K and above single-channel
- 16K and above multi-channel (recorded by in-vehicle device)
2. Create insight rules
Insight model
The following models are supported:
- ccai-pro (Default. Based on qwen-plus for enhanced content understanding and instruction following. Provides the best results.)
- qwen-plus
- qwq
Scenario description
Enter a description of the scenario for insight analysis, such as: A sales conversation for a specific car brand.
Insight scenario
Select the insight items for a specific scenario. The system provides two default scenarios, Sales and Customer Service, with their corresponding insight items. You can also customize insight scenarios and items.
Insight standard
Enter custom insight standards that describe job requirements, such as: Whether the customer service representative has a good service attitude. Whether the reception staff follows the complete service process. Whether the sales representative effectively solves customer problems.
Insight items
- Default Insights: If you select the Sales or Customer Service scenario, the system uses the predefined insights by default.
- Custom insight items (Up to 100 items): Add custom insight points that better match your business scenarios. You must enter the item name, insight standard, and the corresponding score for the item (plus or minus points, returned in the API response, optional).
NoteApplication configurations made in the interface apply to the API. You can also update parameters in the API to overwrite the interface configurations.
After you complete the preceding configurations, click the Analyze Now button to start debugging. Step 3. Configure API calls is only required for API calls.
To view debugging effects and test records, see Test results.
3. Configure API calls
Callback method
NoteFor information about setting the callback method, see How to obtain asynchronous task results through callbacks.
- HTTP POST protocol: Enter the corresponding URL. Tingwu sends a POST request to the configured HTTP URL. If the returned HTTP status code is 200, the check passes.
- No callback (active polling): If you choose not to set a callback, you can actively poll for results using the Agent task's polling API: getTask. The default queries per second (QPS) for polling for each account is 100.
- EventBridge: The processing results are sent to your service based on the default configuration of EventBridge in the China (Beijing) region. You must activate Alibaba Cloud EventBridge in advance.
When the server-side receives the callback message and returns an HTTP status code of 200, the application project is successfully created. The message format is as follows:
{
"output": {
"transcriptionPath": "https://***.oss-cn-hangzhou.aliyuncs.com/***",
"status": 0
},
"requestId": "***",
"taskInfo": {
"dataId": "***",
"userSpaceId": "llm-***",
"appId": "***",
"model": "tingwu-***",
"userId": "***"
}
}
Application name
Copy or modify the application name here.
Application ID
View or copy the application ID here.
Application description
Add a description for the application here.
3. Test results
After you click the Analyze Now button, wait a moment to view the dialogue content and insight results.
Dialogue content
- If the content source is Audio file or Tingwu task, the dialogue content box displays the corresponding audio or video transcription results, along with the speaker ID and dialogue timestamp.
- If the content source is text entered as Dialogue content, the dialogue timestamp may not be displayed, but this does not affect the insight analysis results.
Insight results
In the insight results analysis box, you can view hit and missed insight results, and see the specific original content that was hit.
You can configure insight items on the left. For more information, see Configure debugging.
Test records
All debugging test results for the current application are saved. Click the Test Records button in the upper-right corner of the console to view them.
The test records list displays multi-dimensional information, including the test time, task ID, task status, transcription model, insight model, dialogue content, and hit insight items, along with an operation button to view Details.

Click the Details button on the far right of a test record to view the complete Dialogue content and Insight results.

4. Publish the application
Click the Publish button in the upper-right corner of the console and enter a version description to publish the application. After the application is published, the changes take effect immediately.
Version management
After the application is published, you can view its historical versions in Version Management in the upper-right corner of the console. Select a historical version and click the Overwrite Current Draft button in the lower-right corner. The configuration of that version is then automatically applied to the current draft.
5. API integration
After you publish the application, wait a moment and then click the API Integration button at the top of the console. Review the Java and Python reference code, and integrate it into your business system.
6. Delete the application
In the My Applications list, you can delete an application.
Deletion is irreversible. To avoid affecting your online business, proceed with caution.