Author: gcasa
Date: Mon Mar 13 07:59:41 2017
New Revision: 40388

URL: http://svn.gna.org/viewcvs/gnustep?rev=40388&view=rev
Log:
Add implementation of speech recognizer.

Added:
    libs/gui/branches/nsspeechrecognizer/Headers/AppKit/NSSpeechRecognizer.h
Modified:
    libs/gui/branches/nsspeechrecognizer/ChangeLog
    libs/gui/branches/nsspeechrecognizer/Source/GNUmakefile

Modified: libs/gui/branches/nsspeechrecognizer/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/nsspeechrecognizer/ChangeLog?rev=40388&r1=40387&r2=40388&view=diff
==============================================================================
--- libs/gui/branches/nsspeechrecognizer/ChangeLog      (original)
+++ libs/gui/branches/nsspeechrecognizer/ChangeLog      Mon Mar 13 07:59:41 2017
@@ -1,3 +1,10 @@
+2017-03-13 02:57-EDT Gregory John Casamento <greg.casame...@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 <fredkie...@gmx.de>
 
        * Headers/AppKit/NSImage.h

Added: libs/gui/branches/nsspeechrecognizer/Headers/AppKit/NSSpeechRecognizer.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/nsspeechrecognizer/Headers/AppKit/NSSpeechRecognizer.h?rev=40388&view=auto
==============================================================================
--- libs/gui/branches/nsspeechrecognizer/Headers/AppKit/NSSpeechRecognizer.h    
(added)
+++ libs/gui/branches/nsspeechrecognizer/Headers/AppKit/NSSpeechRecognizer.h    
Mon Mar 13 07:59:41 2017
@@ -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.casame...@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

Modified: libs/gui/branches/nsspeechrecognizer/Source/GNUmakefile
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/nsspeechrecognizer/Source/GNUmakefile?rev=40388&r1=40387&r2=40388&view=diff
==============================================================================
--- libs/gui/branches/nsspeechrecognizer/Source/GNUmakefile     (original)
+++ libs/gui/branches/nsspeechrecognizer/Source/GNUmakefile     Mon Mar 13 
07:59:41 2017
@@ -159,6 +159,7 @@
 NSSlider.m \
 NSSliderCell.m \
 NSSound.m  \
+NSSpeechRecognizer.m \
 NSSpeechSynthesizer.m \
 NSSpellChecker.m \
 NSSplitView.m \
@@ -380,6 +381,7 @@
 NSSlider.h \
 NSSliderCell.h \
 NSSound.h  \
+NSSpeechRecognizer.h \
 NSSpeechSynthesizer.h \
 NSSpellChecker.h \
 NSSpellServer.h \


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to