FileAudioSource class

Constructors

FileAudioSource(File | Buffer, string, string)

Properties

attach
blob
detach
deviceInfo
events
format
id
turnOff
turnOn

Constructor Details

FileAudioSource(File | Buffer, string, string)

new FileAudioSource(file: File | Buffer, filename?: string, audioSourceId?: string)

Parameters

file

File | Buffer

filename

string

audioSourceId

string

Property Details

attach

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

Property Value

(audioNodeId: string) => Promise<IAudioStreamNode>

blob

Promise<Blob | Buffer> blob

Property Value

Promise<Blob | Buffer>

detach

detach: (audioNodeId: string) => void

Property Value

(audioNodeId: string) => void

deviceInfo

Promise<ISpeechConfigAudioDevice> deviceInfo

Property Value

events

EventSource<AudioSourceEvent> events

Property Value

format

Promise<AudioStreamFormatImpl> format

Property Value

Promise<AudioStreamFormatImpl>

id

id: () => string

Property Value

() => string

turnOff

turnOff: () => Promise<void>

Property Value

() => Promise<void>

turnOn

turnOn: () => Promise<void>

Property Value

() => Promise<void>