Anonymous user
Speech synthesis: Difference between revisions
→{{header|REXX}}: simplified the REXX prorgram by using a different keyword for the NIRCMD program (used text instead of a file).
m (added a related task.) |
(→{{header|REXX}}: simplified the REXX prorgram by using a different keyword for the NIRCMD program (used text instead of a file).) |
||
Line 376:
{{works with|Windowx/XP or later}}
Programming note: This REXX program uses a freeware program NIRCMD to interface with the Microsoft Windows speech synthesizer program '''SAM''', a text to speech using a male voice. SAM can possibly be configured to use other voices with later releases of Windows. More recent Microsoft Windows have another speech synthesizer program: ANNA.
<lang rexx>/*REXX program uses a
parse arg t
if t
dquote= '"'
▲ /*code could be added here to get a ···*/
▲'NIRCMD' "speak file" tFID /*NIRCMD invokes Microsoft's Sam voice*/
Note: The name of the above REXX program is '''speak.rex'''<br>
'''usage''' using the command:
|