Track status of Microsoft TTS output to wav file

Posted by user325478 on Stack Overflow See other posts from Stack Overflow or by user325478
Published on 2010-04-25T17:35:12Z Indexed on 2010/04/25 17:43 UTC
Read the original article Hit count: 250

Filed under:
|
|

I'm trying to track the status of my applications TTS output to a wav file. When speaking the text (to the speaker) the expected events (StartStream, Word, EndStream) are fired, however, no events are fired when outputing to a wave file.

SpVoice vox = new SpVoice();
vox.Word += VoxWord;             // Handle word processed event

SpFileStream voxStream = new SpFileStream();
voxStream.Open(@"c:\test.wav", SpeechStreamFileMode.SSFMCreateForWrite, false);

vox.AudioOutputStream = voxStream;
vox.Speak("Hello World. Please track my status!", SpeechVoiceSpeakFlags.SVSFlagsAsync);

Is it possible to asynchronously know the status of TTS output to wav?

© Stack Overflow or respective owner

Related posts about TTS

Related posts about c#