Cluster Creator Kit Script Reference
    Preparing search index...

    Type Alias VoiceRecorderOptionPlayer

    Option values used with VoiceRecorderHandle.start. Specifies the behavior of the voice recording.

    type VoiceRecorderOption = {
        chunkDuration?: number;
    }
    Index

    Properties

    Properties

    chunkDuration?: number

    The recorded data is split into multiple AudioRecords so that its length does not exceed the number of seconds specified by chunkDuration, and passed to the PlayerScript.voiceRecorderHandle callback.

    If a value that is too small, or a negative value, is set, it is treated as an invalid setting.

    If omitted, the recorded data is not split.