Multiple revSpeech?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Multiple revSpeech?

Post by shadowslash » Tue Sep 14, 2010 10:24 am

I'm trying to create a certain type of talking for revSpeech but I can't seem to achieve what I'm after.
I want to use revSpeak 3 times but with different pitches and the same phrases or sentences to speak. The end result should be a monster-like sound wherein it has 3 voice pitches. First is higher than normal, second is the normal pitch, third is lower than normal.

I've exhausted every idea I can think off but to no avail.
Parañaque, Philippines
Image
Image

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Multiple revSpeech?

Post by bn » Tue Sep 14, 2010 11:46 am

Hi Shadowslash,

after some experimenting this works for me on a Mac.

Code: Select all

on mouseUp
   put "this is a monster speech test" into tSpeak
   put "127,60,30" into tThePitches
   repeat with i = 1 to 3
      put item i of tThePitches into tPitch
      revSetSpeechPitch tPitch
      revspeak tSpeak
      repeat while revIsSpeaking()
         wait 50 milliseconds with messages
      end repeat
   end repeat
end mouseUp
You probably want to play with the voices (revSpeechVoices, revSetSpeechVoice), to get the effect you want.
regards
Bernd

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: Multiple revSpeech?

Post by shadowslash » Tue Sep 14, 2010 2:13 pm

Unfortunately in a Windows XP environment, it only repeats the phrase for 3 times... I'm yet to try it on a Windows 7 machine but I have a hunch it will end with the same results... Image
Parañaque, Philippines
Image
Image

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Multiple revSpeech?

Post by bn » Tue Sep 14, 2010 2:52 pm

ShadowSlash,

try to add at each call to revSpeech a e.g. "wait 200 milliseconds with messages". I had during testing the impression that it helped in some versions.
Not shure whether it helps. But try to give it time.
regards
Bernd

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: Multiple revSpeech?

Post by shadowslash » Tue Sep 14, 2010 3:00 pm

I ttried

Code: Select all

on mouseUp
   local tSpeak,tThePitches,tPitch
   put "this is a monster speech test" into tSpeak
   put "127,60,30" into tThePitches
   repeat with i = 1 to 3
      put item i of tThePitches into tPitch
      wait 200 millisecs with messages
      revSetSpeechPitch tPitch
      revSpeak tSpeak
      repeat while revIsSpeaking()
         wait 50 milliseconds with messages
      end repeat
   end repeat
end mouseUp
But still to no avail... Could it be that it is OS-dependent?
Parañaque, Philippines
Image
Image

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Multiple revSpeech?

Post by bn » Tue Sep 14, 2010 3:09 pm

maybe you could try this before someone on a windows system could try revspeak

Code: Select all

on mouseUp
   local tSpeak,tThePitches,tPitch
   put "this is a monster speech test" into tSpeak
   put "127,60,30" into tThePitches
   repeat with i = 1 to 3
      put item i of tThePitches into tPitch
      wait 200 millisecs with messages
      revSetSpeechPitch tPitch
      wait 500 milliseconds with messages
      revSpeak tSpeak
      wait 500 milliseconds with messages
      repeat while revIsSpeaking()
         wait 50 milliseconds with messages
      end repeat
   end repeat
end mouseUp
regards
Bernd

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: Multiple revSpeech?

Post by shadowslash » Tue Sep 14, 2010 3:35 pm

Hmmmm... Tried and with the same results... Image
Parañaque, Philippines
Image
Image

Post Reply