AvatarConfig class
定义说话虚拟形象配置。
构造函数
| Avatar |
创建和初始化此类的实例。 |
属性
| background |
获取背景色。 |
| background |
获取背景图像。 |
| character | 定义头像字符。 |
| customized | 指示是否自定义了说话头像。 |
| remote |
获取远程 ICE 服务器。 |
| style | 定义虚拟形象样式。 |
| use |
指示是否为自定义头像使用内置语音。 |
| video |
定义说话虚拟形象输出视频格式。 |
构造函数详细信息
AvatarConfig(string, string, AvatarVideoFormat)
创建和初始化此类的实例。
new AvatarConfig(character: string, style: string, videoFormat: AvatarVideoFormat)
参数
- character
-
string
头像字符。
- style
-
string
虚拟形象样式。
- videoFormat
- AvatarVideoFormat
说话虚拟形象输出视频格式。
属性详细信息
backgroundColor
获取背景色。
string backgroundColor
属性值
string
backgroundImage
获取背景图像。
URL backgroundImage
属性值
URL
character
定义头像字符。
character: string
属性值
string
customized
指示是否自定义了说话头像。
boolean customized
属性值
boolean
remoteIceServers
获取远程 ICE 服务器。
RTCIceServer[] remoteIceServers
属性值
RTCIceServer[]
远程 ICE 服务器。
style
定义虚拟形象样式。
style: string
属性值
string
useBuiltInVoice
指示是否为自定义头像使用内置语音。
boolean useBuiltInVoice
属性值
boolean