Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

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