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
  • Request to Echo
  • Audio Speech Request
  • End Audio Transmission
  • Stop Echo
  • Example
  1. JavaScript SDK [v0.x.x] (Planned for Deprecation)

Echo - Repeat My Message

Echo is a feature that allows you to have the avatar speak with a message you send.

Request to Echo

Available with the KlleonChat.echo() method to ask the avatar to speak the message you typed.

Audio Speech Request

Request the avatar to speak the transmitted audio Base64 data as is using the KlleonChat.startAudioEcho() method.

End Audio Transmission

Notify the end of audio data transmission using the KlleonChat.endAudioEcho() method.

Stop Echo

Available with the KlleonChat.stopEcho() method to ask the avatar to stop speaking echo.

Example

<button onclick="KlleonChat.echo('Test')">Avatar Echo</button>
<button onclick="KlleonChat.stopEcho()">Stop Echo</button>
<button onclick="KlleonChat.startAudioEcho('base64 Data')">Audio Echo</button>
<button onclick="KlleonChat.endAudioEcho()">End Audio Echo</button>
PreviousVoice MessageNextEvent Subscription

Last updated 11 months ago