Export (0) Print
Expand All

SpWaveFormatEx SamplesPerSec property (SAPI 5.3)

Speech API 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.


Set: SpWaveFormatEx.SamplesPerSec = Long
Get: Long = SpWaveFormatEx.SamplesPerSec


The owning object.
Set: A Long variable that sets the property.
Get: A Long variable that gets the property.


For an example of the use of the SamplesPerSec property, see the code example in the SpAudioFormat GetWaveFormatEx section.

© 2015 Microsoft