IAudioSource interface

Properties

blob
deviceInfo
events
format

Methods

attach(string)
detach(string)
getProperty(string, string)
id()
setProperty(string, string)
turnOff()
turnOn()

Property Details

blob

blob: Promise<Blob | Buffer>

Property Value

Promise<Blob | Buffer>

deviceInfo

deviceInfo: Promise<ISpeechConfigAudioDevice>

Property Value

events

events: EventSource<AudioSourceEvent>

Property Value

format

format: Promise<AudioStreamFormatImpl>

Property Value

Promise<AudioStreamFormatImpl>

Method Details

attach(string)

function attach(audioNodeId: string)

Parameters

audioNodeId

string

Returns

Promise<IAudioStreamNode>

detach(string)

function detach(audioNodeId: string)

Parameters

audioNodeId

string

getProperty(string, string)

function getProperty(name: string, def?: string)

Parameters

name

string

def

string

Returns

string

id()

function id()

Returns

string

setProperty(string, string)

function setProperty(name: string, value: string)

Parameters

name

string

value

string

turnOff()

function turnOff()

Returns

Promise<void>

turnOn()

function turnOn()

Returns

Promise<void>