UnixOperatingSystem.st
changeset 22968 411d41553689
parent 22841 63cdbb2f19b2
child 22976 ff8f2476519a
--- a/UnixOperatingSystem.st	Sun May 20 10:07:55 2018 +0200
+++ b/UnixOperatingSystem.st	Sun May 20 10:08:08 2018 +0200
@@ -9668,6 +9668,40 @@
     ^ SocketHandle new domain:domainArg type:typeArg protocol:protocolArg
 ! !
 
+!UnixOperatingSystem class methodsFor:'sound & voice'!
+
+voiceCommandSpec
+    ^ #(
+        "/ triples are:
+        "/      -command 
+        "/      -commandline for default voice
+        "/      -commandline for specific voice
+
+        "/ cg: I dont know how to specify the voice in those;
+        "/ please fix the commandLines for specific voice
+        (
+            'say'    
+                'say "%2"'       
+                'say "%2"'      "/ 'say -v "%1" "%2"' ???
+        )    
+        (
+            'espeak'    
+                'espeak "%2"'       
+                'espeak "%2"'   "/ 'espeak -v "%1" "%2"' ???
+        )    
+        (
+            'festival'    
+                'echo "%2" | festival --tts'       
+                'echo "%2" | festival --tts' 
+        )    
+        (
+            'spd-say'    
+                'spd-say "%2" '       
+                'spd-say "%2"' 
+        )    
+    )    
+! !
+
 !UnixOperatingSystem class methodsFor:'time and date'!
 
 computeOSTimeFromYear:y month:m day:d hour:h minute:min second:s millisecond:millis utc:utcBoolean