azure_stt 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +6 -3
  3. data/.gitignore +2 -2
  4. data/CHANGELOG.md +16 -1
  5. data/Gemfile +3 -2
  6. data/README.md +2 -2
  7. data/azure_stt.gemspec +5 -2
  8. data/docs/AzureSTT/Client.html +148 -39
  9. data/docs/AzureSTT/Configuration.html +4 -4
  10. data/docs/AzureSTT/Error.html +4 -170
  11. data/docs/AzureSTT/Models/Base.html +4 -4
  12. data/docs/AzureSTT/Models/CombinedRecognizedPhrases.html +4 -4
  13. data/docs/AzureSTT/Models/File.html +5 -5
  14. data/docs/AzureSTT/Models/RecognizedPhrase.html +4 -4
  15. data/docs/AzureSTT/Models/Report.html +4 -4
  16. data/docs/AzureSTT/Models/Result.html +4 -4
  17. data/docs/AzureSTT/Models/Sentence.html +4 -4
  18. data/docs/AzureSTT/Models/Transcription.html +5 -5
  19. data/docs/AzureSTT/Models/Word.html +4 -4
  20. data/docs/AzureSTT/Models.html +4 -4
  21. data/docs/AzureSTT/NetError.html +161 -11
  22. data/docs/AzureSTT/Parsers/Base.html +4 -4
  23. data/docs/AzureSTT/Parsers/CombinedRecognizedPhrases.html +4 -4
  24. data/docs/AzureSTT/Parsers/File.html +4 -4
  25. data/docs/AzureSTT/Parsers/RecognizedPhrase.html +4 -4
  26. data/docs/AzureSTT/Parsers/Report.html +4 -4
  27. data/docs/AzureSTT/Parsers/Result.html +4 -4
  28. data/docs/AzureSTT/Parsers/Sentence.html +4 -4
  29. data/docs/AzureSTT/Parsers/Transcription.html +4 -4
  30. data/docs/AzureSTT/Parsers/Word.html +4 -4
  31. data/docs/AzureSTT/Parsers.html +4 -4
  32. data/docs/AzureSTT/ServiceError.html +161 -11
  33. data/docs/AzureSTT/Session.html +132 -24
  34. data/docs/AzureSTT/Types.html +4 -4
  35. data/docs/AzureSTT.html +4 -4
  36. data/docs/AzureStt_.html +5 -5
  37. data/docs/_index.html +5 -5
  38. data/docs/file.README.html +133 -95
  39. data/docs/frames.html +1 -1
  40. data/docs/index.html +133 -95
  41. data/docs/method_list.html +66 -34
  42. data/docs/top-level-namespace.html +4 -4
  43. data/lib/azure_stt/client.rb +9 -8
  44. data/lib/azure_stt/errors.rb +16 -9
  45. data/lib/azure_stt/models/file.rb +1 -1
  46. data/lib/azure_stt/models/transcription.rb +1 -1
  47. data/lib/azure_stt/parsers/combined_recognized_phrases.rb +1 -1
  48. data/lib/azure_stt/session.rb +8 -10
  49. data/lib/azure_stt/version.rb +1 -1
  50. data/lib/azure_stt.rb +2 -2
  51. metadata +7 -11
  52. data/.github/dependabot.yml +0 -6
  53. data/Gemfile.lock +0 -141
  54. data/docs/AzureBatchTranscription/Configuration.html +0 -212
  55. data/docs/AzureBatchTranscription.html +0 -301
  56. data/docs/AzureSTT/Transcription.html +0 -635
data/Gemfile.lock DELETED
@@ -1,141 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activesupport (6.1.4)
5
- concurrent-ruby (~> 1.0, >= 1.0.2)
6
- i18n (>= 1.6, < 2)
7
- minitest (>= 5.1)
8
- tzinfo (~> 2.0)
9
- zeitwerk (~> 2.3)
10
- addressable (2.7.0)
11
- public_suffix (>= 2.0.2, < 5.0)
12
- ast (2.4.2)
13
- concurrent-ruby (1.1.9)
14
- crack (0.4.5)
15
- rexml
16
- diff-lcs (1.4.4)
17
- docile (1.4.0)
18
- dotenv (2.7.6)
19
- dry-configurable (0.12.1)
20
- concurrent-ruby (~> 1.0)
21
- dry-core (~> 0.5, >= 0.5.0)
22
- dry-container (0.8.0)
23
- concurrent-ruby (~> 1.0)
24
- dry-configurable (~> 0.1, >= 0.1.3)
25
- dry-core (0.6.0)
26
- concurrent-ruby (~> 1.0)
27
- dry-inflector (0.2.1)
28
- dry-logic (1.2.0)
29
- concurrent-ruby (~> 1.0)
30
- dry-core (~> 0.5, >= 0.5)
31
- dry-struct (1.4.0)
32
- dry-core (~> 0.5, >= 0.5)
33
- dry-types (~> 1.5)
34
- ice_nine (~> 0.11)
35
- dry-types (1.5.1)
36
- concurrent-ruby (~> 1.0)
37
- dry-container (~> 0.3)
38
- dry-core (~> 0.5, >= 0.5)
39
- dry-inflector (~> 0.1, >= 0.1.2)
40
- dry-logic (~> 1.0, >= 1.0.2)
41
- factory_bot (6.2.0)
42
- activesupport (>= 5.0.0)
43
- faker (2.18.0)
44
- i18n (>= 1.6, < 2)
45
- hashdiff (1.0.1)
46
- httparty (0.18.1)
47
- mime-types (~> 3.0)
48
- multi_xml (>= 0.5.2)
49
- i18n (1.8.10)
50
- concurrent-ruby (~> 1.0)
51
- ice_nine (0.11.2)
52
- mime-types (3.3.1)
53
- mime-types-data (~> 3.2015)
54
- mime-types-data (3.2021.0225)
55
- minitest (5.14.4)
56
- multi_xml (0.6.0)
57
- parallel (1.20.1)
58
- parser (3.0.1.1)
59
- ast (~> 2.4.1)
60
- public_suffix (4.0.6)
61
- rainbow (3.0.0)
62
- rake (13.0.3)
63
- regexp_parser (2.1.1)
64
- rexml (3.2.5)
65
- rspec (3.10.0)
66
- rspec-core (~> 3.10.0)
67
- rspec-expectations (~> 3.10.0)
68
- rspec-mocks (~> 3.10.0)
69
- rspec-core (3.10.1)
70
- rspec-support (~> 3.10.0)
71
- rspec-expectations (3.10.1)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.10.0)
74
- rspec-its (1.3.0)
75
- rspec-core (>= 3.0.0)
76
- rspec-expectations (>= 3.0.0)
77
- rspec-mocks (3.10.2)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.10.0)
80
- rspec-support (3.10.2)
81
- rubocop (1.18.1)
82
- parallel (~> 1.10)
83
- parser (>= 3.0.0.0)
84
- rainbow (>= 2.2.2, < 4.0)
85
- regexp_parser (>= 1.8, < 3.0)
86
- rexml
87
- rubocop-ast (>= 1.7.0, < 2.0)
88
- ruby-progressbar (~> 1.7)
89
- unicode-display_width (>= 1.4.0, < 3.0)
90
- rubocop-ast (1.7.0)
91
- parser (>= 3.0.1.1)
92
- rubocop-performance (1.11.3)
93
- rubocop (>= 1.7.0, < 2.0)
94
- rubocop-ast (>= 0.4.0)
95
- rubocop-rake (0.6.0)
96
- rubocop (~> 1.0)
97
- rubocop-rspec (2.4.0)
98
- rubocop (~> 1.0)
99
- rubocop-ast (>= 1.1.0)
100
- ruby-progressbar (1.11.0)
101
- simplecov (0.21.2)
102
- docile (~> 1.1)
103
- simplecov-html (~> 0.11)
104
- simplecov_json_formatter (~> 0.1)
105
- simplecov-html (0.12.3)
106
- simplecov-lcov (0.8.0)
107
- simplecov_json_formatter (0.1.3)
108
- tzinfo (2.0.4)
109
- concurrent-ruby (~> 1.0)
110
- unicode-display_width (2.0.0)
111
- webmock (3.13.0)
112
- addressable (>= 2.3.6)
113
- crack (>= 0.3.2)
114
- hashdiff (>= 0.4.0, < 2.0.0)
115
- yard (0.9.26)
116
- zeitwerk (2.4.2)
117
-
118
- PLATFORMS
119
- ruby
120
-
121
- DEPENDENCIES
122
- bundler (~> 1.17)
123
- dotenv
124
- dry-struct (~> 1)
125
- factory_bot (~> 6)
126
- faker (~> 2)
127
- httparty (~> 0.17)
128
- rake (~> 13.0)
129
- rspec (~> 3)
130
- rspec-its
131
- rubocop
132
- rubocop-performance
133
- rubocop-rake
134
- rubocop-rspec
135
- simplecov
136
- simplecov-lcov
137
- webmock
138
- yard
139
-
140
- BUNDLED WITH
141
- 1.17.3
@@ -1,212 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: AzureBatchTranscription::Configuration
8
-
9
- &mdash; Documentation by YARD 0.9.26
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "AzureBatchTranscription::Configuration";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../AzureBatchTranscription.html" title="AzureBatchTranscription (module)">AzureBatchTranscription</a></span></span>
41
- &raquo;
42
- <span class="title">Configuration</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: AzureBatchTranscription::Configuration
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">AzureBatchTranscription::Configuration</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/azure_batch_transcription/configuration.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
- <p>Configurator pattern to be able to change the subscription key. By default the key is in a .env file</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div>
114
-
115
-
116
-
117
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
118
- <ul class="summary">
119
-
120
- <li class="public ">
121
- <span class="summary_signature">
122
-
123
- <a href="#subscription_key-instance_method" title="#subscription_key (instance method)">#<strong>subscription_key</strong> &#x21d2; Object </a>
124
-
125
-
126
-
127
- </span>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <span class="summary_desc"><div class='inline'>
141
- <p>Returns the value of attribute subscription_key.</p>
142
- </div></span>
143
-
144
- </li>
145
-
146
-
147
- </ul>
148
-
149
-
150
-
151
-
152
-
153
- <div id="instance_attr_details" class="attr_details">
154
- <h2>Instance Attribute Details</h2>
155
-
156
-
157
- <span id="subscription_key=-instance_method"></span>
158
- <div class="method_details first">
159
- <h3 class="signature first" id="subscription_key-instance_method">
160
-
161
- #<strong>subscription_key</strong> &#x21d2; <tt>Object</tt>
162
-
163
-
164
-
165
-
166
-
167
- </h3><div class="docstring">
168
- <div class="discussion">
169
-
170
- <p>Returns the value of attribute subscription_key.</p>
171
-
172
-
173
- </div>
174
- </div>
175
- <div class="tags">
176
-
177
-
178
- </div><table class="source_code">
179
- <tr>
180
- <td>
181
- <pre class="lines">
182
-
183
-
184
- 9
185
- 10
186
- 11</pre>
187
- </td>
188
- <td>
189
- <pre class="code"><span class="info file"># File 'lib/azure_batch_transcription/configuration.rb', line 9</span>
190
-
191
- <span class='kw'>def</span> <span class='id identifier rubyid_subscription_key'>subscription_key</span>
192
- <span class='ivar'>@subscription_key</span>
193
- <span class='kw'>end</span></pre>
194
- </td>
195
- </tr>
196
- </table>
197
- </div>
198
-
199
- </div>
200
-
201
-
202
- </div>
203
-
204
- <div id="footer">
205
- Generated on Fri Jun 18 13:42:58 2021 by
206
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
207
- 0.9.26 (ruby-2.6.6).
208
- </div>
209
-
210
- </div>
211
- </body>
212
- </html>
@@ -1,301 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Module: AzureBatchTranscription
8
-
9
- &mdash; Documentation by YARD 0.9.26
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "AzureBatchTranscription";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (A)</a> &raquo;
40
-
41
-
42
- <span class="title">AzureBatchTranscription</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Module: AzureBatchTranscription
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/azure_batch_transcription.rb<span class="defines">,<br />
82
- lib/azure_batch_transcription/configuration.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Overview</h2><div class="docstring">
89
- <div class="discussion">
90
-
91
- <p>Top level module for Azure Batch Transcription</p>
92
-
93
-
94
- </div>
95
- </div>
96
- <div class="tags">
97
-
98
-
99
- </div><h2>Defined Under Namespace</h2>
100
- <p class="children">
101
-
102
-
103
-
104
-
105
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="AzureBatchTranscription/Configuration.html" title="AzureBatchTranscription::Configuration (class)">Configuration</a></span>
106
-
107
-
108
- </p>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <h2>
118
- Class Method Summary
119
- <small><a href="#" class="summary_toggle">collapse</a></small>
120
- </h2>
121
-
122
- <ul class="summary">
123
-
124
- <li class="public ">
125
- <span class="summary_signature">
126
-
127
- <a href="#configuration-class_method" title="configuration (class method)">.<strong>configuration</strong> &#x21d2; Configuration </a>
128
-
129
-
130
-
131
- </span>
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
- <span class="summary_desc"><div class='inline'>
142
- <p>Get the configuration for Azure Batch Transcription.</p>
143
- </div></span>
144
-
145
- </li>
146
-
147
-
148
- <li class="public ">
149
- <span class="summary_signature">
150
-
151
- <a href="#configure-class_method" title="configure (class method)">.<strong>configure</strong> {|configuration| ... } &#x21d2; Object </a>
152
-
153
-
154
-
155
- </span>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
- <span class="summary_desc"><div class='inline'>
166
- <p>Modify the configuration.</p>
167
- </div></span>
168
-
169
- </li>
170
-
171
-
172
- </ul>
173
-
174
-
175
-
176
-
177
- <div id="class_method_details" class="method_details_list">
178
- <h2>Class Method Details</h2>
179
-
180
-
181
- <div class="method_details first">
182
- <h3 class="signature first" id="configuration-class_method">
183
-
184
- .<strong>configuration</strong> &#x21d2; <tt><span class='object_link'><a href="AzureBatchTranscription/Configuration.html" title="AzureBatchTranscription::Configuration (class)">Configuration</a></span></tt>
185
-
186
-
187
-
188
-
189
-
190
- </h3><div class="docstring">
191
- <div class="discussion">
192
-
193
- <p>Get the configuration for Azure Batch Transcription</p>
194
-
195
-
196
- </div>
197
- </div>
198
- <div class="tags">
199
-
200
- <p class="tag_title">Returns:</p>
201
- <ul class="return">
202
-
203
- <li>
204
-
205
-
206
- <span class='type'>(<tt><span class='object_link'><a href="AzureBatchTranscription/Configuration.html" title="AzureBatchTranscription::Configuration (class)">Configuration</a></span></tt>)</span>
207
-
208
-
209
-
210
- </li>
211
-
212
- </ul>
213
-
214
- </div><table class="source_code">
215
- <tr>
216
- <td>
217
- <pre class="lines">
218
-
219
-
220
- 17
221
- 18
222
- 19</pre>
223
- </td>
224
- <td>
225
- <pre class="code"><span class="info file"># File 'lib/azure_batch_transcription/configuration.rb', line 17</span>
226
-
227
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_configuration'>configuration</span>
228
- <span class='ivar'>@configuration</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="AzureBatchTranscription/Configuration.html" title="AzureBatchTranscription::Configuration (class)">Configuration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
229
- <span class='kw'>end</span></pre>
230
- </td>
231
- </tr>
232
- </table>
233
- </div>
234
-
235
- <div class="method_details ">
236
- <h3 class="signature " id="configure-class_method">
237
-
238
- .<strong>configure</strong> {|configuration| ... } &#x21d2; <tt>Object</tt>
239
-
240
-
241
-
242
-
243
-
244
- </h3><div class="docstring">
245
- <div class="discussion">
246
-
247
- <p>Modify the configuration</p>
248
-
249
-
250
- </div>
251
- </div>
252
- <div class="tags">
253
-
254
- <p class="tag_title">Yields:</p>
255
- <ul class="yield">
256
-
257
- <li>
258
-
259
-
260
- <span class='type'>(<tt><span class='object_link'><a href="#configuration-class_method" title="AzureBatchTranscription.configuration (method)">configuration</a></span></tt>)</span>
261
-
262
-
263
-
264
- </li>
265
-
266
- </ul>
267
-
268
- </div><table class="source_code">
269
- <tr>
270
- <td>
271
- <pre class="lines">
272
-
273
-
274
- 24
275
- 25
276
- 26</pre>
277
- </td>
278
- <td>
279
- <pre class="code"><span class="info file"># File 'lib/azure_batch_transcription/configuration.rb', line 24</span>
280
-
281
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span>
282
- <span class='kw'>yield</span> <span class='id identifier rubyid_configuration'>configuration</span>
283
- <span class='kw'>end</span></pre>
284
- </td>
285
- </tr>
286
- </table>
287
- </div>
288
-
289
- </div>
290
-
291
- </div>
292
-
293
- <div id="footer">
294
- Generated on Fri Jun 18 13:42:58 2021 by
295
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
- 0.9.26 (ruby-2.6.6).
297
- </div>
298
-
299
- </div>
300
- </body>
301
- </html>