Author: gcasa
Date: Mon Mar 13 08:00:11 2017
New Revision: 40389

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

Added:
    libs/gui/branches/nsspeechrecognizer/Source/NSSpeechRecognizer.m

Added: libs/gui/branches/nsspeechrecognizer/Source/NSSpeechRecognizer.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/nsspeechrecognizer/Source/NSSpeechRecognizer.m?rev=40389&view=auto
==============================================================================
--- libs/gui/branches/nsspeechrecognizer/Source/NSSpeechRecognizer.m    (added)
+++ libs/gui/branches/nsspeechrecognizer/Source/NSSpeechRecognizer.m    Mon Mar 
13 08:00:11 2017
@@ -0,0 +1,105 @@
+/** <title>NSSpeechRecognizer</title>
+
+   <abstract>abstract base class for speech recognition</abstract>
+
+   Copyright <copy>(C) 2017 Free Software Foundation, Inc.</copy>
+
+   Author: Gregory Casamento <[email protected]>
+   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.
+*/
+
+#import <AppKit/NSSpeechRecognizer.h>
+
+@implementation NSSpeechRecognizer
+- (id)init
+{
+  self = [super init];
+  if(self)
+    {
+      _commands = nil;
+      _displayedCommandsTitle = @"";
+      _delegate = nil;
+      _listensInForegroundOnly = NO;
+      _blocksOtherRecognizers = NO;
+    }
+  return self;
+}
+
+- (void)startListening
+{
+  // TO BE IMPLEMENTED
+}
+
+- (void)stopListening
+{
+  // TO BE IMPLEMENTED
+}
+
+- (id<NSSpeechRecognizerDelegate>)delegate
+{
+  return _delegate;
+}
+
+- (void)setDelegate:(id<NSSpeechRecognizerDelegate>)delegate
+{
+  ASSIGN(_delegate, delegate);
+}
+
+- (NSArray *)commands
+{
+  return _commands;
+}
+
+- (void)setCommands: (NSArray *)commands
+{
+  ASSIGNCOPY(_commands, commands);  
+}
+
+- (NSString *)displayedCommandsTitle
+{
+  return _displayedCommandsTitle;
+}
+
+- (void)setDisplayedCommandsTitle: (NSString *)displayedCommandsTitle
+{
+  ASSIGNCOPY(_displayedCommandsTitle, displayedCommandsTitle);
+}
+
+- (BOOL)listensInForegroundOnly
+{
+  return _listensInForegroundOnly;
+}
+
+- (void)setListensInForegroundOnly: (BOOL)flag
+{
+  _listensInForegroundOnly = flag;
+}
+
+- (BOOL) blocksOtherRecognizers
+{
+  return _blocksOtherRecognizers;
+}
+
+- (void) setBlocksOtherRecognizers: (BOOL)flag
+{
+  _blocksOtherRecognizers = flag;
+}
+          
+@end


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to