nlpcloud 1.0.39 → 1.0.41

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 +9 -8
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c73ed23223ba9a90b9242dd158de916189178ddb118e31e45756064dbaeb31b
4
- data.tar.gz: a7797cce5d7893270bc604bd2da4ea6f4eada93760d5794e47b690c5beb66e10
3
+ metadata.gz: ad3fa1f41a3d6dfd09015947748ee6a717b3a192e17adaa4412680e7451bb9c8
4
+ data.tar.gz: 2e79604b8072dcdf6d326e7940a71a395ccb652951ca7cd25395a5d76b022d58
5
5
  SHA512:
6
- metadata.gz: 06dce8cda990d1db8e3a2f0731390ae1a4c86088f9c9e81bb7e277d5519a6aca1b54ac912e63f19f5f5d0d4e17826eeddeaa58cc05f78946e89ae99c8041e162
7
- data.tar.gz: 91e769169faecf69c722ba2f1f44a76436bff61c5cb05855114f80a30aa848ce5b141d5ca3f020d7cd4619628fdbb3960b4f7acf542b46823fc561ed578f5953
6
+ metadata.gz: 4e809b7d56cb1d3c8320dc6e68057ea5e75e0c0edcf0406c2957cd28f629b0df0290b8c3a81a47d9d4aabab83fd85e0714ecaef75d52baf69e9d8824acde768e
7
+ data.tar.gz: 593ba9be24ffac31aebe0dc4410b9a9734c7a2590aa29b6704476e23e815715e0e02a99ce92eb462b5f48534060d5b5de5e28d5b2c06487d925bb70f293d8cd9
data/lib/nlpcloud.rb CHANGED
@@ -46,14 +46,6 @@ module NLPCloud
46
46
  JSON.parse(response.body)
47
47
  end
48
48
 
49
- def article_generation(title)
50
- payload = {
51
- 'title' => title
52
- }
53
- response = RestClient.post("#{@root_url}/article-generation", payload.to_json, @headers)
54
- JSON.parse(response.body)
55
- end
56
-
57
49
  def asr(url: nil, encoded_file: nil, input_language: nil)
58
50
  payload = {
59
51
  'url' => url,
@@ -247,6 +239,15 @@ module NLPCloud
247
239
  JSON.parse(response.body)
248
240
  end
249
241
 
242
+ def speech_synthesis(text, voice: nil)
243
+ payload = {
244
+ 'text' => text,
245
+ 'voice' => voice
246
+ }
247
+ response = RestClient.post("#{@root_url}/speech-synthesis", payload.to_json, @headers)
248
+ JSON.parse(response.body)
249
+ end
250
+
250
251
  def summarization(text, size: nil)
251
252
  payload = {
252
253
  'text' => text,
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.39
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -28,8 +28,8 @@ description: 'NLP Cloud serves high performance pre-trained or custom models for
28
28
  sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling
29
29
  correction, keywords and keyphrases extraction, chatbot, product description and
30
30
  ad generation, intent classification, text generation, image generation, code generation,
31
- blog post generation, question answering, automatic speech recognition, machine
32
- translation, language detection, semantic search, semantic similarity, tokenization,
31
+ question answering, automatic speech recognition, machine translation, language
32
+ detection, semantic search, semantic similarity, speech synthesis, tokenization,
33
33
  POS tagging, embeddings, and dependency parsing. It is ready for production, served
34
34
  through a REST API. This is the Ruby client for the API. More details here: https://nlpcloud.io.
35
35
  Documentation: https://docs.nlpcloud.io.'