Avatar Control
stopSpeaking()
Immediately stops the avatar's current speech.
js
SDK.stopSpeaking();Using with speak() / sendMessage()
Calling speak() or sendMessage() immediately after stopSpeaking() may cause the server to drop the request. See Messaging > speak() for the safe calling pattern.
setVolume(volume)
Sets the avatar's voice volume.
js
SDK.setVolume(50); // 0 ~ 100| Parameter | Type | Description |
|---|---|---|
volume | number | Volume (0 ~ 100) |
getStatus()
Returns the current SDK connection status.
js
const status = SDK.getStatus();
// 'IDLE', 'CONNECTED_FINISH', ...