🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: microsoft.public.speech_tech.sdk
1 messages
1 total messages Started by oliver9 Sat, 20 Jun 2020 13:34
Calculate time from StreamPosition in SpVoice.Sentence event (SAPI)
#1
Author: oliver9
Date: Sat, 20 Jun 2020 13:34
19 lines
1722 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads