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
  • Start voice transmission
  • End voice transmission
  • Example
  1. JavaScript SDK [v0.x.x] (Planned for Deprecation)

Voice Message

Send Voice Message is a feature that lets you deliver a voice message to the avatar that is streaming.

Start voice transmission

Available with the KlleonChat.startStt() method. When this method is called, it starts recording a voice message that will be sent to the avatar.

End voice transmission

Available with the KlleonChat.endStt() method. When this method is called, the voice message is sent to the avatar.

Example

<div id="buttons-container" style="position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);">
    <button id="start-stt" onclick="KlleonChat.startStt()">Start STT</button>
    <button id="end-stt" onclick="KlleonChat.endStt()">End STT</button>
</div>
PreviousText MessageNextEcho - Repeat My Message

Last updated 11 months ago