locked
Recognize speech thought multiple channels of an audio device, with SAPI 5.4 in c RRS feed

  • Question

  • Hi, I’m using the SAPI 5.4 for Speech Recognition (STT), with the c# wrapper (SpeechLib.dll). I want to be able to recognize speech, of two different windows user profiles, thought two different microphone channels. I have a 2 channel recording audio device (Saffire 6 USB) with two mics connected, and I’m trying to get the two different AudioInputs (SpObjectToken).

    I used the method GetAudioInputs() of the Recognizer class, but it recognize the 2 channels audio device as one audio input. I was hoping to get the two audio inputs separately, to assign to two different Recognizers, with different audio profiles. This is what I’ve.

     

     foreach (SpObjectToken audioIn in objRecoContextNacho.Recognizer.GetAudioInputs())
     {
                if (audioIn.GetDescription() == "Line in (Saffire 6 USB)")
                      objRecoContextNacho.Recognizer.AudioInput = objAudioToken;
     }
    


     

    I search for days all over, but no clue on this issue.

    Thanks in advance

    Nacho


    • Edited by nachoifa Wednesday, January 4, 2012 7:21 PM
    Wednesday, January 4, 2012 12:43 AM