July 2018
Intermediate to advanced
462 pages
12h 2m
English
In this recipe, we will be making use of the ttsSpeak() method, which activates the speech synthesis application on an Android device and the device will generate sound for the supplied text.
Let's take a look at the following steps:
import androidapp = android.Android()message = "Let us count from 1 to 10"app.ttsSpeak(message)for i in range(1,11): app.ttsSpeak(str(i))
C:\Users\Bintu\QPython\Scripts>adb push demoTextToSpeach.py /sdcard/qpython/bintuscripts
Read now
Unlock full access