lib/google/cloud/speech/result.rb in google-cloud-speech-0.24.0 vs lib/google/cloud/speech/result.rb in google-cloud-speech-0.25.0

- old
+ new

@@ -44,11 +44,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # audio = speech.audio "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # results = audio.recognize # # result = results.first @@ -94,11 +94,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # audio = speech.audio "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # results = audio.recognize # # result = results.first @@ -152,10 +152,10 @@ # @example # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # - # stream = speech.stream encoding: :raw, + # stream = speech.stream encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # # register callback for when an interim result is returned # stream.on_interim do |final_results, interim_results|