Anonymous user
Speech synthesis: Difference between revisions
m
→{{header|REXX}}: added/changed whitespace and comments, changed comments in the REXX section header.
m (Added the Sidef language) |
m (→{{header|REXX}}: added/changed whitespace and comments, changed comments in the REXX section header.) |
||
Line 202:
=={{header|REXX}}==
{{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.
<lang rexx>/*REXX
parse arg t; t=space(t) /*get the (optional) text from
if t=='' then
tmp =value('TEMP',,'SYSTEM') /* " TEMP directory name. */
if
if tmp=='' then tmp=homedrive'\TEMP' /* " " " " " " "
/*
tFID=homedrive||'\TEMP\' || tFN"."tFT /*create temporary name for the output.*/
call lineout tFID
'
'ERASE' tFID /*clean up (delete) the TEMP
done: /*stick a fork in it, we're all done. */</lang>
Note: The name of the above REXX program is '''speak.rex'''<br>
'''usage''' using the command:
<pre>
</pre>
|