Life Cycle
init
Initializes the SDK and connects the socket and streaming services.
sdk_key
string
O
-
Your SDK key.
avatar_id
string
O
-
The ID of the avatar to use.
subtitle_code
string
X
ko_kr
Adjusts the language of the avatar's speech text.
ko_kr
: Korean
en_us
: English
ja_jp
: Japanese
id_id
: Indonesian
voice_code
string
X
ko_kr
Adjusts the language of the avatar's spoken voice.
ko_kr
: Korean
en_us
: English
ja_jp
: Japanese
id_id
: Indonesian
voice_tts_speech_speed
number
X
1.0
Adjusts the avatar's speech speed. Range : (0.5 ~ 2.0)
enable_microphone
boolean
X
true
Connects without requiring browser microphone permission.
log_level
string
X
debug
Sets the logging level for the SDK.
debug
: Logs debug level or higher.
info
: Logs info level or higher.
warn
: Logs warning level or higher.
error
: Logs error level only.
silent
: Does not output logs.
user_key
string
X
-
The key value created through the endUser creation API is mapped. This key value includes the endUser key and an expiration timestamp.
user_key issuance
API info
POST
end user generate API
Description
The end-user creation API is an API that creates an endUser using the application's apiKey. After the WAS authenticates the end-user accessing the digital human, the WAS calls the end-user creation API. The WAS specifies the expiration time in seconds, and the response includes the endUser key and an expiration timestamp.
Request
Headers
The application's apiKey must be provided in the request header with the key x-api-key. The apiKey should be kept confidential to prevent exposure to service clients. For x-api-key issuance, please contact us separately at contact@klleon.io.
x-api-key
string
O
Authentication method using the application's apiKey
Request Body
duration
number
O
Expiration period (in seconds)
Example
destroy
Destroys the SDK, removing all registered event listeners and disconnecting the current session.
Last updated