Our new developer documentation is now available. Please check it out!
OdinClient.constructor
var odinclient = new OdinClient(sampleRate?: number, channelCount?: number)
Creates a new instance of a client. Use this to create rooms.
Parameters
Name | Type | Description |
---|---|---|
sampleRate | number | The sample rate of the audio stream (between 8000 and 48000) - default is 48000 |
channelCount | number | The number of channels of the audio stream (1 or 2) - default is 1 |