Using a speech engine to highlight words: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: clarification)
Line 128: Line 128:


=={{header|Phix}}==
=={{header|Phix}}==
Requires 0.8.2+, and as-is, this will only work on Windows 32 bit (sorry)
Requires 0.8.2+, and as-is, this will only work on Windows 32 bit (sorry)<br>
(You can of course run it on a 64-bit OS using a 32-bit version of the compiler/interpreter.)
<lang Phix>-- demo/rosetta/Speech.exw
<lang Phix>-- demo/rosetta/Speech.exw
include pGUI.e
include pGUI.e
Line 145: Line 146:
lo += power(2,flags[i])
lo += power(2,flags[i])
end for
end for
-- NB 2*64-bit as 4*32-bit:
atom res = cominvk(pVoice,ISpVoice_SetInterest,{lo,hi,lo,hi})
atom res = cominvk(pVoice,ISpVoice_SetInterest,{lo,hi,lo,hi})
if res!=S_OK then crash("invalid") end if
if res!=S_OK then crash("invalid") end if
Line 226: Line 228:


main()</lang>
main()</lang>

=={{header|REXX}}==
=={{header|REXX}}==
{{works with|Windowx/XP or later}}
{{works with|Windowx/XP or later}}