google-cloud-text_to_speech-v1beta1 0.9.1 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/text_to_speech/v1beta1/rest.rb +38 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb +2 -2
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb +432 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/service_stub.rb +163 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest.rb +52 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech.rb +7 -1
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/client.rb +10 -9
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/operations.rb +14 -16
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/client.rb +372 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/operations.rb +793 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/service_stub.rb +108 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest.rb +53 -0
- data/lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize.rb +7 -1
- data/lib/google/cloud/text_to_speech/v1beta1/version.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1beta1.rb +7 -2
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.rb +4 -3
- metadata +16 -8
| @@ -0,0 +1,108 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # Copyright 2023 Google LLC
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     https://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            require "google/cloud/texttospeech/v1beta1/cloud_tts_lrs_pb"
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            module Google
         | 
| 22 | 
            +
              module Cloud
         | 
| 23 | 
            +
                module TextToSpeech
         | 
| 24 | 
            +
                  module V1beta1
         | 
| 25 | 
            +
                    module TextToSpeechLongAudioSynthesize
         | 
| 26 | 
            +
                      module Rest
         | 
| 27 | 
            +
                        ##
         | 
| 28 | 
            +
                        # REST service stub for the TextToSpeechLongAudioSynthesize service.
         | 
| 29 | 
            +
                        # Service stub contains baseline method implementations
         | 
| 30 | 
            +
                        # including transcoding, making the REST call, and deserialing the response.
         | 
| 31 | 
            +
                        #
         | 
| 32 | 
            +
                        class ServiceStub
         | 
| 33 | 
            +
                          def initialize endpoint:, credentials:
         | 
| 34 | 
            +
                            # These require statements are intentionally placed here to initialize
         | 
| 35 | 
            +
                            # the REST modules only when it's required.
         | 
| 36 | 
            +
                            require "gapic/rest"
         | 
| 37 | 
            +
             | 
| 38 | 
            +
                            @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
         | 
| 39 | 
            +
                                                                         numeric_enums: true,
         | 
| 40 | 
            +
                                                                         raise_faraday_errors: false
         | 
| 41 | 
            +
                          end
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                          ##
         | 
| 44 | 
            +
                          # Baseline implementation for the synthesize_long_audio REST call
         | 
| 45 | 
            +
                          #
         | 
| 46 | 
            +
                          # @param request_pb [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeLongAudioRequest]
         | 
| 47 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 48 | 
            +
                          # @param options [::Gapic::CallOptions]
         | 
| 49 | 
            +
                          #   Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         | 
| 50 | 
            +
                          #
         | 
| 51 | 
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         | 
| 52 | 
            +
                          # @yieldparam result [::Google::Longrunning::Operation]
         | 
| 53 | 
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         | 
| 54 | 
            +
                          #
         | 
| 55 | 
            +
                          # @return [::Google::Longrunning::Operation]
         | 
| 56 | 
            +
                          #   A result object deserialized from the server's reply
         | 
| 57 | 
            +
                          def synthesize_long_audio request_pb, options = nil
         | 
| 58 | 
            +
                            raise ::ArgumentError, "request must be provided" if request_pb.nil?
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                            verb, uri, query_string_params, body = ServiceStub.transcode_synthesize_long_audio_request request_pb
         | 
| 61 | 
            +
                            query_string_params = if query_string_params.any?
         | 
| 62 | 
            +
                                                    query_string_params.to_h { |p| p.split("=", 2) }
         | 
| 63 | 
            +
                                                  else
         | 
| 64 | 
            +
                                                    {}
         | 
| 65 | 
            +
                                                  end
         | 
| 66 | 
            +
             | 
| 67 | 
            +
                            response = @client_stub.make_http_request(
         | 
| 68 | 
            +
                              verb,
         | 
| 69 | 
            +
                              uri:     uri,
         | 
| 70 | 
            +
                              body:    body || "",
         | 
| 71 | 
            +
                              params:  query_string_params,
         | 
| 72 | 
            +
                              options: options
         | 
| 73 | 
            +
                            )
         | 
| 74 | 
            +
                            operation = ::Gapic::Rest::TransportOperation.new response
         | 
| 75 | 
            +
                            result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
         | 
| 76 | 
            +
             | 
| 77 | 
            +
                            yield result, operation if block_given?
         | 
| 78 | 
            +
                            result
         | 
| 79 | 
            +
                          end
         | 
| 80 | 
            +
             | 
| 81 | 
            +
                          ##
         | 
| 82 | 
            +
                          # @private
         | 
| 83 | 
            +
                          #
         | 
| 84 | 
            +
                          # GRPC transcoding helper method for the synthesize_long_audio REST call
         | 
| 85 | 
            +
                          #
         | 
| 86 | 
            +
                          # @param request_pb [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeLongAudioRequest]
         | 
| 87 | 
            +
                          #   A request object representing the call parameters. Required.
         | 
| 88 | 
            +
                          # @return [Array(String, [String, nil], Hash{String => String})]
         | 
| 89 | 
            +
                          #   Uri, Body, Query string parameters
         | 
| 90 | 
            +
                          def self.transcode_synthesize_long_audio_request request_pb
         | 
| 91 | 
            +
                            transcoder = Gapic::Rest::GrpcTranscoder.new
         | 
| 92 | 
            +
                                                                    .with_bindings(
         | 
| 93 | 
            +
                                                                      uri_method: :post,
         | 
| 94 | 
            +
                                                                      uri_template: "/v1beta1/{parent}:SynthesizeLongAudio",
         | 
| 95 | 
            +
                                                                      body: "*",
         | 
| 96 | 
            +
                                                                      matches: [
         | 
| 97 | 
            +
                                                                        ["parent", %r{^projects/[^/]+/locations/[^/]+/voices/[^/]+/?$}, false]
         | 
| 98 | 
            +
                                                                      ]
         | 
| 99 | 
            +
                                                                    )
         | 
| 100 | 
            +
                            transcoder.transcode request_pb
         | 
| 101 | 
            +
                          end
         | 
| 102 | 
            +
                        end
         | 
| 103 | 
            +
                      end
         | 
| 104 | 
            +
                    end
         | 
| 105 | 
            +
                  end
         | 
| 106 | 
            +
                end
         | 
| 107 | 
            +
              end
         | 
| 108 | 
            +
            end
         | 
| @@ -0,0 +1,53 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # Copyright 2023 Google LLC
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         | 
| 6 | 
            +
            # you may not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #     https://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing, software
         | 
| 12 | 
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         | 
| 13 | 
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         | 
| 14 | 
            +
            # See the License for the specific language governing permissions and
         | 
| 15 | 
            +
            # limitations under the License.
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            require "gapic/rest"
         | 
| 20 | 
            +
            require "gapic/config"
         | 
| 21 | 
            +
            require "gapic/config/method"
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            require "google/cloud/text_to_speech/v1beta1/version"
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/credentials"
         | 
| 26 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/paths"
         | 
| 27 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/operations"
         | 
| 28 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/client"
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            module Google
         | 
| 31 | 
            +
              module Cloud
         | 
| 32 | 
            +
                module TextToSpeech
         | 
| 33 | 
            +
                  module V1beta1
         | 
| 34 | 
            +
                    ##
         | 
| 35 | 
            +
                    # Service that implements Google Cloud Text-to-Speech API.
         | 
| 36 | 
            +
                    #
         | 
| 37 | 
            +
                    # To load this service and instantiate a REST client:
         | 
| 38 | 
            +
                    #
         | 
| 39 | 
            +
                    #     require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest"
         | 
| 40 | 
            +
                    #     client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeechLongAudioSynthesize::Rest::Client.new
         | 
| 41 | 
            +
                    #
         | 
| 42 | 
            +
                    module TextToSpeechLongAudioSynthesize
         | 
| 43 | 
            +
                      # Client for the REST transport
         | 
| 44 | 
            +
                      module Rest
         | 
| 45 | 
            +
                      end
         | 
| 46 | 
            +
                    end
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
                end
         | 
| 49 | 
            +
              end
         | 
| 50 | 
            +
            end
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            helper_path = ::File.join __dir__, "rest", "helpers.rb"
         | 
| 53 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/helpers" if ::File.file? helper_path
         | 
| @@ -26,6 +26,7 @@ require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesiz | |
| 26 26 | 
             
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/paths"
         | 
| 27 27 | 
             
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/operations"
         | 
| 28 28 | 
             
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/client"
         | 
| 29 | 
            +
            require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest"
         | 
| 29 30 |  | 
| 30 31 | 
             
            module Google
         | 
| 31 32 | 
             
              module Cloud
         | 
| @@ -34,11 +35,16 @@ module Google | |
| 34 35 | 
             
                    ##
         | 
| 35 36 | 
             
                    # Service that implements Google Cloud Text-to-Speech API.
         | 
| 36 37 | 
             
                    #
         | 
| 37 | 
            -
                    #  | 
| 38 | 
            +
                    # @example Load this service and instantiate a gRPC client
         | 
| 38 39 | 
             
                    #
         | 
| 39 40 | 
             
                    #     require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize"
         | 
| 40 41 | 
             
                    #     client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeechLongAudioSynthesize::Client.new
         | 
| 41 42 | 
             
                    #
         | 
| 43 | 
            +
                    # @example Load this service and instantiate a REST client
         | 
| 44 | 
            +
                    #
         | 
| 45 | 
            +
                    #     require "google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest"
         | 
| 46 | 
            +
                    #     client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeechLongAudioSynthesize::Rest::Client.new
         | 
| 47 | 
            +
                    #
         | 
| 42 48 | 
             
                    module TextToSpeechLongAudioSynthesize
         | 
| 43 49 | 
             
                    end
         | 
| 44 50 | 
             
                  end
         | 
| @@ -24,13 +24,18 @@ module Google | |
| 24 24 | 
             
              module Cloud
         | 
| 25 25 | 
             
                module TextToSpeech
         | 
| 26 26 | 
             
                  ##
         | 
| 27 | 
            -
                  #  | 
| 27 | 
            +
                  # API client module.
         | 
| 28 28 | 
             
                  #
         | 
| 29 | 
            -
                  # @example
         | 
| 29 | 
            +
                  # @example Load this package, including all its services, and instantiate a gRPC client
         | 
| 30 30 | 
             
                  #
         | 
| 31 31 | 
             
                  #     require "google/cloud/text_to_speech/v1beta1"
         | 
| 32 32 | 
             
                  #     client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new
         | 
| 33 33 | 
             
                  #
         | 
| 34 | 
            +
                  # @example Load this package, including all its services, and instantiate a REST client
         | 
| 35 | 
            +
                  #
         | 
| 36 | 
            +
                  #     require "google/cloud/text_to_speech/v1beta1"
         | 
| 37 | 
            +
                  #     client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Rest::Client.new
         | 
| 38 | 
            +
                  #
         | 
| 34 39 | 
             
                  module V1beta1
         | 
| 35 40 | 
             
                  end
         | 
| 36 41 | 
             
                end
         | 
| @@ -35,7 +35,9 @@ module Google | |
| 35 35 | 
             
                # Details about how and where to publish client libraries.
         | 
| 36 36 | 
             
                # @!attribute [rw] version
         | 
| 37 37 | 
             
                #   @return [::String]
         | 
| 38 | 
            -
                #     Version of the API to apply these settings to.
         | 
| 38 | 
            +
                #     Version of the API to apply these settings to. This is the full protobuf
         | 
| 39 | 
            +
                #     package for the API, ending in the version element.
         | 
| 40 | 
            +
                #     Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
         | 
| 39 41 | 
             
                # @!attribute [rw] launch_stage
         | 
| 40 42 | 
             
                #   @return [::Google::Api::LaunchStage]
         | 
| 41 43 | 
             
                #     Launch stage of this version of the API.
         | 
| @@ -81,7 +83,7 @@ module Google | |
| 81 83 | 
             
                #     long-running operation pattern.
         | 
| 82 84 | 
             
                # @!attribute [rw] new_issue_uri
         | 
| 83 85 | 
             
                #   @return [::String]
         | 
| 84 | 
            -
                #     Link to a  | 
| 86 | 
            +
                #     Link to a *public* URI where users can report issues.  Example:
         | 
| 85 87 | 
             
                #     https://issuetracker.google.com/issues/new?component=190865&template=1161103
         | 
| 86 88 | 
             
                # @!attribute [rw] documentation_uri
         | 
| 87 89 | 
             
                #   @return [::String]
         | 
| @@ -111,6 +113,10 @@ module Google | |
| 111 113 | 
             
                #     Client library settings.  If the same version string appears multiple
         | 
| 112 114 | 
             
                #     times in this list, then the last one wins.  Settings from earlier
         | 
| 113 115 | 
             
                #     settings with the same version string are discarded.
         | 
| 116 | 
            +
                # @!attribute [rw] proto_reference_documentation_uri
         | 
| 117 | 
            +
                #   @return [::String]
         | 
| 118 | 
            +
                #     Optional link to proto reference documentation.  Example:
         | 
| 119 | 
            +
                #     https://cloud.google.com/pubsub/lite/docs/reference/rpc
         | 
| 114 120 | 
             
                class Publishing
         | 
| 115 121 | 
             
                  include ::Google::Protobuf::MessageExts
         | 
| 116 122 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| @@ -203,9 +209,57 @@ module Google | |
| 203 209 | 
             
                # @!attribute [rw] common
         | 
| 204 210 | 
             
                #   @return [::Google::Api::CommonLanguageSettings]
         | 
| 205 211 | 
             
                #     Some settings.
         | 
| 212 | 
            +
                # @!attribute [rw] renamed_services
         | 
| 213 | 
            +
                #   @return [::Google::Protobuf::Map{::String => ::String}]
         | 
| 214 | 
            +
                #     Map from original service names to renamed versions.
         | 
| 215 | 
            +
                #     This is used when the default generated types
         | 
| 216 | 
            +
                #     would cause a naming conflict. (Neither name is
         | 
| 217 | 
            +
                #     fully-qualified.)
         | 
| 218 | 
            +
                #     Example: Subscriber to SubscriberServiceApi.
         | 
| 219 | 
            +
                # @!attribute [rw] renamed_resources
         | 
| 220 | 
            +
                #   @return [::Google::Protobuf::Map{::String => ::String}]
         | 
| 221 | 
            +
                #     Map from full resource types to the effective short name
         | 
| 222 | 
            +
                #     for the resource. This is used when otherwise resource
         | 
| 223 | 
            +
                #     named from different services would cause naming collisions.
         | 
| 224 | 
            +
                #     Example entry:
         | 
| 225 | 
            +
                #     "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
         | 
| 226 | 
            +
                # @!attribute [rw] ignored_resources
         | 
| 227 | 
            +
                #   @return [::Array<::String>]
         | 
| 228 | 
            +
                #     List of full resource types to ignore during generation.
         | 
| 229 | 
            +
                #     This is typically used for API-specific Location resources,
         | 
| 230 | 
            +
                #     which should be handled by the generator as if they were actually
         | 
| 231 | 
            +
                #     the common Location resources.
         | 
| 232 | 
            +
                #     Example entry: "documentai.googleapis.com/Location"
         | 
| 233 | 
            +
                # @!attribute [rw] forced_namespace_aliases
         | 
| 234 | 
            +
                #   @return [::Array<::String>]
         | 
| 235 | 
            +
                #     Namespaces which must be aliased in snippets due to
         | 
| 236 | 
            +
                #     a known (but non-generator-predictable) naming collision
         | 
| 237 | 
            +
                # @!attribute [rw] handwritten_signatures
         | 
| 238 | 
            +
                #   @return [::Array<::String>]
         | 
| 239 | 
            +
                #     Method signatures (in the form "service.method(signature)")
         | 
| 240 | 
            +
                #     which are provided separately, so shouldn't be generated.
         | 
| 241 | 
            +
                #     Snippets *calling* these methods are still generated, however.
         | 
| 206 242 | 
             
                class DotnetSettings
         | 
| 207 243 | 
             
                  include ::Google::Protobuf::MessageExts
         | 
| 208 244 | 
             
                  extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 245 | 
            +
             | 
| 246 | 
            +
                  # @!attribute [rw] key
         | 
| 247 | 
            +
                  #   @return [::String]
         | 
| 248 | 
            +
                  # @!attribute [rw] value
         | 
| 249 | 
            +
                  #   @return [::String]
         | 
| 250 | 
            +
                  class RenamedServicesEntry
         | 
| 251 | 
            +
                    include ::Google::Protobuf::MessageExts
         | 
| 252 | 
            +
                    extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 253 | 
            +
                  end
         | 
| 254 | 
            +
             | 
| 255 | 
            +
                  # @!attribute [rw] key
         | 
| 256 | 
            +
                  #   @return [::String]
         | 
| 257 | 
            +
                  # @!attribute [rw] value
         | 
| 258 | 
            +
                  #   @return [::String]
         | 
| 259 | 
            +
                  class RenamedResourcesEntry
         | 
| 260 | 
            +
                    include ::Google::Protobuf::MessageExts
         | 
| 261 | 
            +
                    extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
| 262 | 
            +
                  end
         | 
| 209 263 | 
             
                end
         | 
| 210 264 |  | 
| 211 265 | 
             
                # Settings for Ruby client libraries.
         | 
| @@ -240,8 +294,8 @@ module Google | |
| 240 294 | 
             
                #     Example of a YAML configuration::
         | 
| 241 295 | 
             
                #
         | 
| 242 296 | 
             
                #      publishing:
         | 
| 243 | 
            -
                #         | 
| 244 | 
            -
                #          - selector:  | 
| 297 | 
            +
                #        method_settings:
         | 
| 298 | 
            +
                #          - selector: google.cloud.speech.v2.Speech.BatchRecognize
         | 
| 245 299 | 
             
                #            long_running:
         | 
| 246 300 | 
             
                #              initial_poll_delay:
         | 
| 247 301 | 
             
                #                seconds: 60 # 1 minute
         | 
| @@ -299,6 +353,15 @@ module Google | |
| 299 353 |  | 
| 300 354 | 
             
                  # Street View Org.
         | 
| 301 355 | 
             
                  STREET_VIEW = 4
         | 
| 356 | 
            +
             | 
| 357 | 
            +
                  # Shopping Org.
         | 
| 358 | 
            +
                  SHOPPING = 5
         | 
| 359 | 
            +
             | 
| 360 | 
            +
                  # Geo Org.
         | 
| 361 | 
            +
                  GEO = 6
         | 
| 362 | 
            +
             | 
| 363 | 
            +
                  # Generative AI - https://developers.generativeai.google
         | 
| 364 | 
            +
                  GENERATIVE_AI = 7
         | 
| 302 365 | 
             
                end
         | 
| 303 366 |  | 
| 304 367 | 
             
                # To where should client libraries be published?
         | 
| @@ -26,21 +26,22 @@ module Google | |
| 26 26 | 
             
                    # @!attribute [rw] parent
         | 
| 27 27 | 
             
                    #   @return [::String]
         | 
| 28 28 | 
             
                    #     The resource states of the request in the form of
         | 
| 29 | 
            -
                    #     `projects/*/locations | 
| 29 | 
            +
                    #     `projects/*/locations/*`.
         | 
| 30 30 | 
             
                    # @!attribute [rw] input
         | 
| 31 31 | 
             
                    #   @return [::Google::Cloud::TextToSpeech::V1beta1::SynthesisInput]
         | 
| 32 32 | 
             
                    #     Required. The Synthesizer requires either plain text or SSML as input.
         | 
| 33 | 
            +
                    #     While Long Audio is in preview, SSML is temporarily unsupported.
         | 
| 33 34 | 
             
                    # @!attribute [rw] audio_config
         | 
| 34 35 | 
             
                    #   @return [::Google::Cloud::TextToSpeech::V1beta1::AudioConfig]
         | 
| 35 36 | 
             
                    #     Required. The configuration of the synthesized audio.
         | 
| 36 37 | 
             
                    # @!attribute [rw] output_gcs_uri
         | 
| 37 38 | 
             
                    #   @return [::String]
         | 
| 38 | 
            -
                    #     Specifies a Cloud Storage URI for the synthesis results. Must be
         | 
| 39 | 
            +
                    #     Required. Specifies a Cloud Storage URI for the synthesis results. Must be
         | 
| 39 40 | 
             
                    #     specified in the format: `gs://bucket_name/object_name`, and the bucket
         | 
| 40 41 | 
             
                    #     must already exist.
         | 
| 41 42 | 
             
                    # @!attribute [rw] voice
         | 
| 42 43 | 
             
                    #   @return [::Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams]
         | 
| 43 | 
            -
                    #     The desired voice of the synthesized audio.
         | 
| 44 | 
            +
                    #     Required. The desired voice of the synthesized audio.
         | 
| 44 45 | 
             
                    class SynthesizeLongAudioRequest
         | 
| 45 46 | 
             
                      include ::Google::Protobuf::MessageExts
         | 
| 46 47 | 
             
                      extend ::Google::Protobuf::MessageExts::ClassMethods
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-cloud-text_to_speech-v1beta1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.10.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2023-05-15 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: gapic-common
         | 
| @@ -16,7 +16,7 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version:  | 
| 19 | 
            +
                    version: 0.18.0
         | 
| 20 20 | 
             
                - - "<"
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 22 | 
             
                    version: 2.a
         | 
| @@ -26,7 +26,7 @@ dependencies: | |
| 26 26 | 
             
                requirements:
         | 
| 27 27 | 
             
                - - ">="
         | 
| 28 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 | 
            -
                    version:  | 
| 29 | 
            +
                    version: 0.18.0
         | 
| 30 30 | 
             
                - - "<"
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 32 | 
             
                    version: 2.a
         | 
| @@ -50,14 +50,14 @@ dependencies: | |
| 50 50 | 
             
                requirements:
         | 
| 51 51 | 
             
                - - "~>"
         | 
| 52 52 | 
             
                  - !ruby/object:Gem::Version
         | 
| 53 | 
            -
                    version: 1.26. | 
| 53 | 
            +
                    version: 1.26.3
         | 
| 54 54 | 
             
              type: :development
         | 
| 55 55 | 
             
              prerelease: false
         | 
| 56 56 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 57 | 
             
                requirements:
         | 
| 58 58 | 
             
                - - "~>"
         | 
| 59 59 | 
             
                  - !ruby/object:Gem::Version
         | 
| 60 | 
            -
                    version: 1.26. | 
| 60 | 
            +
                    version: 1.26.3
         | 
| 61 61 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 62 62 | 
             
              name: minitest
         | 
| 63 63 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -172,15 +172,23 @@ files: | |
| 172 172 | 
             
            - README.md
         | 
| 173 173 | 
             
            - lib/google-cloud-text_to_speech-v1beta1.rb
         | 
| 174 174 | 
             
            - lib/google/cloud/text_to_speech/v1beta1.rb
         | 
| 175 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/rest.rb
         | 
| 175 176 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech.rb
         | 
| 176 177 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb
         | 
| 177 178 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/credentials.rb
         | 
| 178 179 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/paths.rb
         | 
| 180 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest.rb
         | 
| 181 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb
         | 
| 182 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/service_stub.rb
         | 
| 179 183 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize.rb
         | 
| 180 184 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/client.rb
         | 
| 181 185 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/credentials.rb
         | 
| 182 186 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/operations.rb
         | 
| 183 187 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/paths.rb
         | 
| 188 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest.rb
         | 
| 189 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/client.rb
         | 
| 190 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/operations.rb
         | 
| 191 | 
            +
            - lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/rest/service_stub.rb
         | 
| 184 192 | 
             
            - lib/google/cloud/text_to_speech/v1beta1/version.rb
         | 
| 185 193 | 
             
            - lib/google/cloud/texttospeech/v1beta1/cloud_tts_lrs_pb.rb
         | 
| 186 194 | 
             
            - lib/google/cloud/texttospeech/v1beta1/cloud_tts_lrs_services_pb.rb
         | 
| @@ -218,8 +226,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 218 226 | 
             
                - !ruby/object:Gem::Version
         | 
| 219 227 | 
             
                  version: '0'
         | 
| 220 228 | 
             
            requirements: []
         | 
| 221 | 
            -
            rubygems_version: 3. | 
| 229 | 
            +
            rubygems_version: 3.4.2
         | 
| 222 230 | 
             
            signing_key: 
         | 
| 223 231 | 
             
            specification_version: 4
         | 
| 224 | 
            -
            summary:  | 
| 232 | 
            +
            summary: Synthesizes natural-sounding speech by applying powerful neural network models.
         | 
| 225 233 | 
             
            test_files: []
         |