Module: Google::Cloud
- Defined in:
- lib/google-cloud-speech.rb,
lib/google/cloud/speech.rb,
lib/google/cloud/speech/v1.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/doc/overview.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_id = nil, credentials = 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_id = nil, credentials = 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.
110 111 112 113 114 115 116 117 |
# File 'lib/google-cloud-speech.rb', line 110 def self.speech project_id = nil, credentials = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/speech" Google::Cloud::Speech.new project_id: project_id, credentials: credentials, 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.
67 68 69 70 71 |
# File 'lib/google-cloud-speech.rb', line 67 def speech scope: nil, timeout: nil, client_config: nil Google::Cloud.speech @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |