Our new developer documentation is now available. Please check it out!
OdinRoom.createAudioStream
On this page
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
Name | Type | Description |
---|---|---|
sampleRate | number | The sample rate of the audio stream. Can be between 8000 and 48000. |
channels | number | The number of channels of the audio stream. Can be 1 or 2. |
apmSettings | OdinAPMSettings |
Returns
Type | Description |
---|---|
OdinMedia |