SpWaveFormatEx SamplesPerSec property (SAPI 5.3)
Microsoft Speech API 5.3
Object: SpWaveFormatEx
SamplesPerSec Property
The SamplesPerSec property gets and sets the sample rate at which each channel should be played or recorded.
If FormatTag is WAVE_FORMAT_PCM, common values for SamplesPerSec are 8.0 kHz, 11.025 kHz, 22.05 kHz, and 44.1 kHz. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.
Syntax
Set: | SpWaveFormatEx.SamplesPerSec = Long |
Get: | Long = SpWaveFormatEx.SamplesPerSec |
Parts
- SpWaveFormatEx
The owning object. - Long
Set: A Long variable that sets the property.
Get: A Long variable that gets the property.
Example
For an example of the use of the SamplesPerSec property, see the code example in the SpAudioFormat GetWaveFormatEx section.