[futurebasic] Re: [FB] I need a vacation

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2017 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Wed, 1 Feb 2017 20:32:14 -0500
Remembering what Bernie said:

To fully appreciate Ken’s demo, Cellos is required.

That voice wasn’t available on my system either, but can be installed by…..

1. Run System Preferences
2. Click ‘Accessibility'
3. Choose ‘Speech' from the list
4. In the System Voice popup, choose ‘Customize’
5. Check ‘Cellos’ in the English (United States) - Novelty section
6. Click the OK button
7. Wait for Cellos to download and run Ken’s demo again

include "NSLog.incl"

BeginCCode
NSSpeechSynthesizer *synth = [[[NSSpeechSynthesizer alloc] initWithVoice:@"com.apple.speech.synthesis.voice.Cellos"] autorelease];

for ( int i = 0; i < 3; i++ )
{
   [synth startSpeakingString:@"Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo"];

   while ( [synth isSpeaking] == YES )
   {
      if ([synth isSpeaking] == NO)
      {
         [synth stopSpeaking];
      }
   }
}
[synth startSpeakingString:@"Bummmmpa bummpa bumm pop!"];
EndC

RunApplicationEventLoop()