In this lab, you will take the Sound File preamble.wav and create a new sentence from those words.
The sentence you are to create is:
We insure the common order to secure for the people more liberty.
The entire text of the Preamble is:
We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.Make sure the you include some break/silence between the words of your newly created sentence.
To break the original sound into word, we need to know the starting and ending indices of the words. According to page 300 in our text book, the following words from the beginning of the Preamble can be found at the given indices from preamble10.wav:
Word Starting
IndexEnding
IndexWe 0 15,730 the 15,730 17,407 People 17,407 26,726 of 26,726 31,131 the 31,131 33,413 United 33,413 40,052 States 40,052 55,510
For this lab, you may want to use the code from
Create a Java program that will:
Your header block comment for the program must include the following:
Header block comments for each method must include the following:
Here are some example sound files you can use with this assignment.