             return { }
         }
 
-        self.audioStreamer = audioStreamer
         return audioStreamer.stopStreaming
     }
 

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

            failure: failure,
            success: success) else { return nil }

        return audioStreamer.createTranscriptionOutput()
    }
}
