@clikvn/agent-voice-embedded
TypeScript icon, indicating that this package has built-in type declarations

0.0.10-dev • Public • Published

Clik Voice Embed

Javascript library to display Clik Voice Embed on your website

<!-- public/index.html -->
<script type="module">
  import AgentVoice from 'https://cdn.jsdelivr.net/npm/@clikvn/agent-voice-embedded/dist/web.js'; // Change to from './web.js' to 'https://localhost:5678/web.js'
  AgentVoice.initWidget({
    livekitURL: "LIVEKIT_URL"
    apiHost: "AGENT_API_HOST"
    agentVoiceConfig: {
      chatflowConfig: "chatflowConfig",
      language: 'en-US', // 'vi-VN','en-US', 'ja-JP', 'ko-KR', 'cmn-Hans-CN',
          stt: 'openai' // 'google', 'openai',
          tts: 'openai' // 'google', 'openai',
      },
      listeners: {
        DISCONNECT: "callback function",
        CONNECT: "callback function",
      },
      theme:{
        avatar: " url link",
      }
  });
</script>
<clik-agent-voice-widget></clik-agent-voice-widget>

Readme

Keywords

none

Package Sidebar

Install

npm i @clikvn/agent-voice-embedded

Weekly Downloads

67

Version

0.0.10-dev

License

ISC

Unpacked Size

619 kB

Total Files

49

Last publish

Collaborators

  • tuongna
  • tunq2202
  • holgl_clik
  • tungtt01
  • tuannka
  • ducndm