-
Notifications
You must be signed in to change notification settings - Fork 1
/
iAnnounceHelper.h
37 lines (31 loc) · 1.18 KB
/
iAnnounceHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// iAnnounceHelper.h
// iAnnounce
//
// Created by Hiren Patel on 9/11/10.
//
#import <Foundation/Foundation.h>
#import "VoiceServices/VSSpeechSynthesizer.h"
#import <AudioToolBox/AudioToolBox.h>
#import "SpringBoard/SBTelephonyManager.h"
#import "SpringBoard/SBMediaController.h"
#import "Celestial/AVSystemController.h"
#import "IncomingCall/MPIncomingPhoneCallController.h"
#import "IncomingCall/MPIncomingFaceTimeCallController.h"
#import "CaptainHook.h"
#import "CallBar/CallBarController.h"
#import <CoreTelephony/CTCall.h>
#import <CoreTelephony/CTCallCenter.h>
//#define IANNOUNCE_DEBUG 1 // Uncomment this line to enable debug logging.
#if !defined(IANNOUNCE_DEBUG)
#define NSLog(...)
#endif
@interface iAnnounceHelper : NSObject {
}
+(void) Say:(NSString*) text callAlertDisplay:(id)callAlertDisp announceVolumeLevel:(float) announceVolumeLevel usingLanguageCode:(NSString *) languageCode atSpeechRate:(float) rate atSpeechPitch:(float) pitch;
+(void) speechSynthesizer:(NSObject *) synth didFinishSpeaking:(BOOL)didFinish withError:(NSError *) error;
+(BOOL) nameAnnounced;
+(BOOL) isSilentMode: (BOOL) headphonesOnlyAnnounce;
+(void) stopSpeaking;
+(void) reloadSettings;
@end