OdinClient.constructor
var odinclient = new OdinClient(accessKey: string, sampleRate?: number, channelCount?: number)
Creates a new instance of a client with an access key.
Parameters
Name | Type | Description |
---|---|---|
accessKey | string | The access key to use for this client. You can get one from https://developers.4players.io |
sampleRate | number | The sample rate of the audio stream (between 8000 and 48000) |
channelCount | number | The number of channels of the audio stream (1 or 2) |