如何在C#中更改声音格式

问题描述:

你好.
我正在执行文本到语音转换(TTS),然后将其另存为WAV文件.很好.
但是,保存的TTS的音频格式为:

音频样本大小= 16bit
渠道= 1(单声道)
音频采样率= 22kHz
音频格式= PCM


如何将音频格式更改为:


音频样本大小= 8bit
渠道= 1(单声道)
音频采样率= 8kHz
音频格式= PCM

基本上,如何更改音频格式?

在此先感谢

Hello.
I am doing text-to-speech (TTS), and then save it as WAV file. That works just fine.
But, the saved TTS has the audio format of :

audio sample size = 16bit
channels = 1 (mono)
audio sampe rate = 22kHz
audio format = PCM


How can I change the audio format to :


audio sample size = 8bit
channels = 1 (mono)
audio sampe rate = 8kHz
audio format = PCM

Basically, how to change the audio format?

Thanks in advance

我没有您的问题的答案,但我发现了 ^ ],其中可能包含您需要的信息.
I don''t have an answer to your problem but I have found Recording and Playing Sound with the Waveform Audio Interface[^], which may contain the information that you require.