Module: Google::Cloud::TextToSpeech::V1
- Defined in:
- lib/google/cloud/text_to_speech/v1.rb,
lib/google/cloud/text_to_speech/v1/credentials.rb,
lib/google/cloud/text_to_speech/v1/doc/overview.rb,
lib/google/cloud/text_to_speech/v1/text_to_speech_client.rb
Defined Under Namespace
Classes: Credentials, TextToSpeechClient
Class Method Summary collapse
-
.new(credentials: nil, scopes: nil, client_config: nil, timeout: nil, metadata: nil, exception_transformer: nil, lib_name: nil, lib_version: nil) ⇒ Object
Service that implements Google Cloud Text-to-Speech API.
Class Method Details
.new(credentials: nil, scopes: nil, client_config: nil, timeout: nil, metadata: nil, exception_transformer: nil, lib_name: nil, lib_version: nil) ⇒ Object
Service that implements Google Cloud Text-to-Speech API.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/google/cloud/text_to_speech/v1.rb', line 108 def self.new \ credentials: nil, scopes: nil, client_config: nil, timeout: nil, metadata: nil, exception_transformer: nil, lib_name: nil, lib_version: nil kwargs = { credentials: credentials, scopes: scopes, client_config: client_config, timeout: timeout, metadata: , exception_transformer: exception_transformer, lib_name: lib_name, lib_version: lib_version }.select { |_, v| v != nil } Google::Cloud::TextToSpeech::V1::TextToSpeechClient.new(**kwargs) end |