Professional Documents
Culture Documents
In [1]:
# Import packages
Workshop: Speech cognitive system
import os
Contact: Tian Jing import numpy as np
from scipy.io import wavfile
Email: tianjing@nus.edu.sg
# For HMM model
from hmmlearn import hmm
Objective from python_speech_features import mfcc
Submission guideline
Once you finish your workshop, rename your .ipynb file to your name, and submit your .ipynb file into
LumiNUS.
localhost:8889/nbconvert/html/Dropbox/TO PRINT AND CAN DELETE/wk_speech_recognition_v2.0.ipynb?download=false 1/7 localhost:8889/nbconvert/html/Dropbox/TO PRINT AND CAN DELETE/wk_speech_recognition_v2.0.ipynb?download=false 2/7
5/27/2019 wk_speech_recognition_v2.0 5/27/2019 wk_speech_recognition_v2.0
Reference
HMMLearn, https://hmmlearn.readthedocs.io/en/latest/tutorial.html
(https://hmmlearn.readthedocs.io/en/latest/tutorial.html)
Python_speech_features, https://python-speech-features.readthedocs.io/en/latest/ (https://python-
speech-features.readthedocs.io/en/latest/)
In [5]:
# Step 3: Iterate through all HMM models and pick the one with the highest score
localhost:8889/nbconvert/html/Dropbox/TO PRINT AND CAN DELETE/wk_speech_recognition_v2.0.ipynb?download=false 5/7 localhost:8889/nbconvert/html/Dropbox/TO PRINT AND CAN DELETE/wk_speech_recognition_v2.0.ipynb?download=false 6/7
5/27/2019 wk_speech_recognition_v2.0
In [6]:
In [7]:
# Load data
AUDIO_FILE = "english.wav"
Tasks
In [8]:
Once you finish your workshop, rename your .ipynb file to your name, and submit your .ipynb file
into LumiNUS.