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

- old
+ new

@@ -37,13 +37,13 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, - # language: "en-US", - # sample_rate: 16000 + # encoding: :linear16, + # language: "en-US", + # sample_rate: 16000 # # op.done? #=> false # op.reload! # API call # op.done? #=> true # results = op.results @@ -68,11 +68,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.id #=> "1234567890" # @@ -90,11 +90,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> false # @@ -112,11 +112,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> true # op.results? #=> true @@ -139,11 +139,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> true # op.results? #=> true @@ -163,11 +163,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> true # op.error? #=> true @@ -188,11 +188,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> true # op.error? #=> true @@ -210,11 +210,11 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> false # op.reload! # API call @@ -234,10 +234,10 @@ # require "google/cloud/speech" # # speech = Google::Cloud::Speech.new # # op = speech.process "path/to/audio.raw", - # encoding: :raw, + # encoding: :linear16, # language: "en-US", # sample_rate: 16000 # # op.done? #=> false # op.wait_until_done!