azure_stt 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/CHANGELOG.md +10 -1
  4. data/Gemfile +1 -0
  5. data/README.md +2 -2
  6. data/azure_stt.gemspec +2 -2
  7. data/docs/AzureSTT/Client.html +148 -39
  8. data/docs/AzureSTT/Configuration.html +4 -4
  9. data/docs/AzureSTT/Error.html +4 -170
  10. data/docs/AzureSTT/Models/Base.html +4 -4
  11. data/docs/AzureSTT/Models/CombinedRecognizedPhrases.html +4 -4
  12. data/docs/AzureSTT/Models/File.html +5 -5
  13. data/docs/AzureSTT/Models/RecognizedPhrase.html +4 -4
  14. data/docs/AzureSTT/Models/Report.html +4 -4
  15. data/docs/AzureSTT/Models/Result.html +4 -4
  16. data/docs/AzureSTT/Models/Sentence.html +4 -4
  17. data/docs/AzureSTT/Models/Transcription.html +5 -5
  18. data/docs/AzureSTT/Models/Word.html +4 -4
  19. data/docs/AzureSTT/Models.html +4 -4
  20. data/docs/AzureSTT/NetError.html +161 -11
  21. data/docs/AzureSTT/Parsers/Base.html +4 -4
  22. data/docs/AzureSTT/Parsers/CombinedRecognizedPhrases.html +4 -4
  23. data/docs/AzureSTT/Parsers/File.html +4 -4
  24. data/docs/AzureSTT/Parsers/RecognizedPhrase.html +4 -4
  25. data/docs/AzureSTT/Parsers/Report.html +4 -4
  26. data/docs/AzureSTT/Parsers/Result.html +4 -4
  27. data/docs/AzureSTT/Parsers/Sentence.html +4 -4
  28. data/docs/AzureSTT/Parsers/Transcription.html +4 -4
  29. data/docs/AzureSTT/Parsers/Word.html +4 -4
  30. data/docs/AzureSTT/Parsers.html +4 -4
  31. data/docs/AzureSTT/ServiceError.html +161 -11
  32. data/docs/AzureSTT/Session.html +132 -24
  33. data/docs/AzureSTT/Types.html +4 -4
  34. data/docs/AzureSTT.html +4 -4
  35. data/docs/AzureStt_.html +5 -5
  36. data/docs/_index.html +5 -5
  37. data/docs/file.README.html +133 -95
  38. data/docs/frames.html +1 -1
  39. data/docs/index.html +133 -95
  40. data/docs/method_list.html +66 -34
  41. data/docs/top-level-namespace.html +4 -4
  42. data/lib/azure_stt/client.rb +9 -8
  43. data/lib/azure_stt/errors.rb +16 -9
  44. data/lib/azure_stt/models/file.rb +1 -1
  45. data/lib/azure_stt/models/transcription.rb +1 -1
  46. data/lib/azure_stt/session.rb +4 -4
  47. data/lib/azure_stt/version.rb +1 -1
  48. metadata +4 -7
  49. data/docs/AzureBatchTranscription/Configuration.html +0 -212
  50. data/docs/AzureBatchTranscription.html +0 -301
  51. data/docs/AzureSTT/Transcription.html +0 -635
@@ -1,635 +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: AzureSTT::Transcription
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 = "AzureSTT::Transcription";
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 (T)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../AzureSTT.html" title="AzureSTT (module)">AzureSTT</a></span></span>
41
- &raquo;
42
- <span class="title">Transcription</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: AzureSTT::Transcription
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Models/Base.html" title="AzureSTT::Models::Base (class)">Models::Base</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Dry::Struct</li>
78
-
79
- <li class="next"><span class='object_link'><a href="Models/Base.html" title="AzureSTT::Models::Base (class)">Models::Base</a></span></li>
80
-
81
- <li class="next">AzureSTT::Transcription</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
- </dl>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <dl>
100
- <dt>Defined in:</dt>
101
- <dd>lib/azure_stt/transcription.rb</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
- <h2>Overview</h2><div class="docstring">
107
- <div class="discussion">
108
-
109
- <p>Model for a transcription. Contains the results and static methods to create and retrieve the transcriptions.</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
- <h2>
126
- Instance Method Summary
127
- <small><a href="#" class="summary_toggle">collapse</a></small>
128
- </h2>
129
-
130
- <ul class="summary">
131
-
132
- <li class="public ">
133
- <span class="summary_signature">
134
-
135
- <a href="#failed%3F-instance_method" title="#failed? (instance method)">#<strong>failed?</strong> &#x21d2; Boolean </a>
136
-
137
-
138
-
139
- </span>
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
- <span class="summary_desc"><div class='inline'>
150
- <p>Is the status is failed ?.</p>
151
- </div></span>
152
-
153
- </li>
154
-
155
-
156
- <li class="public ">
157
- <span class="summary_signature">
158
-
159
- <a href="#finished%3F-instance_method" title="#finished? (instance method)">#<strong>finished?</strong> &#x21d2; Boolean </a>
160
-
161
-
162
-
163
- </span>
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
- <span class="summary_desc"><div class='inline'>
174
- <p>Is the process finished ? (Succeeded or failed).</p>
175
- </div></span>
176
-
177
- </li>
178
-
179
-
180
- <li class="public ">
181
- <span class="summary_signature">
182
-
183
- <a href="#report-instance_method" title="#report (instance method)">#<strong>report</strong> &#x21d2; Models::Report </a>
184
-
185
-
186
-
187
- </span>
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
- <span class="summary_desc"><div class='inline'>
198
- <p>Get the report of a transcription from transcriptions/id/files route.</p>
199
- </div></span>
200
-
201
- </li>
202
-
203
-
204
- <li class="public ">
205
- <span class="summary_signature">
206
-
207
- <a href="#results-instance_method" title="#results (instance method)">#<strong>results</strong> &#x21d2; Array[Models::Result] </a>
208
-
209
-
210
-
211
- </span>
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
- <span class="summary_desc"><div class='inline'>
222
- <p>Get the results of a transcription.</p>
223
- </div></span>
224
-
225
- </li>
226
-
227
-
228
- <li class="public ">
229
- <span class="summary_signature">
230
-
231
- <a href="#running%3F-instance_method" title="#running? (instance method)">#<strong>running?</strong> &#x21d2; Boolean </a>
232
-
233
-
234
-
235
- </span>
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
- <span class="summary_desc"><div class='inline'>
246
- <p>Is the process still running ?.</p>
247
- </div></span>
248
-
249
- </li>
250
-
251
-
252
- <li class="public ">
253
- <span class="summary_signature">
254
-
255
- <a href="#succeeded%3F-instance_method" title="#succeeded? (instance method)">#<strong>succeeded?</strong> &#x21d2; Boolean </a>
256
-
257
-
258
-
259
- </span>
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
- <span class="summary_desc"><div class='inline'>
270
- <p>Has the process succeeded ?.</p>
271
- </div></span>
272
-
273
- </li>
274
-
275
-
276
- </ul>
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
- <div id="instance_method_details" class="method_details_list">
289
- <h2>Instance Method Details</h2>
290
-
291
-
292
- <div class="method_details first">
293
- <h3 class="signature first" id="failed?-instance_method">
294
-
295
- #<strong>failed?</strong> &#x21d2; <tt>Boolean</tt>
296
-
297
-
298
-
299
-
300
-
301
- </h3><div class="docstring">
302
- <div class="discussion">
303
-
304
- <p>Is the status is failed ?</p>
305
-
306
-
307
- </div>
308
- </div>
309
- <div class="tags">
310
-
311
- <p class="tag_title">Returns:</p>
312
- <ul class="return">
313
-
314
- <li>
315
-
316
-
317
- <span class='type'>(<tt>Boolean</tt>)</span>
318
-
319
-
320
-
321
- </li>
322
-
323
- </ul>
324
-
325
- </div><table class="source_code">
326
- <tr>
327
- <td>
328
- <pre class="lines">
329
-
330
-
331
- 35
332
- 36
333
- 37</pre>
334
- </td>
335
- <td>
336
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 35</span>
337
-
338
- <span class='kw'>def</span> <span class='id identifier rubyid_failed?'>failed?</span>
339
- <span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Failed</span><span class='tstring_end'>&#39;</span></span>
340
- <span class='kw'>end</span></pre>
341
- </td>
342
- </tr>
343
- </table>
344
- </div>
345
-
346
- <div class="method_details ">
347
- <h3 class="signature " id="finished?-instance_method">
348
-
349
- #<strong>finished?</strong> &#x21d2; <tt>Boolean</tt>
350
-
351
-
352
-
353
-
354
-
355
- </h3><div class="docstring">
356
- <div class="discussion">
357
-
358
- <p>Is the process finished ? (Succeeded or failed)</p>
359
-
360
-
361
- </div>
362
- </div>
363
- <div class="tags">
364
-
365
- <p class="tag_title">Returns:</p>
366
- <ul class="return">
367
-
368
- <li>
369
-
370
-
371
- <span class='type'>(<tt>Boolean</tt>)</span>
372
-
373
-
374
-
375
- </li>
376
-
377
- </ul>
378
-
379
- </div><table class="source_code">
380
- <tr>
381
- <td>
382
- <pre class="lines">
383
-
384
-
385
- 53
386
- 54
387
- 55</pre>
388
- </td>
389
- <td>
390
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 53</span>
391
-
392
- <span class='kw'>def</span> <span class='id identifier rubyid_finished?'>finished?</span>
393
- <span class='id identifier rubyid_succeeded?'>succeeded?</span> <span class='op'>||</span> <span class='id identifier rubyid_failed?'>failed?</span>
394
- <span class='kw'>end</span></pre>
395
- </td>
396
- </tr>
397
- </table>
398
- </div>
399
-
400
- <div class="method_details ">
401
- <h3 class="signature " id="report-instance_method">
402
-
403
- #<strong>report</strong> &#x21d2; <tt><span class='object_link'><a href="Models/Report.html" title="AzureSTT::Models::Report (class)">Models::Report</a></span></tt>
404
-
405
-
406
-
407
-
408
-
409
- </h3><div class="docstring">
410
- <div class="discussion">
411
-
412
- <p>Get the report of a transcription from transcriptions/id/files route</p>
413
-
414
-
415
- </div>
416
- </div>
417
- <div class="tags">
418
-
419
- <p class="tag_title">Returns:</p>
420
- <ul class="return">
421
-
422
- <li>
423
-
424
-
425
- <span class='type'>(<tt><span class='object_link'><a href="Models/Report.html" title="AzureSTT::Models::Report (class)">Models::Report</a></span></tt>)</span>
426
-
427
-
428
-
429
- </li>
430
-
431
- </ul>
432
-
433
- <p class="tag_title">See Also:</p>
434
- <ul class="see">
435
-
436
- <li><a href="https://centralus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-0/operations/GetTranscriptionFiles/console" target="_parent" title="https://centralus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-0/operations/GetTranscriptionFiles/console">https://centralus.dev.cognitive.microsoft.com/docs/services/speech-to-text-api-v3-0/operations/GetTranscriptionFiles/console</a></li>
437
-
438
- </ul>
439
-
440
- </div><table class="source_code">
441
- <tr>
442
- <td>
443
- <pre class="lines">
444
-
445
-
446
- 64
447
- 65
448
- 66</pre>
449
- </td>
450
- <td>
451
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 64</span>
452
-
453
- <span class='kw'>def</span> <span class='id identifier rubyid_report'>report</span>
454
- <span class='ivar'>@report</span> <span class='op'>||=</span> <span class='id identifier rubyid_retrieve_report'>retrieve_report</span>
455
- <span class='kw'>end</span></pre>
456
- </td>
457
- </tr>
458
- </table>
459
- </div>
460
-
461
- <div class="method_details ">
462
- <h3 class="signature " id="results-instance_method">
463
-
464
- #<strong>results</strong> &#x21d2; <tt>Array[<span class='object_link'><a href="Models/Result.html" title="AzureSTT::Models::Result (class)">Models::Result</a></span>]</tt>
465
-
466
-
467
-
468
-
469
-
470
- </h3><div class="docstring">
471
- <div class="discussion">
472
-
473
- <p>Get the results of a transcription. The results are the files containing the speech-to-text. As a transcription process can have multiple files, the results are in an Array.</p>
474
-
475
-
476
- </div>
477
- </div>
478
- <div class="tags">
479
-
480
- <p class="tag_title">Returns:</p>
481
- <ul class="return">
482
-
483
- <li>
484
-
485
-
486
- <span class='type'>(<tt>Array[<span class='object_link'><a href="Models/Result.html" title="AzureSTT::Models::Result (class)">Models::Result</a></span>]</tt>)</span>
487
-
488
-
489
-
490
- </li>
491
-
492
- </ul>
493
-
494
- </div><table class="source_code">
495
- <tr>
496
- <td>
497
- <pre class="lines">
498
-
499
-
500
- 75
501
- 76
502
- 77</pre>
503
- </td>
504
- <td>
505
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 75</span>
506
-
507
- <span class='kw'>def</span> <span class='id identifier rubyid_results'>results</span>
508
- <span class='ivar'>@results</span> <span class='op'>||=</span> <span class='id identifier rubyid_retrieve_results'>retrieve_results</span>
509
- <span class='kw'>end</span></pre>
510
- </td>
511
- </tr>
512
- </table>
513
- </div>
514
-
515
- <div class="method_details ">
516
- <h3 class="signature " id="running?-instance_method">
517
-
518
- #<strong>running?</strong> &#x21d2; <tt>Boolean</tt>
519
-
520
-
521
-
522
-
523
-
524
- </h3><div class="docstring">
525
- <div class="discussion">
526
-
527
- <p>Is the process still running ?</p>
528
-
529
-
530
- </div>
531
- </div>
532
- <div class="tags">
533
-
534
- <p class="tag_title">Returns:</p>
535
- <ul class="return">
536
-
537
- <li>
538
-
539
-
540
- <span class='type'>(<tt>Boolean</tt>)</span>
541
-
542
-
543
-
544
- </li>
545
-
546
- </ul>
547
-
548
- </div><table class="source_code">
549
- <tr>
550
- <td>
551
- <pre class="lines">
552
-
553
-
554
- 26
555
- 27
556
- 28</pre>
557
- </td>
558
- <td>
559
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 26</span>
560
-
561
- <span class='kw'>def</span> <span class='id identifier rubyid_running?'>running?</span>
562
- <span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Running</span><span class='tstring_end'>&#39;</span></span>
563
- <span class='kw'>end</span></pre>
564
- </td>
565
- </tr>
566
- </table>
567
- </div>
568
-
569
- <div class="method_details ">
570
- <h3 class="signature " id="succeeded?-instance_method">
571
-
572
- #<strong>succeeded?</strong> &#x21d2; <tt>Boolean</tt>
573
-
574
-
575
-
576
-
577
-
578
- </h3><div class="docstring">
579
- <div class="discussion">
580
-
581
- <p>Has the process succeeded ?</p>
582
-
583
-
584
- </div>
585
- </div>
586
- <div class="tags">
587
-
588
- <p class="tag_title">Returns:</p>
589
- <ul class="return">
590
-
591
- <li>
592
-
593
-
594
- <span class='type'>(<tt>Boolean</tt>)</span>
595
-
596
-
597
-
598
- </li>
599
-
600
- </ul>
601
-
602
- </div><table class="source_code">
603
- <tr>
604
- <td>
605
- <pre class="lines">
606
-
607
-
608
- 44
609
- 45
610
- 46</pre>
611
- </td>
612
- <td>
613
- <pre class="code"><span class="info file"># File 'lib/azure_stt/transcription.rb', line 44</span>
614
-
615
- <span class='kw'>def</span> <span class='id identifier rubyid_succeeded?'>succeeded?</span>
616
- <span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Succeeded</span><span class='tstring_end'>&#39;</span></span>
617
- <span class='kw'>end</span></pre>
618
- </td>
619
- </tr>
620
- </table>
621
- </div>
622
-
623
- </div>
624
-
625
- </div>
626
-
627
- <div id="footer">
628
- Generated on Wed Jun 23 17:42:59 2021 by
629
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
630
- 0.9.26 (ruby-2.6.6).
631
- </div>
632
-
633
- </div>
634
- </body>
635
- </html>