|
| Clearing Retained Audio |
 |
Thu, 13 Mar 2008 02:50:30 -070 |
Is there a way to do this ? I reatain the audio by calling
SetAudioOptions as mentioned in SDK whitepapers. Is there a way to
clear this audio lets say after some timeout? The Reason i ask this is
sometimes sapi behaves weirdly and I don't events like true or false
recogntion for a long time. And when I do get one the audio stream
that I get is very very long. So I just wish to purge the buffer from
time to time. Is there a way to do such thing?
|
| Post Reply
|
| Re: Clearing Retained Audio |
 |
Wed, 19 Mar 2008 08:01:44 -070 |
You can discard the audio by calling ISpPhrase::Discard(SPDF_AUDIO). See
here for example code:
http://msdn2.microsoft.com/en-us/library/ms718431(VS.85).aspx
You'll just need to figure out when you want that to happen, and then call
that method.
--
Rob Chambers [MSFT]
http://blogs.msdn.com/robch/default.aspx
Windows Speech Recognition - We're Listening...
This posting is provided "AS IS" with no warranties, and confers no
rights.
|
| Post Reply
|
| Re: Clearing Retained Audio |
 |
Thu, 20 Mar 2008 06:50:26 -070 |
On Mar 19, 8:01 pm, "Rob Chambers [MSFT]"
<ro...@online.microsoft.com>
wrote:
> You can discard the audio by calling ISpPhrase::Discard(SPDF_AUDIO). See
> here for example
code:http://msdn2.microsoft.com/en-us/library/ms718431(VS.85).aspx
>
> You'll just need to figure out when you want that to happen, and then call
> that method.
>
> --
> Rob Chambers [MSFT]http://blogs.msdn.com/robch/default.aspx
> Windows Speech Recognition - We're Listening...
>
> This posting is provided "AS IS" with no warranties, and confers
no rights.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|