Module: Google::Cloud
- Defined in:
- lib/google-cloud-speech.rb,
lib/google/cloud/speech.rb,
lib/google/cloud/speech/audio.rb,
lib/google/cloud/speech/result.rb,
lib/google/cloud/speech/stream.rb,
lib/google/cloud/speech/convert.rb,
lib/google/cloud/speech/project.rb,
lib/google/cloud/speech/service.rb,
lib/google/cloud/speech/version.rb,
lib/google/cloud/speech/operation.rb,
lib/google/cloud/speech/credentials.rb,
lib/google/cloud/speech/v1/speech_client.rb,
lib/google/cloud/speech/v1/cloud_speech_pb.rb,
lib/google/cloud/speech/v1/cloud_speech_services_pb.rb,
lib/google/cloud/speech/v1/doc/google/cloud/speech/v1/cloud_speech.rb
Defined Under Namespace
Modules: Speech
Class Method Summary collapse
-
.speech(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Speech::Project
Creates a new object for connecting to the Speech service.
Instance Method Summary collapse
-
#speech(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Speech::Project
Creates a new object for connecting to the Speech service.
Class Method Details
.speech(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Speech::Project
Creates a new object for connecting to the Speech service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
106 107 108 109 110 111 112 |
# File 'lib/google-cloud-speech.rb', line 106 def self.speech project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/speech" Google::Cloud::Speech.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#speech(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Speech::Project
Creates a new object for connecting to the Speech service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
65 66 67 68 69 |
# File 'lib/google-cloud-speech.rb', line 65 def speech scope: nil, timeout: nil, client_config: nil Google::Cloud.speech @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |