home *** CD-ROM | disk | FTP | other *** search
- # Interface to the speak module
-
- from swi import *
-
- def ready():
- x,y=swi(0x6ad80,";ii")
- return min(x,y)
-
- def register():
- return swi(0x6ad82,"1;i")
-
- def deregister():
- return swi(0x6ad82,"2;i")
-
- def translate(word):
- return swi(0x6ad82,"3s;s",word)
-
- def say(text):
- swi(0x6ad83,"s000",text)
-
- def say_wait(text):
- swi(0x6ad84,"s000",text)
-
- def stop():
- swi(0x6ad85,"")
-
- def pitch(n):
- swi(0x6ad87,"i",n)
-
- def speed(n):
- swi(0x6ad88,"i",n)
-
- def gap(n):
- swi(0x6ad89,"i",n)
-
- def range(n):
- swi(0x6ad87,"i",n)
-
-