Last change
on this file since 225 was 34, checked in by Nicholas Riley, 22 years ago |
Changes for Pester 1.1d1.
|
File size:
787 bytes
|
Rev | Line | |
---|
[34] | 1 | //
|
---|
| 2 | // SUSpeaker.h
|
---|
| 3 | // SpeechTest
|
---|
| 4 | //
|
---|
| 5 | // Created by raf on Sun Jan 28 2001.
|
---|
| 6 | // Copyright (c) 2000 Raphael Sebbe. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | #import <Foundation/Foundation.h>
|
---|
| 10 | #import <Carbon/Carbon.h>
|
---|
| 11 |
|
---|
| 12 | @interface SUSpeaker : NSObject
|
---|
| 13 | {
|
---|
| 14 | SpeechChannel _speechChannel;
|
---|
| 15 | id _delegate;
|
---|
| 16 | NSPort *_port;
|
---|
| 17 |
|
---|
| 18 | BOOL _usePort;
|
---|
| 19 | unsigned int _reserved1;
|
---|
| 20 | unsigned int _reserved2;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | +(NSArray*) voiceNames;
|
---|
| 24 | + (NSString *)defaultVoice;
|
---|
| 25 |
|
---|
| 26 | -(void) setPitch:(float)pitch;
|
---|
| 27 | -(void) setVoice:(int)index;
|
---|
| 28 | -(void) speakText:(NSString*)text;
|
---|
| 29 | -(void) stopSpeaking;
|
---|
| 30 |
|
---|
| 31 | -(void) setDelegate:(id)delegate;
|
---|
| 32 | -(id) delegate;
|
---|
| 33 |
|
---|
| 34 | @end
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | @interface NSObject (SUSpeakerDelegate)
|
---|
| 38 | -(void) didFinishSpeaking:(SUSpeaker*)speaker;
|
---|
| 39 | -(void) willSpeakWord:(SUSpeaker*)speaker at:(int)where length:(int)length;
|
---|
| 40 | @end |
---|
Note:
See
TracBrowser
for help on using the repository browser.