SourceAudio
Defined in: core/source/iaudiosource.ts:105
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SourceAudio():
SourceAudio
Returns
Section titled “Returns”SourceAudio
Methods
Section titled “Methods”getAudioOffset()
Section titled “getAudioOffset()”getAudioOffset():
Promise<number>
Defined in: core/source/iaudiosource.ts:252
return: Promise
Gets audio delay (1 unit = 100ns)
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”getSilencePeriod()
Section titled “getSilencePeriod()”getSilencePeriod():
Promise<number>
Defined in: core/source/iaudiosource.ts:206
return: Promise
Gets silenced detection period in ms time unit. Reaction time before filter removes noice/sound less than threshold
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”getSilenceThreshold()
Section titled “getSilenceThreshold()”getSilenceThreshold():
Promise<number>
Defined in: core/source/iaudiosource.ts:159
return: Promise
Gets silenced detection threshold. Amplitude less than threshold will be detected as silence.
Returns
Section titled “Returns”Promise<number>
Implementation of
Section titled “Implementation of”ISourceAudio.getSilenceThreshold
getValue()
Section titled “getValue()”getValue():
Promise<string>
Defined in: core/source/iaudiosource.ts:298
return: Promise
Gets the microphone device used as a source
source.getValue().then(function(value) { // Do something with the value});Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”isSilenceDetectionEnabled()
Section titled “isSilenceDetectionEnabled()”isSilenceDetectionEnabled():
Promise<boolean>
Defined in: core/source/iaudiosource.ts:117
return: Promise
Check if silence detection is on or off
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”ISourceAudio.isSilenceDetectionEnabled
setAudioOffset()
Section titled “setAudioOffset()”setAudioOffset(
value):Promise<SourceAudio>
Defined in: core/source/iaudiosource.ts:269
param: (value: number)
Sets audio delay, accepts only positive delay
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<SourceAudio>
Implementation of
Section titled “Implementation of”setSilenceDetectionEnabled()
Section titled “setSilenceDetectionEnabled()”setSilenceDetectionEnabled(
value):Promise<SourceAudio>
Defined in: core/source/iaudiosource.ts:135
param: (value: boolean)
Set silence detection to ON or OFF
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Promise<SourceAudio>
Implementation of
Section titled “Implementation of”ISourceAudio.setSilenceDetectionEnabled
setSilencePeriod()
Section titled “setSilencePeriod()”setSilencePeriod(
value):Promise<SourceAudio>
Defined in: core/source/iaudiosource.ts:223
param: (value: number)
Sets silence detection period, min of 0, max of 10000
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<SourceAudio>
Implementation of
Section titled “Implementation of”setSilenceThreshold()
Section titled “setSilenceThreshold()”setSilenceThreshold(
value):Promise<SourceAudio>
Defined in: core/source/iaudiosource.ts:177
param: (value: number)
Sets silence detection threshold, min of 0, max of 128
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Promise<SourceAudio>
Implementation of
Section titled “Implementation of”ISourceAudio.setSilenceThreshold
setValue()
Section titled “setValue()”setValue(
micDevice):Promise<SourceAudio>
Defined in: core/source/iaudiosource.ts:317
param: (value: string)
return: Promise<AudioSource>Set the microphone device to be used as source
source.setValue('<microphone device>') .then(function(source) { // Promise resolves with same Source instance});Parameters
Section titled “Parameters”micDevice
Section titled “micDevice”any
Returns
Section titled “Returns”Promise<SourceAudio>