lib/google/cloud/speech/v1/stream.rb in google-cloud-speech-0.40.0 vs lib/google/cloud/speech/v1/stream.rb in google-cloud-speech-0.40.1
- old
+ new
@@ -58,16 +58,17 @@
##
# @private Creates a new Speech Stream instance.
# This must always be private, since it may change as the implementation
# changes over time.
def initialize streaming_config, streaming_call
+ super() # to init MonitorMixin
+
@streaming_call = streaming_call
@streaming_recognize_request = {
streaming_config: streaming_config
}
@results = []
@callbacks = Hash.new { |h, k| h[k] = [] }
- super() # to init MonitorMixin
end
##
# Starts the stream. The stream will be started in the first #send call.
def start