cloudmersive-voice-recognition-api-client 1.2.9 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 311b63f1d0d08d384689eb523f326bf21eaa444f864e2864f4785905499393aa
4
- data.tar.gz: 073c876d2361908ab79b4b17338eedf27753f7d0d728592538c37102047e0679
3
+ metadata.gz: 4d441be750ccde364faa3465ae43cbe9f49566b7e634b06ca1bfea5d33e4d4a6
4
+ data.tar.gz: 9b917197ebe8c784bfcfc6f7e7eed202dbb2dc03dc9def11cc79b9f2b3bf0cbe
5
5
  SHA512:
6
- metadata.gz: b8d2800cbb8995257650bda27275e3ae4f6f5da9132e7467aa5dbeaeeaa8f74cac0aaa7ae111f3234566d556f08f904d40c1d40b82872464b920722720d1487b
7
- data.tar.gz: af6ac0542a139265805c6d78c84c892fa409e74bf03032e59a2fe457d43f1849f5b32833d761c922615f7d0f3eb6a395a3e44c8dca8f68a9eb5ef3aa576014e7
6
+ metadata.gz: 697cf53e5fe2bd299ee8c8964c3f422d62e66db90abae213f94421eb0e8647eed4464a409731ed83c54ed94575d45c17c016e5652ec49dcc9cab778887b90fca
7
+ data.tar.gz: 6573d82f5400e0df3e82a8a0796229822aa7f754470668120583a9b31dafaff1abd84bcd4d797d9c81ab886180114b74844cad35839148cc69ebbe1dffe7acea
data/README.md CHANGED
@@ -7,7 +7,7 @@ Speech APIs enable you to recognize speech and convert it to text using advanced
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.2.9
10
+ - Package version: 1.3.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-voice-recognition-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-voice-recognition-api-client-1.2.9.gem
26
+ gem install ./cloudmersive-voice-recognition-api-client-1.3.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-voice-recognition-api-client-1.2.9.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-voice-recognition-api-client-1.3.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-voice-recognition-api-client', '~> 1.2.9'
34
+ gem 'cloudmersive-voice-recognition-api-client', '~> 1.3.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -85,11 +85,13 @@ Class | Method | HTTP request | Description
85
85
  ------------ | ------------- | ------------- | -------------
86
86
  *CloudmersiveVoiceRecognitionApiClient::RecognizeApi* | [**recognize_file**](docs/RecognizeApi.md#recognize_file) | **POST** /speech/recognize/file | Recognize audio input as text using machine learning
87
87
  *CloudmersiveVoiceRecognitionApiClient::SpeakApi* | [**speak_post**](docs/SpeakApi.md#speak_post) | **POST** /speech/speak/text/basicVoice/{format} | Perform text-to-speech on a string
88
+ *CloudmersiveVoiceRecognitionApiClient::SpeakApi* | [**speak_text_to_speech**](docs/SpeakApi.md#speak_text_to_speech) | **POST** /speech/speak/text/voice/basic/audio | Perform text-to-speech on a string
88
89
 
89
90
 
90
91
  ## Documentation for Models
91
92
 
92
93
  - [CloudmersiveVoiceRecognitionApiClient::SpeechRecognitionResult](docs/SpeechRecognitionResult.md)
94
+ - [CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest](docs/TextToSpeechRequest.md)
93
95
 
94
96
 
95
97
  ## Documentation for Authorization
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: v1
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: unset
11
+ Swagger Codegen version: 2.3.1
12
12
 
13
13
  =end
14
14
 
data/docs/SpeakApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**speak_post**](SpeakApi.md#speak_post) | **POST** /speech/speak/text/basicVoice/{format} | Perform text-to-speech on a string
8
+ [**speak_text_to_speech**](SpeakApi.md#speak_text_to_speech) | **POST** /speech/speak/text/voice/basic/audio | Perform text-to-speech on a string
8
9
 
9
10
 
10
11
  # **speak_post**
@@ -57,6 +58,60 @@ Name | Type | Description | Notes
57
58
 
58
59
  [Apikey](../README.md#Apikey)
59
60
 
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
64
+ - **Accept**: application/octet-stream
65
+
66
+
67
+
68
+ # **speak_text_to_speech**
69
+ > Object speak_text_to_speech(req_config)
70
+
71
+ Perform text-to-speech on a string
72
+
73
+ Takes as input a string and a file format (mp3 or wav) and outputs a wave form in the appropriate format.
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'cloudmersive-voice-recognition-api-client'
79
+ # setup authorization
80
+ CloudmersiveVoiceRecognitionApiClient.configure do |config|
81
+ # Configure API key authorization: Apikey
82
+ config.api_key['Apikey'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['Apikey'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = CloudmersiveVoiceRecognitionApiClient::SpeakApi.new
88
+
89
+ req_config = CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest.new # TextToSpeechRequest | String input request
90
+
91
+
92
+ begin
93
+ #Perform text-to-speech on a string
94
+ result = api_instance.speak_text_to_speech(req_config)
95
+ p result
96
+ rescue CloudmersiveVoiceRecognitionApiClient::ApiError => e
97
+ puts "Exception when calling SpeakApi->speak_text_to_speech: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ Name | Type | Description | Notes
104
+ ------------- | ------------- | ------------- | -------------
105
+ **req_config** | [**TextToSpeechRequest**](TextToSpeechRequest.md)| String input request |
106
+
107
+ ### Return type
108
+
109
+ **Object**
110
+
111
+ ### Authorization
112
+
113
+ [Apikey](../README.md#Apikey)
114
+
60
115
  ### HTTP request headers
61
116
 
62
117
  - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
@@ -0,0 +1,9 @@
1
+ # CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **format** | **String** | File format for output audio file: wav or mp3, default is mp3 | [optional]
7
+ **text** | **String** | Text to be converted to speech | [optional]
8
+
9
+
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -18,6 +18,7 @@ require 'cloudmersive-voice-recognition-api-client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'cloudmersive-voice-recognition-api-client/models/speech_recognition_result'
21
+ require 'cloudmersive-voice-recognition-api-client/models/text_to_speech_request'
21
22
 
22
23
  # APIs
23
24
  require 'cloudmersive-voice-recognition-api-client/api/recognize_api'
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -58,7 +58,7 @@ module CloudmersiveVoiceRecognitionApiClient
58
58
  # header parameters
59
59
  header_params = {}
60
60
  # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
62
62
  # HTTP header 'Content-Type'
63
63
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
64
64
 
@@ -80,5 +80,60 @@ module CloudmersiveVoiceRecognitionApiClient
80
80
  end
81
81
  return data, status_code, headers
82
82
  end
83
+
84
+ # Perform text-to-speech on a string
85
+ # Takes as input a string and a file format (mp3 or wav) and outputs a wave form in the appropriate format.
86
+ # @param req_config String input request
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Object]
89
+ def speak_text_to_speech(req_config, opts = {})
90
+ data, _status_code, _headers = speak_text_to_speech_with_http_info(req_config, opts)
91
+ return data
92
+ end
93
+
94
+ # Perform text-to-speech on a string
95
+ # Takes as input a string and a file format (mp3 or wav) and outputs a wave form in the appropriate format.
96
+ # @param req_config String input request
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
99
+ def speak_text_to_speech_with_http_info(req_config, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "Calling API: SpeakApi.speak_text_to_speech ..."
102
+ end
103
+ # verify the required parameter 'req_config' is set
104
+ if @api_client.config.client_side_validation && req_config.nil?
105
+ fail ArgumentError, "Missing the required parameter 'req_config' when calling SpeakApi.speak_text_to_speech"
106
+ end
107
+ # resource path
108
+ local_var_path = "/speech/speak/text/voice/basic/audio"
109
+
110
+ # query parameters
111
+ query_params = {}
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
117
+ # HTTP header 'Content-Type'
118
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
119
+
120
+ # form parameters
121
+ form_params = {}
122
+
123
+ # http body (model)
124
+ post_body = @api_client.object_to_http_body(req_config)
125
+ auth_names = ['Apikey']
126
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'Object')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: SpeakApi#speak_text_to_speech\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
83
138
  end
84
139
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,199 @@
1
+ =begin
2
+ #speechapi
3
+
4
+ #Speech APIs enable you to recognize speech and convert it to text using advanced machine learning, and also to convert text to speech.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveVoiceRecognitionApiClient
16
+ # Input to a Text To Speech request
17
+ class TextToSpeechRequest
18
+ # File format for output audio file: wav or mp3, default is mp3
19
+ attr_accessor :format
20
+
21
+ # Text to be converted to speech
22
+ attr_accessor :text
23
+
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'format' => :'Format',
29
+ :'text' => :'Text'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'format' => :'String',
37
+ :'text' => :'String'
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'Format')
50
+ self.format = attributes[:'Format']
51
+ end
52
+
53
+ if attributes.has_key?(:'Text')
54
+ self.text = attributes[:'Text']
55
+ end
56
+
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properties with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ return invalid_properties
64
+ end
65
+
66
+ # Check to see if the all the properties in the model are valid
67
+ # @return true if the model is valid
68
+ def valid?
69
+ return true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ format == o.format &&
78
+ text == o.text
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [format, text].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def build_from_hash(attributes)
97
+ return nil unless attributes.is_a?(Hash)
98
+ self.class.swagger_types.each_pair do |key, type|
99
+ if type =~ /\AArray<(.*)>/i
100
+ # check to ensure the input is an array given that the the attribute
101
+ # is documented as an array but the input is not
102
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
103
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
104
+ end
105
+ elsif !attributes[self.class.attribute_map[key]].nil?
106
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ # Deserializes the data based on type
114
+ # @param string type Data type
115
+ # @param string value Value to be deserialized
116
+ # @return [Object] Deserialized data
117
+ def _deserialize(type, value)
118
+ case type.to_sym
119
+ when :DateTime
120
+ DateTime.parse(value)
121
+ when :Date
122
+ Date.parse(value)
123
+ when :String
124
+ value.to_s
125
+ when :Integer
126
+ value.to_i
127
+ when :Float
128
+ value.to_f
129
+ when :BOOLEAN
130
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
+ true
132
+ else
133
+ false
134
+ end
135
+ when :Object
136
+ # generic object (usually a Hash), return directly
137
+ value
138
+ when /\AArray<(?<inner_type>.+)>\z/
139
+ inner_type = Regexp.last_match[:inner_type]
140
+ value.map { |v| _deserialize(inner_type, v) }
141
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
+ k_type = Regexp.last_match[:k_type]
143
+ v_type = Regexp.last_match[:v_type]
144
+ {}.tap do |hash|
145
+ value.each do |k, v|
146
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
147
+ end
148
+ end
149
+ else # model
150
+ temp_model = CloudmersiveVoiceRecognitionApiClient.const_get(type).new
151
+ temp_model.build_from_hash(value)
152
+ end
153
+ end
154
+
155
+ # Returns the string representation of the object
156
+ # @return [String] String presentation of the object
157
+ def to_s
158
+ to_hash.to_s
159
+ end
160
+
161
+ # to_body is an alias to to_hash (backward compatibility)
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_body
164
+ to_hash
165
+ end
166
+
167
+ # Returns the object in the form of hash
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_hash
170
+ hash = {}
171
+ self.class.attribute_map.each_pair do |attr, param|
172
+ value = self.send(attr)
173
+ next if value.nil?
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map{ |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end
196
+
197
+ end
198
+
199
+ end
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  module CloudmersiveVoiceRecognitionApiClient
14
- VERSION = "1.2.9"
14
+ VERSION = "1.3.0"
15
15
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -45,4 +45,16 @@ describe 'SpeakApi' do
45
45
  end
46
46
  end
47
47
 
48
+ # unit tests for speak_text_to_speech
49
+ # Perform text-to-speech on a string
50
+ # Takes as input a string and a file format (mp3 or wav) and outputs a wave form in the appropriate format.
51
+ # @param req_config String input request
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [Object]
54
+ describe 'speak_text_to_speech test' do
55
+ it "should work" do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
48
60
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #speechapi
3
+
4
+ #Speech APIs enable you to recognize speech and convert it to text using advanced machine learning, and also to convert text to speech.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'TextToSpeechRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of TextToSpeechRequest' do
31
+ it 'should create an instance of TextToSpeechRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveVoiceRecognitionApiClient::TextToSpeechRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "format"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "text"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
48
+
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: v1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: unset
9
+ Swagger Codegen version: 2.3.1
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-voice-recognition-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2020-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,42 +34,42 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 2.1.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 2.1.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.6'
60
57
  - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: 3.6.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.6'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.6'
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 3.6.0
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.6'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -205,6 +205,7 @@ files:
205
205
  - "./docs/RecognizeApi.md"
206
206
  - "./docs/SpeakApi.md"
207
207
  - "./docs/SpeechRecognitionResult.md"
208
+ - "./docs/TextToSpeechRequest.md"
208
209
  - "./git_push.sh"
209
210
  - "./lib/cloudmersive-voice-recognition-api-client.rb"
210
211
  - "./lib/cloudmersive-voice-recognition-api-client/api/recognize_api.rb"
@@ -213,12 +214,14 @@ files:
213
214
  - "./lib/cloudmersive-voice-recognition-api-client/api_error.rb"
214
215
  - "./lib/cloudmersive-voice-recognition-api-client/configuration.rb"
215
216
  - "./lib/cloudmersive-voice-recognition-api-client/models/speech_recognition_result.rb"
217
+ - "./lib/cloudmersive-voice-recognition-api-client/models/text_to_speech_request.rb"
216
218
  - "./lib/cloudmersive-voice-recognition-api-client/version.rb"
217
219
  - "./spec/api/recognize_api_spec.rb"
218
220
  - "./spec/api/speak_api_spec.rb"
219
221
  - "./spec/api_client_spec.rb"
220
222
  - "./spec/configuration_spec.rb"
221
223
  - "./spec/models/speech_recognition_result_spec.rb"
224
+ - "./spec/models/text_to_speech_request_spec.rb"
222
225
  - "./spec/spec_helper.rb"
223
226
  homepage: https://www.cloudmersive.com/voice-recognition-and-speech-api
224
227
  licenses:
@@ -239,8 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
242
  - !ruby/object:Gem::Version
240
243
  version: '0'
241
244
  requirements: []
242
- rubyforge_project:
243
- rubygems_version: 2.7.6
245
+ rubygems_version: 3.0.3
244
246
  signing_key:
245
247
  specification_version: 4
246
248
  summary: The most powerful and cost-effective speech recognition and voice AI APIs,