1
你好,我正在開發使用C#的Visual Studio 2017年的應用程序,我測試的語音編碼文本和它的工作,但現在我需要做的揚聲器diarizationIBM沃森diarization
我怎麼能這樣做?
SpeechToTextService _speechToText = new SpeechToTextService();
_speechToText.SetCredential("", "");
//var results = _speechToText.GetModels();
using (FileStream fs = File.OpenRead("mp3"))
{
// get a transcript of the audio file.
var results = _speechToText.Recognize("audio/mp3", fs);
}