Streaming input to System.Speech.Recognition.SpeechRecognitionEngine

前端 未结 5 1385
失恋的感觉
失恋的感觉 2020-11-30 06:03

I am trying to do \"streaming\" speech recognition in C# from a TCP socket. The problem I am having is that SpeechRecognitionEngine.SetInputToAudioStream() seems to require

5条回答
  •  盖世英雄少女心
    2020-11-30 06:58

    I ended up buffering the input and then sending it to the speech recognition engine in successively larger chunks. For instance, I might send at first the first 0.25 seconds, then the first 0.5 seconds, then the first 0.75 seconds, and so on until I get a result. I am not sure if this is the most efficient way of going about this, but it yields satisfactory results for me.

    Best of luck, Sean

提交回复
热议问题