ThesamplingRate attribute is the recording sampling rate, either 8, 11, 22, or 44 kHz. The default value is based on the audio hardware that is used.
For example, connect samplingRate to the contents of an edit field.