Home » Programming (API) » Programming the MRPi1 with python » playTxt() – API python

playTxt()

Description

Play a text file on the speaker. This function use text to speech software.

Syntax

playTxt(file)

Parameter

file : the file name

Return

None

Exemples

# play MyFile.txt on the speaker
playTxt("MyFile.txt")