Skip to content

fpinnola/conversa-js-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conversa

Getting Started

Make sure you have an instance of the Conversa backend running. You can find that here.

Install the Conversa client from npm.

npm install conversa-client

First create an instance of the Conversa Client

// Import the ConversaClient
import { ConversaClient } from 'conversa-client';

// Pass the domain for your Conversa backend
const sdk = new ConversaClient('localhost:8000', false);

Create a call

// Pass the 'voiceId' you would like to use for the call
callId = await sdk.createCall({
    "voiceId": "21m00Tcm4TlvDq8ikWAM"
});

Join a call

sdk.joinCall({
  callId: callId,
  sampleRate: 16000,
});

Exit a call

sdk.exitCall();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published