nlpcloud 1.0.36 → 1.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1858721fc7de5e0407b801d9c4f2dd8c880cdf8bd29bf5f84a452ed02f26a2b0
4
- data.tar.gz: c6677a0405d09b441f128e392c844e988ada5384ebec2f832882b2d8e0d94ea8
3
+ metadata.gz: a20e24f855ce461f9df9db9a2bb2758429e364a6d70a7cc4f2a0ea91ac7b767d
4
+ data.tar.gz: 8d5c8355004fa6e4aea42c7a94f927276a4949f3a3dfc67602460b34d6ad9be4
5
5
  SHA512:
6
- metadata.gz: ed0e55cb789f87e792554b5e9566addbf058d7e832ba5e31c7a91a5494904146f501394ae5823607d071e62ec58a24732c03a328ee468a09b6e51ca5e4b51b9e
7
- data.tar.gz: 9875731f1a5af872e5406c5b6e78768bcbd386fa2fc4ec239ec6230dc56ebbcb03c7da74681afbeada86be08878a99bb62e94797b4545a02e7bd84185d373021
6
+ metadata.gz: cb67e579a3453d0db143e0f124cdf1d260974d207577a2d9f153e0add3779a904fc1cacd07b5a7de087e46e54b938e815667f2369e12838d02ac82a344f5e55f
7
+ data.tar.gz: 6832a1f0bc642f310f1317a296a3f9c9976640211b64f7de4e22b149e9eadfd9410bf09c902afbedf8921fc84058f6c5e6663cd55339d2e845cdf93a58768fbf
data/lib/nlpcloud.rb CHANGED
@@ -54,10 +54,11 @@ module NLPCloud
54
54
  JSON.parse(response.body)
55
55
  end
56
56
 
57
- def asr(url: nil, encoded_file: nil)
57
+ def asr(url: nil, encoded_file: nil, input_language: nil)
58
58
  payload = {
59
59
  'url' => url,
60
- 'encoded_file' => encoded_file
60
+ 'encoded_file' => encoded_file,
61
+ 'input_language' => input_language
61
62
  }
62
63
  response = RestClient.post("#{@root_url}/asr", payload.to_json, @headers)
63
64
  JSON.parse(response.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client