Skip to main content

Detect Face Expression to Play Sound

Plays the sound attached to the target object when the selected facial expression is detected.

Input​

NameData TypeDescription
TargetScene ObjectThe object to which the sound to be played is attached.
DetectStringThe face whose expression will be detected. Face 0 represents the first face that appears in the scene, Face 1 represents the second face, and so on. Any represents any face in the scene.
Face ExpressionStringThe expression on the user’s face.
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies