Elizon Docs
Voice Integration

SDK Integration

Connect to an Elizon voice session from Web, mobile, or native apps.

Once you have a wsUrl and token from Start Voice Session, pass them to a LiveKit client SDK to join the call. Every platform below follows the same shape: install the SDK, then call connect(wsUrl, token).

Web / JavaScript

npm install livekit-client
import { Room } from 'livekit-client'

const room = new Room()
await room.connect(wsUrl, token)
await room.localParticipant.setMicrophoneEnabled(true)

See the LiveKit JavaScript quickstart for full setup.

React

npm install @livekit/components-react livekit-client
import { LiveKitRoom, RoomAudioRenderer } from '@livekit/components-react'

export function VoiceCall({ wsUrl, token }: { wsUrl: string; token: string }) {
  return (
    <LiveKitRoom serverUrl={wsUrl} token={token} connect audio>
      <RoomAudioRenderer />
    </LiveKitRoom>
  )
}

See the LiveKit React quickstart for full setup.

iOS (Swift)

Add https://github.com/livekit/client-sdk-swift as a Swift Package Manager dependency.

import LiveKit

let room = Room()
try await room.connect(url: wsUrl, token: token)
try await room.localParticipant.setMicrophone(enabled: true)

See the LiveKit Swift quickstart for full setup.

Android (Kotlin)

implementation "io.livekit:livekit-android:<current version>"
val room = LiveKit.create(appContext = applicationContext)
room.connect(url = wsUrl, token = token)
room.localParticipant.setMicrophoneEnabled(true)

See the LiveKit Android quickstart for full setup.

React Native

npm install @livekit/react-native @livekit/react-native-webrtc
import { registerGlobals } from '@livekit/react-native'
import { Room } from 'livekit-client'

registerGlobals()
const room = new Room()
await room.connect(wsUrl, token)
await room.localParticipant.setMicrophoneEnabled(true)

See the LiveKit React Native quickstart for full setup.

Flutter

flutter pub add livekit_client
final room = Room();
await room.connect(wsUrl, token);
await room.localParticipant?.setMicrophoneEnabled(true);

See the LiveKit Flutter quickstart for full setup.

Unity

In the Package Manager, select Add package from git URL and add the LiveKit Unity SDK package.

var room = new Room();
await room.Connect(wsUrl, token);
await room.LocalParticipant.SetMicrophoneEnabled(true);

See the LiveKit Unity quickstart for full setup.