IAudioSource interface

Properties

deviceInfo
events
format

Methods

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

Property Details

deviceInfo

deviceInfo: Promise<ISpeechConfigAudioDevice>

Property Value

events

events: EventSource<AudioSourceEvent>

Property Value

format

format: AudioStreamFormat

Property Value

Method Details

attach(string)

function attach(audioNodeId: string)

Parameters

audioNodeId
string

Returns

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<boolean>

turnOn()

function turnOn()

Returns

Promise<boolean>