This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import speech_recognition as libreria_reconocimiento_de_voz | |
from gtts import gTTS | |
from playsound import playsound | |
import os | |
import unidecode | |
import re | |
# Función para reconocer la voz proveniente del micrófono. | |
def reconocer_voz_microfono(reconocer_voz, microfono): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################# | |
# Para más información consulte este link: https://realpython.com/python-speech-recognition/ | |
# pip install SpeechRecognition | |
################## | |
# Importa las librerías necesarias | |
import speech_recognition as libreria_principal |