 
 LOGGING = false
 jenkinsServer.setLoggingEnabled LOGGING
+
+# TODO
+emitter = jenkinsEmitter
 
 ###
 Configuration & User Options

      if LOGGING then console.info "AudioShadowSpeaker.text2speech >> Audio file created and copied: #{fileName}"
      @fileRepository.add fileName
      path = new File("../#{fileName}").getAbsolutePath()
      jenkinsEmitter.emit 'audio.create', path, fileName
    fail = ->
      console.warn arguments
      process.exitCode 1

    if LOGGING then console.log 'TEXT = ' + text
    speaker.text2speech text

  emitter.on 'server.down', ->
    if LOGGING then console.log 'Server down:', arguments
    text = sprintf(Labels.getRandom('onServerDown'))
    if LOGGING then console.log 'TEXT = ' + text
    speaker.text2speech text

  emitter.on 'server.up', ->
    if LOGGING then console.log 'Server up:', arguments
    text = sprintf(getRandomText('onServerUp'))
    if LOGGING then console.log 'TEXT = ' + text
