Methods
disable
- disable(): Promise<void>
Returns Promise<void>
dispose
- dispose(): void
Returns void
enable
- enable(): Promise<string | void>
Returns Promise<string | void>
init
- init(data): Promise<void>
Returns Promise<void>
initNpcSpeaker
- initNpcSpeaker(uniqueId, spatialAudioConfTypeName, volumeChangeEventFunction?, audioElement?): Promise<unknown>
Parameters
uniqueId: number
spatialAudioConfTypeName: string
Optional
volumeChangeEventFunction: any
Optional
audioElement: HTMLAudioElement
Returns Promise<unknown>
pause
- pause(idxs): void
Returns void
play
- play(idxs): void
Returns void
resumeAudioContext
- resumeAudioContext(): void
Returns void
sayUtteranceBySrc
- sayUtteranceBySrc(uniqueId, utteranceSrc): 1 | 10102 | 10101
Parameters
uniqueId: number
utteranceSrc: string
Returns 1 | 10102 | 10101
setAudioElementsMuted
- setAudioElementsMuted(mute): void
Returns void
setVolumeAnalyses
- setVolumeAnalyses(uniqueId, volumeChangeEventFunction): 1 | 10201
Parameters
uniqueId: number
volumeChangeEventFunction: any
Returns 1 | 10201
stop
- stop(idxs): void
Returns void
stopVolumeAnalyses
- stopVolumeAnalyses(uniqueId): 1 | 10201
Returns 1 | 10201
update
- update(avatarPos): void
Returns void
关闭 空间音频效果