This topic describes how to send text for voice broadcast during an audio and video call.
Feature description
Voice broadcast lets you call an OpenAPI operation and pass the text to be broadcast as a parameter. After the client receives the text, it immediately uses speech synthesis to convert the text into speech and broadcast it. This ensures that the information is clearly conveyed to the user.
Scenarios
In smart home scenarios, a user can send an instruction to a smart device, such as adjusting the air conditioner temperature or turning on the lights, using a mobile application or voice assistant. The system then calls an OpenAPI operation to send the text of the operation result. The agent then broadcasts a message to inform the user if the device operation was successful. This feature is also applicable to in-vehicle infotainment (IVI) systems. When a vehicle's smart system detects an abnormal situation, such as low tire pressure or insufficient fuel, it calls an OpenAPI operation to send the relevant text information to the agent. The agent then broadcasts a message to the driver, prompting them to check the vehicle's condition to ensure driving safety.
Implementation
Server-side implementation of proactive broadcasting
SendAIAgentSpeech - Send AI agent speech
package com.aliyun.rtc;
import com.aliyun.tea.*;
public class SampleSendAIAgentSpeech {
/**
* description