/usr/share/freedroidrpg/sound/speak.py is in freedroidrpg-data 0.16.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/python
import random
import os
i = 1
file = open("botchat")
data = file.readline()[:-1]
while data != "":
junk = str(i) + ".wav"
i = i + 1
pitchpick = random.randint(1, 10)
if pitchpick < 3:
pitch = random.randint(1, 20)
else:
pitch = random.randint(50,99)
speed = 100 + random.randint(1, 40)
chain = "espeak -p " + str(pitch) + " -s " + str(speed) + " -a 150 -w " + junk + """ " """ + data + """ " """
os.system(chain)
os.system("oggenc " + junk)
os.system("rm " + junk)
data = file.readline()[:-1]
|