Code: Select all
⎕using←'System.Speech.Synthesis,System.Speech.dll'
speaker←⎕new SpeechSynthesizer
VALUE ERROR
speaker←⎕NEW SpeechSynthesizer
∧
Instead you need to do the following to access the dll:
Code: Select all
⎕using←'System'
progFiles←Environment.GetFolderPath Environment.SpecialFolder.ProgramFilesX86
path←progFiles,'\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\'
⎕using←'System.Speech.Synthesis,',path,'System.Speech.dll'
speaker←⎕new SpeechSynthesizer
speaker.Speak(⊂'hello from APL')
Thanks in advance,
Pierre Gilbert