OdinClient.constructor

var odinclient = new OdinClient(accessKey: string, sampleRate?: number, channelCount?: number)

Creates a new instance of a client with an access key.

Parameters

NameTypeDescription
accessKeystringThe access key to use for this client. You can get one from https://developers.4players.io
sampleRatenumberThe sample rate of the audio stream (between 8000 and 48000)
channelCountnumberThe number of channels of the audio stream (1 or 2)

See also

OdinClient