Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calculate time from StreamPosition in SpVoice.Sentence event (SAPI)

13 views
Skip to first unread message

oliver...@gmail.com

unread,
Jun 20, 2020, 9:34:41 AM6/20/20
to
How can I convert the “StreamPosition” parameter to an actual time (in ms preferably) in the SpVoice.Sentence event of spVoice?

The documentation has the following info:

SpVoice.Sentence(
StreamNumber As Long,
StreamPosition As Variant,
CharacterPosition As Long,
Length As Long
)

StreamPosition
The character position in the output stream at which the sentence begins.

This doesn't make sense to me since what is a "character position in the output stream" when creating voice output???

Any help is greatly appreciated.
0 new messages