【问题标题】:IBM watson diarizationIBM 沃森分类
【发布时间】:2018-03-30 17:30:31
【问题描述】:

您好,我正在使用 c# visual studio 2017 开发一个应用程序,我测试了语音到文本的代码及其工作,但现在我需要进行扬声器分类

我该怎么做?

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);
}

【问题讨论】:

    标签: c# speech-to-text watson


    【解决方案1】:

    我想出了解决办法

    https://www.ibm.com/blogs/bluemix/2017/05/whos-speaking-speaker-diarization-watson-speech-text-api/

    代码如下所示:

    var results = _speechToText.Recognize("audio/mp3", fs,null, "en-US_BroadbandModel", null, true, null, null, null, null, null, null, null,false, true, **true**); 
    

    最后一个true标识speaker_label,结果会这样。

    https://console.bluemix.net/docs/services/speech-to-text/output.html#output

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      相关资源
      最近更新 更多