PC Review

Thread Tools Rate Thread

custom stream question

Posts: n/a
      5th Nov 2004
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

Can anyone help me?
Jon L. Arking, SCJP, MCSD

Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stream To Memory Stream Error rh1200la@gmail.com Microsoft Dot NET 6 25th Oct 2006 10:03 PM
Undocumented exceptions from Stream.EndWrite on HttpWebRequest request stream kevin cline Microsoft Dot NET Compact Framework 0 17th Nov 2005 02:55 AM
File To Stream - Stream To File Giuseppe Microsoft VB .NET 3 23rd Mar 2005 12:00 PM
Closing outer stream, keep inner stream open - how? Martin Microsoft Dot NET Framework 0 27th Oct 2004 04:29 PM
MEmory stream, file stream Pums Microsoft C# .NET 4 11th Dec 2003 12:46 PM




All times are GMT +1. The time now is 10:35 PM.