Code: Select all
ImportC "oldnames.lib"
strnicmp(String1.p-Ascii, String2.p-Ascii, Count)
EndImport
Import "UniversalSpeechStatic.lib"
speechSay(Text.p-Unicode, Interrupt)
brailleDisplay(Text.p-Unicode)
speechStop()
EndImport
Procedure BrailleText(Text$)
brailleDisplay(Text$)
EndProcedure
Procedure SpeakText(Text$, Interrupt = #False)
speechSay(Text$, Interrupt)
EndProcedure
Procedure OutputText(Text$, Interrupt = #False)
BrailleText(Text$)
SpeakText(Text$, Interrupt)
EndProcedure
Procedure StopSpeech()
speechStop()
EndProcedure
Enjoy, and may this make more PB applications accessible!
