lib/google/cloud/speech/result.rb in google-cloud-speech-0.21.0 vs lib/google/cloud/speech/result.rb in google-cloud-speech-0.21.1
- old
+ new
@@ -148,22 +148,22 @@
# @example
# require "google/cloud/speech"
#
# speech = Google::Cloud::Speech.new
#
- # stream = audio.stream encoding: :raw, sample_rate: 16000
+ # stream = speech.stream encoding: :raw, sample_rate: 16000
#
# # register callback for when an interim result is returned
# stream.on_interim do |final_results, interim_results|
# interim_result = interim_results.first
# puts interim_result.transcript # "how old is the Brooklyn Bridge"
# puts interim_result.confidence # 0.9826789498329163
# puts interim_result.stability # 0.8999
# end
#
- # # Stream 5 seconds of audio from the microhone
+ # # Stream 5 seconds of audio from the microphone
# # Actual implementation of microphone input varies by platform
- # 5.times.do
+ # 5.times do
# stream.send MicrophoneInput.read(32000)
# end
#
# stream.stop
#