                     audioPlayer.prepareToPlay()
                     audioPlayer.play()
                     
-                    // Uncomment the line below to allow the test time to play the
-                    // audio through the speakers.
-                    
-                    // sleep(10)
+                   if (self.playAudio) {
+                        sleep(10)
+                    }
                     
                     playExpectation.fulfill()
                     

        
        waitForExpectationsWithTimeout(timeout, handler: { error in XCTAssertNil(error, "Timeout") })
    }

    
}

                    let audioPlayer = try AVAudioPlayer(data: data)
                    audioPlayer.prepareToPlay()
                    audioPlayer.play()
    
                    if (self.playAudio) {
                        sleep(10)
                    }
                    
                    synthPlayExpectation.fulfill()
                    
