Traitement de la langue parlée en Python
Daniel Bourke
Machine Learning Engineer/YouTube Creator
Quelques bibliothèques Python existantes
Installer depuis PyPi :
$ pip install SpeechRecognition
# Import the SpeechRecognition library import speech_recognition as sr# Create an instance of Recognizer recognizer = sr.Recognizer()# Set the energy threshold recognizer.energy_threshold = 300
Recognizer inclut des fonctions qui interagissent avec des API de reconnaissance vocalerecognize_bing()recognize_google()recognize_google_cloud()recognize_wit()Entrée : audio_file
Sortie : transcription de la parole à partir de audio_file
Se concentrer sur recognize_google()
Reconnaître la parole d'un fichier audio avec SpeechRecognition :
# Import SpeechRecognition library import speech_recognition as sr# Instantiate Recognizer class recognizer = sr.Recognizer()# Transcribe speech using Goole web API recognizer.recognize_google(audio_data=audio_file language="en-US")
Learning speech recognition on DataCamp is awesome!
Traitement de la langue parlée en Python