Article View: microsoft.public.speech_tech.sdk
Article #1Calculate time from StreamPosition in SpVoice.Sentence event (SAPI)
From: oliver9
Date: Sat, 20 Jun 2020 13:34
Date: Sat, 20 Jun 2020 13:34
19 lines
1722 bytes
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.
Technical Details
Message-ID:
<92b8e670-4231-4ccd-be94-664a84a08e74o@googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <92b8e670-4231-4ccd-be94-664a84a08e74o@googlegroups.com> Subject: Calculate time from StreamPosition in SpVoice.Sentence event (SAPI) Date: Sat, 20 Jun 2020 13:34:40 +0000 From: "oliver9@zoho.com" <oliverclimbs@gmail.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail X-Received: by 2002:a0c:8d46:: with SMTP id s6mr13611868qvb.241.1592660080784; Sat, 20 Jun 2020 06:34:40 -0700 (PDT) X-Received: by 2002:a9d:1b69:: with SMTP id l96mr6821263otl.253.1592660080457; Sat, 20 Jun 2020 06:34:40 -0700 (PDT) Newsgroups: microsoft.public.speech_tech.sdk Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=58.11.91.127; posting-account=fHr6QAoAAACnlBIVaiFpp5RiZRQBwIao Nntp-Posting-Host: 58.11.91.127 User-Agent: G2/1.0 Mime-Version: 1.0 Injection-Date: Sat, 20 Jun 2020 13:34:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 18