Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/find-the-key.activity/parser/voz.py
blob: b42f2560a414eaedf5b98e277045eac3f3fe5858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python

from subprocess import Popen
from ConfigParser import SafeConfigParser

def parseador(objeto, atributo):
    parser = SafeConfigParser()
    parser.read('config.ini')

    sayEs(parser.get(objeto, atributo))

def sayEs(text):
    Popen(['espeak', '-v', 'es', text])


def main():
    parseador("silla", "name")


if __name__ == "__main__":
    main()