Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SamplesPerSec
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.

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.

Show:
© 2015 Microsoft