System.Speech.AudioFormat Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains a single class, SpeechAudioFormatInfo, that contains information about the format of the audio that is being input to the speech recognition engine, or being output from the speech synthesis engine.
Classes
SpeechAudioFormatInfo |
Represents information about an audio format. |
Enums
AudioBitsPerSample |
Enumerates values that describe the bits-per-sample characteristic of an audio format. |
AudioChannel |
Enumerates values that indicate the number of channels in the audio format. |
EncodingFormat |
Enumerates values that describe the encoding format of audio. |
Remarks
You can use the properties of SpeechAudioFormatInfo to obtain information about specific characteristics of an audio format. These properties are read-only, except for BlockAlign, which you can use to set the block alignment of incoming audio. To get all the properties of the incoming audio format, use the FormatSpecificData method.
Using the constructors on the SpeechAudioFormatInfo class, you can specify any of the properties of the audio format when you initialize the object.
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應