Module: Google::Cloud
- Defined in:
- lib/google-cloud-speech.rb,
lib/google/cloud/speech.rb,
lib/google/cloud/speech/job.rb,
lib/google/cloud/speech/audio.rb,
lib/google/cloud/speech/result.rb,
lib/google/cloud/speech/stream.rb,
lib/google/cloud/speech/project.rb,
lib/google/cloud/speech/service.rb,
lib/google/cloud/speech/version.rb,
lib/google/cloud/speech/credentials.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.
102 103 104 105 106 107 108 |
# File 'lib/google-cloud-speech.rb', line 102 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.
63 64 65 66 67 |
# File 'lib/google-cloud-speech.rb', line 63 def speech scope: nil, timeout: nil, client_config: nil Google::Cloud.speech @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |