Skip to main content

AudioDetectionType

APJS Script API reference for the AudioDetectionType enum.

TypeNameInterface Description
EnumBeat = 1

EnumKeyword = 6

EnumOnset = 2

EnumPitch = 0

EnumSoundEvent = 5

EnumSpectrum = 3

EnumVolume = 4

Examples​

Beat = 1​

let value = APJS.AudioDetectionType.Beat;

Keyword = 6​

let value = APJS.AudioDetectionType.Keyword;

Onset = 2​

let value = APJS.AudioDetectionType.Onset;

Pitch = 0​

let value = APJS.AudioDetectionType.Pitch;

SoundEvent = 5​

let value = APJS.AudioDetectionType.SoundEvent;

Spectrum = 3​

let value = APJS.AudioDetectionType.Spectrum;

Volume = 4​

let value = APJS.AudioDetectionType.Volume;

Use Case​

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use AudioDetectionType here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies