Block diagram for Arduino and Matlab for Voice Analysis
So what we are doing essentially is depicted in the figure below.
Circuit Diagram for Arduino and Matlab for Voice Analysis
The first task is how to acquire the analog speech signal or voice signal using Arduino. The following circuit schematic shows how to acquire the voice signal using external microphone and amplifier circuit and connect with Arduino ADC pin.
Matlab Simulink Setup for Speech analysis
The next task is to setup the Matlab software. The matlab simulink is used to read digital voice signal sent by arduino and plot it in real time. The following picture shows how to make simulink model to work with Arduino UNO.
Note if you used Arduino Due instead follow the tutorial Reading analog signal with Arduino Due and Simulink.
Running simulation and Viewing the Voice in real time
Afterwards we run the simulink simulation and view the time scope we will see the following voice signal plotted in the graph.
The higher peaks shows voice signal when spoken into the microphone.
If we increase change the value of 10kOhm potentiometer, we will see increase(decrease) in gain of the amplifier. We effectively are changing the sensitivity of the amplifier of input voice signal from the microphone.
For example by increasing resistance in the potentiometer we get the following real time signal graph.
Further increase in potentiometer value to maximum possible resulted in the following speech signal real time graph.
Thus for hobbyist we showed you simple Arduino and Matlab for voice analysis setup that can be build and experimented readily.