flat assembler
Message board for the users of flat assembler.
Index
> Windows > SpVoice |
Author |
|
Yardman 18 Aug 2008, 00:04
[ Post removed by author. ]
Last edited by Yardman on 04 Apr 2012, 03:37; edited 1 time in total |
|||
18 Aug 2008, 00:04 |
|
Picnic 18 Aug 2008, 12:13
|
|||
18 Aug 2008, 12:13 |
|
LocoDelAssembly 18 Aug 2008, 14:37
Also here, WinXP SP3 professional.
|
|||
18 Aug 2008, 14:37 |
|
Grom PE 18 Aug 2008, 15:00
I've played with SpeechAPI, too.
|
|||
18 Aug 2008, 15:00 |
|
r22 19 Aug 2008, 04:01
One thing I could never figure out was how to get two voices to speak at the same time. (i.e. have the sound overlap)
I tried with threading and SPF_ASYNC (= 1) and more than one instance, but it would still queue up the Speak's and play them in order rather than at the same time. ***EDIT*** After actually reading the interface's documentation I found that :SetPriority with SPVPRI_OVER (2) lets 2 instances of SpVoice overlap eachother. Code: ;;;modifying the example code above invoke CoInitialize,NULL invoke CoCreateInstance,CLSID_SpVoice,NULL,CLSCTX_INPROC_SERVER,\ IID_ISpVoice,SpVoice invoke CoCreateInstance,CLSID_SpVoice,NULL,CLSCTX_INPROC_SERVER,\ IID_ISpVoice,SpVoice2 cominvk SpVoice,SetPriority,SPVPRI_OVER cominvk SpVoice2,SetPriority,SPVPRI_OVER cominvk SpVoice,Speak,strSpeak,SPF_ASYNC,NULL invoke SleepEx,500,0 cominvk SpVoice2,Speak,strSpeak,SPF_ASYNC,NULL invoke SleepEx,5000,0 cominvk SpVoice,Release cominvk SpVoice2,Release invoke CoUninitialize invoke ExitProcess,0 Just a cool effect that all these text-2-speech threads finally motivated me enough to figure out. |
|||
19 Aug 2008, 04:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.