             failure: failure,
             success: success) else { return nil }
 
-        self.audioStreamer = audioStreamer
         return audioStreamer.createTranscriptionOutput()
     }
 }

public class SpeechToText: WatsonService {

    private let authStrategy: AuthenticationStrategy
    private var audioStreamer: SpeechToTextAudioStreamer?

    /** A function that, when executed, stops streaming audio to Speech to Text. */
    public typealias StopStreaming = Void -> Void

            return { }
        }

        return audioStreamer.stopStreaming
    }

