elevenlabs-rb 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcf44098d108ce62d722c882bf3c0578614025573fc95e98915a479ae17cde0b
4
- data.tar.gz: 4323b662c70998195d9b3eecb8b6328060da0151d23a43db51a494b01eba710e
3
+ metadata.gz: 3d34e311fb35f987dddce15ea46c6b4a70215630248603dfa2cf2f5f419fd2c7
4
+ data.tar.gz: c9274fa8d502870462dbe0564f124d16e49578046bcd3fe63081a8e5b52fd5a3
5
5
  SHA512:
6
- metadata.gz: 8b4a75c023c2a9f8f59eaa6a44d64b286357624834f86a9e91c585f33d825b92a93e8dec64f9c32886b62d30fd3463441777a1cb199f4637e013e21971fc5657
7
- data.tar.gz: 6ccfb5ed5f3aae88d55b1188508e149b9f187061ce5f25472a99e2d0b8c29040582be0902626ddb3c78403fec35ea45acb2cdf53c8359ae90ed88512bfc2ede2
6
+ metadata.gz: f84e5d49762b9cca4f96529c4f1c229aee7888b79cb42354819eef56c8181bd39ecad946745df6bf634094a64cedf1ef9d943ec1109711b4a62ac8dd986dd51a
7
+ data.tar.gz: 4411dc79fa39fae92991f66f52c97b8180166b1a56df7fc25f2dfe8ea9bf95bbac5a98844a15c56d9812cc3d2e8d0b3879a095b64c16bf104d96668d7ffe92f8
@@ -8,6 +8,7 @@ module Elevenlabs
8
8
 
9
9
  ELEVENLABS_FQDN = 'https://api.elevenlabs.io'
10
10
  DEFAULT_STABILITY = 0.5
11
+ DEFAULT_STYLE = 0.5
11
12
  DEFAULT_MODEL = 'eleven_monolingual_v1'
12
13
  attr_accessor :api_key
13
14
 
@@ -17,14 +18,15 @@ module Elevenlabs
17
18
  @api_key = api_key
18
19
  end
19
20
 
20
- def text_to_speech(voice_id:, optimize_streaming_latency: 0, text:, stability: DEFAULT_STABILITY, model: DEFAULT_MODEL, stream: false)
21
+ def text_to_speech(voice_id:, optimize_streaming_latency: 0, text:, style: DEFAULT_STYLE, stability: DEFAULT_STABILITY, model: DEFAULT_MODEL, stream: false)
21
22
 
22
23
  body = {
23
24
  text: text,
24
25
  model_id: model,
25
26
  voice_settings: {
26
27
  stability: stability,
27
- similarity_boost: 0
28
+ similarity_boost: 0,
29
+ style: style
28
30
  }
29
31
  }
30
32
  url_path = stream ? "#{ELEVENLABS_FQDN}/v1/text-to-speech/#{voice_id}/stream" : "#{ELEVENLABS_FQDN}/v1/text-to-speech/#{voice_id}"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Elevenlabs
4
4
  class Client
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elevenlabs-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Schor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-24 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http