This topic describes how to quickly integrate the real-time transcription capabilities of Tingwu Smart Meeting Summary.
Prerequisites
- You have activated the pay-as-you-go service for Tongyi Tingwu - Smart Meeting Summary.
- You have published a smart meeting summary application. To view your application, go to the Tongyi Tingwu - Smart Meeting Summary console.
Integration flow
1. Configure the agent
- In the navigation pane on the left, choose Application Configuration > Agent > Model Studio Application. Click Add. In the Recommended Applications section, find and select Smart Meeting Summary. Ensure that the intent recognition feature is enabled for this application.
- To the right of Smart Meeting Summary, click the Settings button to configure the application.
- For the Select Tongyi Tingwu Application parameter, select a smart meeting summary application that you have published.
-
Modify the real-time recording summary settings. The configuration items are described as follows:
- Start command: A custom command to start real-time transcription, such as "start real-time meeting recording". If you do not set this parameter, you can use default commands, such as "start real-time transcription", to start the transcription.
- Resume command: A custom command to resume real-time transcription, such as "resume real-time meeting recording". If you do not set this parameter, you can use default commands, such as "resume real-time transcription", to resume the transcription.
- Exit/Pause wake word: After real-time transcription starts, you must say both the wake word and an exit or pause command to exit or pause the transcription. This feature prevents accidental termination. For example, "Xiaoyun, exit real-time transcription". If you do not set a wake word, the default is "Xiaoyun". To ensure stable recognition, add the wake word to the hotwords list in the Tingwu Smart Meeting Summary Agent to improve recognition accuracy.
- Click OK. Save and publish the application. You can also test the real-time transcription feature using voice commands on the console page.
2. Interaction flow
The following figure shows the interaction flow.

-
Establish a connection with the multimodal server through a WebSocket or RTC link. Then, use a voice command, such as "start real-time transcription", to invoke the real-time transcription feature of the Smart Meeting Summary Agent. For more information about the parameter format, see Start transcription parameters.
- Your custom start command is also effective.
- You can use voice commands to specify parameters, such as translation, target language, and number of speakers. These parameters overwrite the settings in your Tingwu application. For example, "start real-time transcription, translate to English, multiple speakers". If the command does not include translation or speaker options, the system uses the settings from the Tingwu application to generate the summary.
- Note: You can use the real-time transcription feature only in full-duplex mode.
-
When the command intent is correctly routed to the Tingwu Agent, the multimodal application server returns a client-side command named
meeting_state_change. This command includes the transcription start status and adataId. You must save thisdataIdbecause you will need it to resume the transcription later. For more information about the client-side command parameters, see Client-side command list. - You can send the voice stream through the WebSocket or RTC link.
- After real-time transcription starts, the multimodal service does not respond to voice commands. Instead, it returns transcription or translation results in real time. For more information about the result parameter format, see Transcription result parameters.
- You can use the voice command "wake word + pause real-time transcription" to pause the current transcription. Tingwu temporarily saves the transcription results for 24 hours from the start time.
-
The multimodal application server returns a client-side command named
meeting_state_change. This command includes the transcription paused status and thedataId. For more information about the client-side command parameters, see Client-side command list. After you receive this command, the system automatically exits to conversation mode, and you can continue to interact with the voice assistant. -
You can use the voice command "resume real-time transcription" to resume a transcription with a specific
dataId. ThedataIdis valid for 24 hours. After 24 hours, the results are lost. To resume a transcription, you must include thedataIdin theStartcommand. For more information about the parameter format, see Resume transcription parameters.- This is where the custom recovery instruction you configured is applied.
- If you try to resume a transcription with an incorrect or expired
dataId, the multimodal server returns the message "Restart failed, recording has expired". If you do not provide adataId, the call fails.
-
When the command intent is correctly routed to the Tingwu Agent, the multimodal application server returns a client-side command named
meeting_state_change. This command includes the transcription resumed status and thedataId. For more information about the client-side command parameters, see Client-side command list. - You can use the voice command "wake word + exit/end real-time transcription" to end the current transcription. Tingwu automatically creates a summary generation task and then generates results, such as summaries and to-do items, based on your configuration in the Tingwu application.
-
The multimodal application server returns a client-side command named
meeting_state_change. This command includes thedataIdand a status indicating that transcription has stopped. For more information about the client-side command parameters, see Client-side command list. After you receive this command, the system automatically returns to conversation mode, allowing you to continue interacting with the voice assistant.
3. Fetch the generated smart meeting summary
After the real-time transcription ends, you can asynchronously wait for the summary to be generated and pushed to your EventBridge service. For more information, see Asynchronously obtain smart meeting summary results.
Start transcription parameters
Set the following parameters in the Start command.
Parameter | Type | Description |
|---|---|---|
payload.parameters.upstream.mode | string | The interaction mode. For real-time transcription, this must be set to `duplex`. Other modes are invalid. |
Resume transcription parameters
Set the following parameters in the Start command.
Parameter name | Type | Description |
|---|---|---|
payload.parameters.upstream.mode | string | The interaction mode. For real-time transcription, this must be set to `duplex`. Other modes are invalid. |
payload.parameters.biz_params.user_defined_params.tingwu_meeting.dataId | string | The `dataId` of the transcription to resume. |
Transcription result parameters
The agent transcription result is returned in the RespondingContent event.
Parameter | Type | Description |
|---|---|---|
payload.output.extra_info.agent_result | object | The agent execution result. |
payload.output.extra_info.agent_result.agentId | string | The value is fixed as `tingwu-meeting-realtime`. |
payload.output.extra_info.agent_result.agentData | json | The transcription result. |
agentData may contain three types of events: speech-listen, recognize-result, and speech-end. For more information about their descriptions and parameter lists, see Receive events returned from the server.
Client-side command list
Client-side command parameter | Type | Description |
|---|---|---|
payload.output.extra_info.commands | string | A list of client-side commands. You can deserialize it into a JsonArray. |
payload.output.extra_info.commands[i].name | string | The name of the client-side command. For smart meeting summary real-time transcription, the name is `meeting_state_change`. |
payload.output.extra_info.commands[i].params | JsonArray | A list of parameters required to execute the client-side command. It always contains two parameters. |
payload.output.extra_info.commands[i].params[0].name | string | The name of the first parameter of the client-side command. It indicates the current transcription status. The value is fixed as `state`. |
payload.output.extra_info.commands[i].params[0].normValue | string | The value of the first parameter of the client-side command. It indicates the current transcription status. Transcription started: `state_started` Transcription paused: `state_paused` Transcription resumed: `state_resumed` Transcription ended: `state_stopped` Transcription expired: `state_expired` |
payload.output.extra_info.commands[i].params[1].name | string | The name of the second parameter of the client-side command. It indicates the `dataId` of the current transcription. The value is fixed as `dataId`. |
payload.output.extra_info.commands[i].params[1].normValue | string | The value of the second parameter of the client-side command. It is the value of the current `dataId`, for example, `Rq******4nro`. |