flat assembler
Message board for the users of flat assembler.

Index > Windows > SpVoice

Author
Thread Post new topic Reply to topic
Yardman



Joined: 12 Apr 2005
Posts: 244
Location: US
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
Post 18 Aug 2008, 00:04
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 18 Aug 2008, 12:13
Yes it does on my Windows XP SP3 home edition

Razz

_________________
Hobby BASIC Interpreter
Post 18 Aug 2008, 12:13
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 18 Aug 2008, 14:37
Also here, WinXP SP3 professional.
Post 18 Aug 2008, 14:37
View user's profile Send private message Reply with quote
iic2



Joined: 26 Jun 2008
Posts: 122
iic2 18 Aug 2008, 14:47
Wow!!! my computer is talking to me. Com covers a lot of stuff... It works on my XP Pro Sp0, Sp1, Sp2, and Sp3

I just checked them all minutes ago and they all said the same thing, but Sp3 said something a little difference i think, but it surly was a whole lot louder and clearer on Sp3 while the others sound like 1969 Out-of Space movies.
Post 18 Aug 2008, 14:47
View user's profile Send private message Reply with quote
Grom PE



Joined: 13 Mar 2008
Posts: 114
Location: i@grompe.org.ru
Grom PE 18 Aug 2008, 15:00
I've played with SpeechAPI, too.
Post 18 Aug 2008, 15:00
View user's profile Send private message Visit poster's website Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
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.
Post 19 Aug 2008, 04:01
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.