Collapse the table of content
Expand the table of content

SpWaveFormatEx AvgBytesPerSec property (SAPI 5.3)

Speech API 5.3

Microsoft Speech API 5.3

Object: SpWaveFormatEx

AvgBytesPerSec Property

The AvgBytesPerSec property gets and sets the required average data-transfer rate for the format tag in bytes per second.

If the FormatTag property is WAVE_FORMAT_PCM, AvgBytesPerSec should be equal to the product of SamplesPerSec and BlockAlign. For non-PCM formats, this member must be computed according to the manufacturer's specification of the format tag.

Playback and record software can estimate buffer sizes using the AvgBytesPerSec member.


Set: SpWaveFormatEx.AvgBytesPerSec = Long
Get: Long = SpWaveFormatEx.AvgBytesPerSec


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 AvgBytesPerSec property, see the code example in the SpAudioFormat GetWaveFormatEx section.

© 2015 Microsoft