azure_stt 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +6 -3
- data/.gitignore +2 -2
- data/CHANGELOG.md +6 -0
- data/Gemfile +2 -2
- data/azure_stt.gemspec +3 -0
- data/lib/azure_stt/parsers/combined_recognized_phrases.rb +1 -1
- data/lib/azure_stt/session.rb +4 -6
- data/lib/azure_stt/version.rb +1 -1
- data/lib/azure_stt.rb +2 -2
- metadata +5 -6
- data/.github/dependabot.yml +0 -6
- data/Gemfile.lock +0 -141
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c2c80aa3d7493e1dd60052ac4e83a7e9351eb367c03202a0d0991120c7ebc4
|
4
|
+
data.tar.gz: 55dc37a5463f36425d37a9b5eb2a2416d00198628bdf5678e8761df7bf4ec7dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e10ff4e3fb07c4521b6fda6809853df234748442c41d8f8bd2535b75a8ff6c759377d90799daec02545f1586cba48aafd6641972029b832bd241afad6f8347
|
7
|
+
data.tar.gz: f6da9bea5a7becff8efcc2a953be8f6fc1b98ffeb7d77ecdab910aa8db1aa91ae2f5c4e61008b0c4269072c968ed7a7b721a4b7df675a8a5262ea0a09d5a1785
|
data/.github/workflows/ci.yml
CHANGED
@@ -10,13 +10,16 @@ jobs:
|
|
10
10
|
test:
|
11
11
|
|
12
12
|
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby-version: ['3.1', '3.0', '2.7', '2.6']
|
13
16
|
|
14
17
|
steps:
|
15
|
-
- uses: actions/checkout@
|
16
|
-
- name: Set up Ruby
|
18
|
+
- uses: actions/checkout@v3
|
19
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
17
20
|
uses: ruby/setup-ruby@v1
|
18
21
|
with:
|
19
|
-
ruby-version:
|
22
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
23
|
- name: Install dependencies
|
21
24
|
run: bundle install
|
22
25
|
- name: Run tests
|
data/.gitignore
CHANGED
@@ -45,9 +45,9 @@ build-iPhoneSimulator/
|
|
45
45
|
|
46
46
|
# for a library or gem, you might want to ignore these files since the code is
|
47
47
|
# intended to run in multiple environments; otherwise, check them in:
|
48
|
-
# Gemfile.lock
|
49
|
-
# .ruby-version
|
50
48
|
# .ruby-gemset
|
49
|
+
Gemfile.lock
|
50
|
+
.ruby-version
|
51
51
|
|
52
52
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
53
|
.rvmrc
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/azure_stt.gemspec
CHANGED
data/lib/azure_stt/session.rb
CHANGED
@@ -38,12 +38,10 @@ module AzureSTT
|
|
38
38
|
#
|
39
39
|
def create_transcription(content_urls:, properties:, locale:, display_name:)
|
40
40
|
transcription_hash = client.create_transcription(
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
displayName: display_name
|
46
|
-
}
|
41
|
+
contentUrls: content_urls,
|
42
|
+
properties: properties,
|
43
|
+
locale: locale,
|
44
|
+
displayName: display_name
|
47
45
|
)
|
48
46
|
build_transcription_from_hash(transcription_hash)
|
49
47
|
end
|
data/lib/azure_stt/version.rb
CHANGED
data/lib/azure_stt.rb
CHANGED
@@ -15,6 +15,6 @@ require_relative 'azure_stt/parsers'
|
|
15
15
|
require_relative 'azure_stt/session'
|
16
16
|
|
17
17
|
AzureSTT.configure do |config|
|
18
|
-
config.subscription_key = ENV
|
19
|
-
config.region = ENV
|
18
|
+
config.subscription_key = ENV.fetch('SUBSCRIPTION_KEY', nil)
|
19
|
+
config.region = ENV.fetch('REGION', 'uscentral')
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_stt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- François Pouly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -45,14 +45,12 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- ".github/dependabot.yml"
|
49
48
|
- ".github/workflows/ci.yml"
|
50
49
|
- ".gitignore"
|
51
50
|
- ".rubocop.yml"
|
52
51
|
- CHANGELOG.md
|
53
52
|
- CODE_OF_CONDUCT.md
|
54
53
|
- Gemfile
|
55
|
-
- Gemfile.lock
|
56
54
|
- LICENSE
|
57
55
|
- README.md
|
58
56
|
- Rakefile
|
@@ -135,7 +133,8 @@ files:
|
|
135
133
|
homepage: https://github.com/PerfectMemory/azure_stt
|
136
134
|
licenses:
|
137
135
|
- MIT
|
138
|
-
metadata:
|
136
|
+
metadata:
|
137
|
+
rubygems_mfa_required: 'true'
|
139
138
|
post_install_message:
|
140
139
|
rdoc_options: []
|
141
140
|
require_paths:
|
@@ -151,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
150
|
- !ruby/object:Gem::Version
|
152
151
|
version: '0'
|
153
152
|
requirements: []
|
154
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.1.6
|
155
154
|
signing_key:
|
156
155
|
specification_version: 4
|
157
156
|
summary: API Wrapper for the Microsoft Translator Text API 3.0
|
data/.github/dependabot.yml
DELETED
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
|