nlpcloud 1.0.39 → 1.0.40

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 -0
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c73ed23223ba9a90b9242dd158de916189178ddb118e31e45756064dbaeb31b
4
- data.tar.gz: a7797cce5d7893270bc604bd2da4ea6f4eada93760d5794e47b690c5beb66e10
3
+ metadata.gz: 64685ed4b295b167ab3c6fc9a9e58457fc977de7ff9aa139058fff708f640b32
4
+ data.tar.gz: 403f83f4bf769784f9bc24efc666fc207716064547e66e0262eb5d0995c7a4bd
5
5
  SHA512:
6
- metadata.gz: 06dce8cda990d1db8e3a2f0731390ae1a4c86088f9c9e81bb7e277d5519a6aca1b54ac912e63f19f5f5d0d4e17826eeddeaa58cc05f78946e89ae99c8041e162
7
- data.tar.gz: 91e769169faecf69c722ba2f1f44a76436bff61c5cb05855114f80a30aa848ce5b141d5ca3f020d7cd4619628fdbb3960b4f7acf542b46823fc561ed578f5953
6
+ metadata.gz: ad01d8ff341c56a4c47fa061c0385f5ad3c585693bffceb8c30b8a9faeb928e6759d0948d4da68516dcd9a7ef03a09a2d698015eb1efe1bc6c1512be53347a5f
7
+ data.tar.gz: de1007facb5017657422c44aa20cd2cc57588e5ae448a53eb22430fce1bdeb10fd256773427f67f08d8c41906e91128438cbc566ce1e18bf24c2f69e50940b1c
data/lib/nlpcloud.rb CHANGED
@@ -247,6 +247,15 @@ module NLPCloud
247
247
  JSON.parse(response.body)
248
248
  end
249
249
 
250
+ def speech_synthesis(text, voice: nil)
251
+ payload = {
252
+ 'text' => text,
253
+ 'voice' => voice
254
+ }
255
+ response = RestClient.post("#{@root_url}/speech-synthesis", payload.to_json, @headers)
256
+ JSON.parse(response.body)
257
+ end
258
+
250
259
  def summarization(text, size: nil)
251
260
  payload = {
252
261
  '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.40
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-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -29,10 +29,10 @@ description: 'NLP Cloud serves high performance pre-trained or custom models for
29
29
  correction, keywords and keyphrases extraction, chatbot, product description and
30
30
  ad generation, intent classification, text generation, image generation, code generation,
31
31
  blog post generation, question answering, automatic speech recognition, machine
32
- translation, language detection, semantic search, semantic similarity, tokenization,
33
- POS tagging, embeddings, and dependency parsing. It is ready for production, served
34
- through a REST API. This is the Ruby client for the API. More details here: https://nlpcloud.io.
35
- Documentation: https://docs.nlpcloud.io.'
32
+ translation, language detection, semantic search, semantic similarity, speech synthesis,
33
+ tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production,
34
+ served through a REST API. This is the Ruby client for the API. More details here:
35
+ https://nlpcloud.io. Documentation: https://docs.nlpcloud.io.'
36
36
  email: all@juliensalinas.com
37
37
  executables: []
38
38
  extensions: []