For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/SoundDefinition.md.

Class: SoundDefinition experimental

sound

Beta

关于在 sound_definitions.json 文件中声明的音效的静态元数据。

Static metadata about a sound declared in a sound_definitions.json file.

Properties

durationInfo?

readonly optional durationInfo?: SoundDefinitionDurationInfo

Beta

Remarks

为此音效声明的持续时间元数据。当音效定义未指定持续时间时为 undefined

Duration metadata declared for this sound. Undefined when the sound definition does not specify a duration.


musicInfo?

readonly optional musicInfo?: SoundDefinitionMusicInfo

Beta

Remarks

为此音效声明的音乐元数据。当音效定义未指定 music_info 块时为 undefined

Music metadata declared for this sound. Undefined when the sound definition does not specify a music_info block.


soundEventId

readonly soundEventId: string

Beta

Remarks

此定义所声明的音效事件标识符,格式为 'namespace:name'。

Identifier of the sound event this definition declares, in the form 'namespace:name'.


tags?

readonly optional tags?: Record<string, string[]>

Beta

Remarks

为此音效声明的标签元数据,以记录形式将每个标签名称映射到其声明的值。使用单个字符串值声明的标签将作为单元素数组暴露。当音效定义未指定任何标签时为 undefined

Tag metadata declared for this sound, as a record mapping each tag name to its declared values. A tag declared with a single string value is exposed as a single-element array. Undefined when the sound definition does not specify any tags.

同领域相关