/**
* Plays the words, in order with a parameter-specified pause between each and writes the resulting sound out to a file
* @param pause the number of milliseconds to pause between words
* @param filename the name of the file to write
* @param path the path where the file should be written
* @throws InterruptedException
*/
public void play(int pause, String filename, String path) throws InterruptedException {
for (int i = 0; i < numWords; i++) {
myWordArray[i].blockingPlay();
Thread.sleep(pause);
}
Sound newSound = new Sound(myWordArray.getSamples());
newSound.setMediaPath(path);
newSound.write(filename);
}
This is what I have so far but it's not working..