forked from KingOfBrian/VocalKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVKController.h
More file actions
51 lines (40 loc) · 1.23 KB
/
VKController.h
File metadata and controls
51 lines (40 loc) · 1.23 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// VKController.h
// VocalKit
//
// Created by Brian King on 4/29/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "VKDecoder.h"
@class VKAQRecorder;
@class VKFliteSpeaker;
typedef enum {
VKDecoderTypePocketSphinx,
VKDecoderTypeJulius // Unsupported
} VKDecoderType;
typedef enum {
VKDecoderModeManual,
VKDecoderModeOnStop,
VKDecoderModeContinuous // Unsupported
} VKDecoderMode;
extern NSString * const VKRecognizedPhraseNotification;
extern NSString * const VKRecognizedPhraseNotificationTextKey;
extern NSString * const VKRecognizedPhraseNotificationIDKey;
extern NSString * const VKRecognizedPhraseNotificationScoreKey;
@interface VKController : NSObject {
id<VKDecoder> decoder;
VKAQRecorder *connector;
VKDecoderType type;
VKDecoderMode mode;
}
- (id) initWithType:(VKDecoderType)type configFile:(NSString*)configFile;
- (void) setMode:(VKDecoderMode)mode;
- (void) startListening;
- (void) stopListening;
- (BOOL) isListening;
- (void) postNotificationOfRecognizedText;
- (void) setConfigString:(NSString*)str forKey:(NSString*)key;
- (void) setConfigInt:(int)iValue forKey:(NSString*)key;
- (void) setConfigFloat:(float)fValue forKey:(NSString*)key;
@end