int VoiceSampleRate { get; set; }

robot_2Generated
code_blocksInput

Description

The VoiceSampleRate property specifies the sample rate for voice data in the Sandbox environment. This property is used to determine the number of samples per second in voice audio processing, which affects the quality and clarity of the voice data.

Usage

Use the VoiceSampleRate property to access or modify the sample rate for voice data. This property is static and can be accessed directly through the Sound class.

Example

// Accessing the VoiceSampleRate property
int currentSampleRate = Sound.VoiceSampleRate;

// Setting a new sample rate for voice data
Sound.VoiceSampleRate = 44100; // Set to 44.1 kHz, a common sample rate for audio