Re: I am not sure any more...
With Tolk, you'll need the DLL from the bin/x64 or bin/x86 directories, then grab the Tolk.py script from src/python and put the DLL and script in your working directory.
import pygame
from pygame import mixer
import sys
import Tolk
def Example():
#initialize pygame
pygame.init()
#initialize Tolk
Tolk.load()
#create display
window = pygame.display.set_mode([640,480])
#main update loop while True: for event in pygame.event.get(): if event.type == pygame.KEYDOWN: #if space is pressed, speak TTS if event.key == pygame.K_SPACE: Tolk.output("Hello World!") #if escape is pressed, quit if event.key == pygame.K_ESCAPE: Tolk.unload() pygame.quit() sys.exit(0) #update window pygame.display.update() Example()
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector