Klleon Chat SDK
English
English
  • ✨New Javascript SDK [1.2.0]
    • Getting Started
    • Events
    • UI
    • Methods
      • Life Cycle
      • Text Chat
      • Voice Chat
      • Echo Chat
      • Audio Echo Chat
      • Other
    • TypeScript Support
    • Examples
      • VanillaJS
      • React
      • Nextjs
    • Log System
    • Updates
  • JavaScript SDK [v0.x.x] (Planned for Deprecation)
    • Quick Start
    • Initialize
    • Avatar Streaming
      • Start Streaming
      • Stop Streaming
      • Control Streaming Screen
    • Set Chat Screen
    • Text Message
    • Voice Message
    • Echo - Repeat My Message
    • Event Subscription
    • Updates
  • Service Architecture
Powered by GitBook
LogoLogo

Products

  • Pricing

Websites

  • Homepage
  • Youtube
  • Linkedin

Copyright © Klleon. All rights reserved

On this page
  • changeAvatar
  • clearMessageList
  • stopSpeech
  1. New Javascript SDK [1.2.0]
  2. Methods

Other

PreviousAudio Echo ChatNextTypeScript Support

Last updated 2 months ago

changeAvatar

A method to change the avatar.

window.KlleonChat.changeAvatar(options: ChangeAvatar);
Parameter
Type
Required
Default Value
Description

avatar_id

string

O

-

The ID of the avatar to change to.

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 speed of the avatar's speech. Range : (0.5 ~ 2.0)

clearMessageList

Clears the message content in when in text type.

window.KlleonChat.clearMessageList();

stopSpeech

Stops the avatar's speech.

window.KlleonChat.stopSpeech();
✨
<chat-container />