.NET:如何将mp3或WAV文件转换为.flac [英] .NET: How can I convert an mp3 or a wav file to .flac

查看:210
本文介绍了.NET:如何将mp3或WAV文件转换为.flac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要用c#编写一个实用程序,该实用程序使用Google Speech Api将语音从音频文件转换为文本.据我所知,谷歌只接受此API的.flac格式.不幸的是,我有.wav和.mp3音频文件.因此,我试图找出是否有一种方法可以将mp3转换为.NET中的flac.我查看了NAudio,但似乎无法使用flac文件.

I need to write a utility in c# that uses Google Speech Api to convert speech from an audio file into text. As far as I know, Google only accepts .flac format for this api. Unfortunately, I have .wav and .mp3 audio files. So I am trying to find out if there is a way for me to convert mp3 to flac in .NET. I looked at NAudio, but it doesn't seem to be working with flac files.

推荐答案

我最终使用了Gregory S. Chudov的FLAKE编码器的C#实现.您可以在以下位置找到更多信息 http://www.hydrogenaudio.org/forums/index.php?showtopic=74242

I ended up using Gregory S. Chudov's C# implementation of FLAKE encoder. You can find more information at http://www.hydrogenaudio.org/forums/index.php?showtopic=74242

BitBucket上还有一个项目在其Google Speech Api包装器中使用CUETools FLAKE.这是使用Google Speech API实现语音到文本的良好起点.你可以在找到它 https://bitbucket.org/josephcooney/cloudspeech

There is another project on BitBucket that uses CUETools FLAKE in its Google Speech Api wrapper. It is a good starting point for implementing speech to text using Google speech api. You can find it at https://bitbucket.org/josephcooney/cloudspeech

使用FLAKE编码器,我能够毫不费力地将wav转换为flac.希望这对您有所帮助.

I was able to convert wav to flac without much difficulty using the FLAKE encoder. Hope this helps you.

这篇关于.NET:如何将mp3或WAV文件转换为.flac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆