home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / !Python / Lib / RiscLib / py / speak < prev    next >
Encoding:
Text File  |  1996-10-30  |  545 b   |  39 lines

  1. # Interface to the speak module
  2.  
  3. from swi import *
  4.  
  5. def ready():
  6.     x,y=swi(0x6ad80,";ii")
  7.     return min(x,y)
  8.  
  9. def register():
  10.     return swi(0x6ad82,"1;i")
  11.  
  12. def deregister():
  13.     return swi(0x6ad82,"2;i")
  14.  
  15. def translate(word):
  16.     return swi(0x6ad82,"3s;s",word)
  17.  
  18. def say(text):
  19.     swi(0x6ad83,"s000",text)
  20.  
  21. def say_wait(text):
  22.     swi(0x6ad84,"s000",text)
  23.  
  24. def stop():
  25.     swi(0x6ad85,"")
  26.  
  27. def pitch(n):
  28.     swi(0x6ad87,"i",n)
  29.  
  30. def speed(n):
  31.     swi(0x6ad88,"i",n)
  32.  
  33. def gap(n):
  34.     swi(0x6ad89,"i",n)
  35.  
  36. def range(n):
  37.     swi(0x6ad87,"i",n)
  38.  
  39.