10 references to AverageBytesPerSecond
System.Speech (10)
AudioFormat\SpeechAudioFormatInfo.cs (1)
148wfx.nAvgBytesPerSec = AverageBytesPerSecond;
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
27wfx.nAvgBytesPerSec = audioFormat.AverageBytesPerSecond;
Internal\SapiInterop\SpeechEvent.cs (2)
42_audioPosition = audioFormat.AverageBytesPerSecond > 0 ? new TimeSpan((long)((sapiEvent.ullAudioStreamOffset * TimeSpan.TicksPerSecond) / (ulong)audioFormat.AverageBytesPerSecond)) : TimeSpan.Zero;
Recognition\RecognizerBase.cs (5)
1139return audioFormat.AverageBytesPerSecond > 0 ? new TimeSpan((long)((recoStatus.AudioStatus.CurDevicePos * TimeSpan.TicksPerSecond) / (ulong)audioFormat.AverageBytesPerSecond)) : TimeSpan.Zero; 2615return (ulong)(time.Ticks * AudioFormat!.AverageBytesPerSecond) / TimeSpan.TicksPerSecond; 2815audioPosition = audioFormat.AverageBytesPerSecond > 0 ? new TimeSpan((long)((recoStatus.AudioStatus.CurDevicePos * TimeSpan.TicksPerSecond) / (ulong)audioFormat.AverageBytesPerSecond)) : TimeSpan.Zero;
Result\RecognizedAudio.cs (1)
128sm.WriteStream(_audioFormat.AverageBytesPerSecond);