-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
40 lines (27 loc) · 807 Bytes
/
Copy pathconfig.py
File metadata and controls
40 lines (27 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##!/usr/bin/env python3
# -*- coding: utf-8 -*
import pyttsx3 # text to audio
import os
import wikipedia
#configuration
'''
https://ichi.pro/es/introduccion-a-pyttsx3-un-conversor-de-texto-a-voz-para-python-81905511310787
espeak.py for ubuntu
nsss.py for Macs
sapi5 for Windows
'''
AUTOR = "Erick"
LANGUAGE = "es-ES"
ENGINE = pyttsx3.init('sapi5')
voices = ENGINE.getProperty('voices')
# print(voices)
ENGINE.setProperty('voice', voices[0].id)
ENGINE.setProperty("rate", 180)
# print(voice[0].id)
# wikipeadia lang
wikipedia.set_lang(LANGUAGE)
# for program apps
APP_LIST = []
USER_PATH = os.environ["USERPROFILE"]
START_PATH = f"{USER_PATH}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\"
PROGRAM_PATH = "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\"