Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago