FileAudioSource class

Constructors

FileAudioSource(File, string)

Properties

attach
detach
deviceInfo
events
format
id
turnOff
turnOn

Constructor Details

FileAudioSource(File, string)

new FileAudioSource(file: File, audioSourceId?: string)

Parameters

file
File
audioSourceId
string

Property Details

attach

attach: (audioNodeId: string) => Promise<IAudioStreamNode>

Property Value

(audioNodeId: string) => Promise<IAudioStreamNode>

detach

detach: (audioNodeId: string) => void

Property Value

(audioNodeId: string) => void

deviceInfo

deviceInfo: Promise<ISpeechConfigAudioDevice>

Property Value

events

events: EventSource<AudioSourceEvent>

Property Value

format

format: AudioStreamFormat

Property Value

id

id: () => string

Property Value

() => string

turnOff

turnOff: () => Promise<boolean>

Property Value

() => Promise<boolean>

turnOn

turnOn: () => Promise<boolean>

Property Value

() => Promise<boolean>