added wordToSound method to dynamically create the size of the file