<filename>framework3d/speech.py
import platform
if platform.system()=="Linux":
	import espeak.core
else:
	from accessible_output2.outputs import auto
	o=auto.Auto()
def speak(text,interrupt=True):
	if platform.system()=="Linux":
		if interrupt:
			espeak.core.cancel()
		return espeak.core.synth(text)
	else:
		o.braille(text)
		return o.output(text,interrupt)

def set_rate(rate):
	if platform.system()=="Linux":
		return espeak.core.set_parameter(espeak.core.parameter_RATE,rate)

def get_rate():
	if platform.system()=="Linux":
		return espeak.core.get_parameter(espeak.core.parameter_RATE,100)
<filename>framework3d/speech.py
import platform
if platform.system()=="Linux":
	import espeak.core
else:
	from accessible_output2.outputs import auto
	o=auto.Auto()
def speak(text,interrupt=True):
	if platform.system()=="Linux":
		if interrupt:
			espeak.core.cancel()
		return espeak.core.synth(text)
	else:
		o.braille(text)
		return o.output(text,interrupt)

def set_rate(rate):
	if platform.system()=="Linux":
		return espeak.core.set_parameter(espeak.core.parameter_RATE,rate)

def get_rate():
	if platform.system()=="Linux":
		return espeak.core.get_parameter(espeak.core.parameter_RATE,100)