Commits

Anonymous committed 8cfd5d5

Readme typo update (Thanks, Jeremy Brudvi!), default voice change, other small stuff

Comments (0)

Files changed (4)

Classes/FliteTTS.m

 	//voice = register_cmu_us_rms();
 	//voice = register_cmu_us_awb();
 	//voice = register_cmu_us_slt();
-	[self setVoice:@"cmu_us_awb"];
+	[self setVoice:@"cmu_us_kal"];
     return self;
 }
 
 	[audioPlayer stop];
 	audioPlayer =  [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:tempFilePath] error:&err];
 	[audioPlayer setDelegate:self];
-	[audioPlayer prepareToPlay];
+	//[audioPlayer prepareToPlay];
 	[audioPlayer play];
 	// Remove file
 	[[NSFileManager defaultManager] removeItemAtPath:tempFilePath error:nil];

Classes/ttsViewController.m

 
 
 - (void)dealloc {
+	[fliteEngine dealloc];
     [super dealloc];
 }
 
-iPhone TTS - This is a port of CMU's Festival-Lite (aka flite) library to the iPhone platform.
+iPhone TTS - This is a port of CMU's Festival-Lite (aka flite) library to the iPhone/iOS platform.
 Homepage: http://bitbucket.org/sfoster/iphone-tts/
 
 
 * HOW TO USE
 
-To use it in a new or existing project, you can follow these steps..
+To use it in a new or existing project you can follow these steps:
 
 0: Grab the latest version from http://bitbucket.org/sfoster/iphone-tts/ and open it in finder.
 1: Drag the "flite-1.4-iphone" directory into your project's "Other Sources" area.  This contains the sources to flite.
-2: Drag the files FliteTTS.h and FliteTTS.c into your project's "Classes" area.
-3: Add AVFoundation framework to your project, if necessary
+2: Drag the files FliteTTS.h and FliteTTS.m into your project's "Classes" area.
+3: Add AVFoundation framework to your project if it does not already have it.
 4: For the class where you want to call the library, if you want to define a class variable in the .h file, 
    add this line to your .h file just above the @interface line:
 
 
     FliteTTS *fliteEngine;
 
-6: In your .m file, have...
+6: In the .m file for the class add...
 
 #import "FliteTTS.h"
 

tts.xcodeproj/project.pbxproj

 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
 				PREBINDING = NO;
-				SDKROOT = iphoneos3.0;
+				SDKROOT = iphoneos3.2;
 			};
 			name = Debug;
 		};