custom stream question

Discussion in 'Microsoft Dot NET' started by Guest, Nov 5, 2004.

  1. Guest

    Guest Guest

    Can anyone show me how to use a CustomStream object for inputting audio
    directly to the SAPI 5.1 speech engine? The help docs all say it can be done,
    but the only examples they give are for wav files! I have tried using the
    MemoryStream class, the CustomStream class, the SpMMAudioIn class, and the
    base Stream class, but I get different errors each time. Here's what I'm
    trying to do:

    1. receive raw audio from a network/internet stream (done)
    2. Test the packets to be sure they have viable audio content (done)
    3. write the audio bytes to the AudioInputStream property of the Recognizer
    object (?????)

    4. Raise events when the spoken word as are recognized (done)

    The test above works perfectly when the incoming audio is first written as a
    RIFF/wav file and then fed to the speech engine. THIS IS CLEARLY A BAD WAY TO
    INPUT THE SPEECH:)

    Can anyone help me?
    --
    Jon L. Arking, SCJP, MCSD
     
    Guest, Nov 5, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hs

    Stream not readable problem

    hs, Jul 18, 2003, in forum: Microsoft Dot NET
    Replies:
    0
    Views:
    3,494
  2. Mike

    Stream Crystal PDF report

    Mike, Aug 6, 2003, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    205
    John Eikanger [MSFT]
    Aug 7, 2003
  3. Leon Jollans

    Http stream performance

    Leon Jollans, Sep 11, 2003, in forum: Microsoft Dot NET
    Replies:
    4
    Views:
    146
    Leon Jollans
    Sep 12, 2003
  4. Al

    String to stream

    Al, Sep 12, 2003, in forum: Microsoft Dot NET
    Replies:
    3
    Views:
    158
    Tom Mertens
    Sep 12, 2003
  5. Stream To Memory Stream Error

    , Oct 24, 2006, in forum: Microsoft Dot NET
    Replies:
    6
    Views:
    1,587
Loading...

Share This Page