Developer Documentation

OdinRoom.createAudioStream

public createAudioStream(sampleRate: number, channels: number, apmSettings?: OdinAPMSettings): OdinMedia

Creates a local audio stream and adds it to the room. An OdinMedia object will be returned that allows you to send audio data.

Parameters

NameTypeDescription
sampleRatenumberThe sample rate of the audio stream. Can be between 8000 and 48000.
channelsnumberThe number of channels of the audio stream. Can be 1 or 2.
apmSettingsOdinAPMSettings

Returns

TypeDescription
OdinMedia