Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.