                     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()
                     

                    let audioPlayer = try AVAudioPlayer(data: data)
                    audioPlayer.prepareToPlay()
                    audioPlayer.play()
                    
                    // Uncomment the line below to allow the test time to play the
                    // audio through the speakers.
                    
                    // sleep(10)
                    
                    synthPlayExpectation.fulfill()
                    

    // Text to Speech Service
    private let service = TextToSpeech()
    
    
    private let playAudio = true
    
    // Phrase used for testing
    let testString = "All the problems of the world could be solved if men were only willing to think."
    
    let germanString = "Alle Probleme der Welt könnten gelöst werden, wenn Männer waren nur bereit, zu denken."
    
    let ssmlString = "<speak xml:lang=\"En-US\" version=\"1.0\"><say-as interpret-as=\"letters\">Hello</say-as></speak>"
    
    /// Timeout for an asynchronous call to return before failing the unit test
    private let timeout: NSTimeInterval = 20.0
