mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Add implementation of speech recognizer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/nsspeechrecognizer@40388 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f06f601220
commit
4229b3e0f8
3 changed files with 86 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2017-03-13 02:57-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSSpeechRecognizer.h
|
||||
* Source/NSSpeechRecognizer.h: Skeleton implementation of
|
||||
speech recognizer.
|
||||
* Source/GNUmakefile: Add new source files to makefile
|
||||
|
||||
2017-03-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/NSImage.h
|
||||
|
|
77
Headers/AppKit/NSSpeechRecognizer.h
Normal file
77
Headers/AppKit/NSSpeechRecognizer.h
Normal file
|
@ -0,0 +1,77 @@
|
|||
/** <title>NSSpeechRecognizer</title>
|
||||
|
||||
<abstract>abstract base class for speech recognition</abstract>
|
||||
|
||||
Copyright <copy>(C) 2017 Free Software Foundation, Inc.</copy>
|
||||
|
||||
Author: Gregory Casamento <greg.casamento@gmail.com>
|
||||
Date: Mar 13, 2017
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GNUstep_H_NSSpeechRecognizer
|
||||
#define _GNUstep_H_NSSpeechRecognizer
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
// forward declarations...
|
||||
@class NSString, NSArray;
|
||||
@protocol NSSpeechRecognizerDelegate;
|
||||
|
||||
// class declaration...
|
||||
@interface NSSpeechRecognizer : NSObject
|
||||
{
|
||||
id<NSSpeechRecognizerDelegate> _delegate;
|
||||
NSArray *_commands;
|
||||
NSString *_displayedCommandsTitle;
|
||||
BOOL _listensInForegroundOnly;
|
||||
BOOL _blocksOtherRecognizers;
|
||||
}
|
||||
|
||||
- (id)init;
|
||||
|
||||
- (void)startListening;
|
||||
- (void)stopListening;
|
||||
|
||||
- (id<NSSpeechRecognizerDelegate>)delegate;
|
||||
- (void)setDelegate:(id<NSSpeechRecognizerDelegate>)delegate;
|
||||
|
||||
- (NSArray *)commands;
|
||||
- (void)setCommands: (NSArray *)commands;
|
||||
|
||||
- (NSString *)displayedCommandsTitle;
|
||||
- (void)setDisplayedCommandsTitle: (NSString *)displayedCommandsTitle;
|
||||
|
||||
- (BOOL)listensInForegroundOnly;
|
||||
- (void)setListensInForegroundOnly: (BOOL)flag;
|
||||
|
||||
- (BOOL) blocksOtherRecognizers;
|
||||
- (void) setBlocksOtherRecognizers: (BOOL)flag;
|
||||
|
||||
@end
|
||||
|
||||
@protocol NSSpeechRecognizerDelegate <NSObject>
|
||||
- (void)speechRecognizer: (NSSpeechRecognizer *)sender
|
||||
didRecognizeCommand: (NSString *)command;
|
||||
@end
|
||||
|
||||
@interface NSObject (NSSpeechRecognizerDelegate) <NSSpeechRecognizerDelegate>
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSSpeechRecognizer
|
|
@ -159,6 +159,7 @@ NSShadow.m \
|
|||
NSSlider.m \
|
||||
NSSliderCell.m \
|
||||
NSSound.m \
|
||||
NSSpeechRecognizer.m \
|
||||
NSSpeechSynthesizer.m \
|
||||
NSSpellChecker.m \
|
||||
NSSplitView.m \
|
||||
|
@ -380,6 +381,7 @@ NSShadow.h \
|
|||
NSSlider.h \
|
||||
NSSliderCell.h \
|
||||
NSSound.h \
|
||||
NSSpeechRecognizer.h \
|
||||
NSSpeechSynthesizer.h \
|
||||
NSSpellChecker.h \
|
||||
NSSpellServer.h \
|
||||
|
|
Loading…
Reference in a new issue