Question: Please try to write code according to the sequence number given matlab Using the provided program in resources record_sound.m record a sentence in your voice

 Please try to write code according to the sequence number given

Please try to write code according to the sequence number given

matlab

Using the provided program in resources record_sound.m record a sentence in your voice (with a minimum of four words). You may name the audio file "my_sentence.wav". Create a new live script file run_audio_assignment" Section 1 (12 Points) 1. Load the audio "my_sentence.wav" 2. Play the audio file and pause for 7 seconds. 3. Create a new figure window. Plot a waveform of the audio file against sample indices and make sure to label the axes. 4. Segment the words present in the audio file by determining the indices of each word using MATLAB's data cursor in the waveform plot. 5. Now create an array named repeat_reverse" and concatenate the words such that each word repeats in the reverse order. For instance, if your original audio contained the words "One, Two, Three, Four" then your repeat_reverse audio should contain "Four Four, Three Three, Two Two, One One" 6. Create a new figure window. Plot the waveform of repeat_reverse against sample indices and make sure to label the axes. 7. Make sure to write the repeat_reverse audio variable into an audio file "repeat_once_reverse.wav" Section 2 (8 Points) 1. Determine the duration of each word in seconds 2. Determine the shortest word (lowest in terms of seconds) in the sentence you recorded 3. Print the shortest word along with its duration in seconds using fprintf() Using the provided program in resources record_sound.m record a sentence in your voice (with a minimum of four words). You may name the audio file "my_sentence.wav". Create a new live script file run_audio_assignment" Section 1 (12 Points) 1. Load the audio "my_sentence.wav" 2. Play the audio file and pause for 7 seconds. 3. Create a new figure window. Plot a waveform of the audio file against sample indices and make sure to label the axes. 4. Segment the words present in the audio file by determining the indices of each word using MATLAB's data cursor in the waveform plot. 5. Now create an array named repeat_reverse" and concatenate the words such that each word repeats in the reverse order. For instance, if your original audio contained the words "One, Two, Three, Four" then your repeat_reverse audio should contain "Four Four, Three Three, Two Two, One One" 6. Create a new figure window. Plot the waveform of repeat_reverse against sample indices and make sure to label the axes. 7. Make sure to write the repeat_reverse audio variable into an audio file "repeat_once_reverse.wav" Section 2 (8 Points) 1. Determine the duration of each word in seconds 2. Determine the shortest word (lowest in terms of seconds) in the sentence you recorded 3. Print the shortest word along with its duration in seconds using fprintf()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!