내가 NAudio을 사용하여 DSP TrueSpeech 1 비트 8 kHz의 모노에 PCM 8 비트 8 kHz에서 모노 파일을 변환하려고, 나는 다음과 같은 오류 얻을 :NAudio
첫 번째 기회를 'NAudio.MmException'유형의 예외가 NAudio.dll에서 발생했습니다. AcmNotPossible 호출 acmStreamOpen
내가 누락 된 중간 단계가있을 수 있음을 이해합니다. 어떠한 통찰력도 인정 될 것입니다.
WaveFormat outWaveFormat;
outWaveFormat = new TrueSpeechWaveFormat();
Debug.Print("Sample Rate: " + outWaveFormat.SampleRate); //displays "8000"
Debug.Print("Bit Rate: " + outWaveFormat.BitsPerSample); //displays "1"
FileInfo f = new FileInfo(inputFile);
String outputFileName = this.txtDest.Text + @"\" + f.Name;
using (WaveFileReader reader = new WaveFileReader(inputFile))
{
try
{
using (WaveStream convertedStream = new WaveFormatConversionStream (outWaveFormat, reader))
{
WaveFileWriter.CreateWaveFile(outputFileName, convertedStream);
}
}
catch (Exception ex)
{
Debug.Print(ex.Message);
}
}
답변 해 주셔서 감사합니다. DSP Group TrueSpeech 코덱이 사용 가능한 코덱 목록에 나타나지 않습니다. 내가 설치 한 줄 알았지 만, 내가 설치 한 것은 DSP 파일을 읽거나 재생하는 것일 뿐이므로 만들어 내지 않는 것 같은데? 그게 가능하니? 엔코더를 얻을 수있는 아이디어가 있습니까? 나는 몇몇 웹 수색을하고 아무것도를 생각해 내지 않았다. – user1284603