typecast-ruby 0.1.12 → 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: dc6fe310a4d047878fc8d3a4986463aa5bd403f7bb0049acc61d8fd16c6ed1bd
4
- data.tar.gz: 627e0da05d043797668c0efd3042e5d9712909d5c3705c1a8794e56fee571c15
3
+ metadata.gz: 60fba03de1c34c9ccce88c380a56fa431896f4ff5a748dda2b74183bef0d0b6f
4
+ data.tar.gz: b62aaa6a2c9a5bf68c893c2693b07b0f0638a0f5d8b2946be02b979823be6609
5
5
  SHA512:
6
- metadata.gz: c821f67500165852cfd1d381c05d22d047912fa010428c2c9da66f8653180d74dfa7b9a42b6b0a774dac14624d1aa5206b4d064dcb8879ad1c35c64446c0610a
7
- data.tar.gz: 4fc284eace4fd8b6fe42a195c3d4d5b373f5b0c89b8702ca0647ed9c76be336b55239dba7c7231465d3e7650817816ca75d069aab6b3f9334f556efd9ea2057c
6
+ metadata.gz: 859f415b39da592cffd60ad4a5e0ee6e1e300add27ec0d5f0c6f9e99016be116cf3078cbf28c8ee7d74ecb1cb13a68072ecdf077cc8a190247c76a4a12c650d6
7
+ data.tar.gz: 07551ea0e594092a7bb4e773a8d1d3454e724cb45dc2b749b66e270a8cfeaa532b8aa775db1415407e47b5d46bb381f5968d3a04be4308ebe71f6b0c74639ab5
data/README.md CHANGED
@@ -16,6 +16,10 @@ gem "typecast-ruby", path: "../typecast-ruby"
16
16
 
17
17
  ## Quick Start
18
18
 
19
+ Choose `ssfm-v21`, `ssfm-v30`, or `ssfm-v31` through the request's model setting.
20
+ For SSFM 3.1, use `Typecast::Models::TTS_MODEL_V31` and a compatible voice from `GET /v3/voices?model=ssfm-v31`.
21
+ The voice's `models` entry lists its supported emotions.
22
+
19
23
  ```ruby
20
24
  require "typecast"
21
25
 
@@ -2,6 +2,7 @@ module Typecast
2
2
  module Models
3
3
  TTS_MODEL_V21 = "ssfm-v21"
4
4
  TTS_MODEL_V30 = "ssfm-v30"
5
+ TTS_MODEL_V31 = "ssfm-v31"
5
6
  AUDIO_WAV = "wav"
6
7
  AUDIO_MP3 = "mp3"
7
8
  CLONING_MAX_FILE_SIZE = 25 * 1024 * 1024
@@ -106,6 +107,7 @@ module Typecast
106
107
  class TTSRequest
107
108
  attr_reader :voice_id, :text, :model, :language, :prompt, :output, :seed
108
109
 
110
+ # The legacy seed argument is ignored and never sent to the API.
109
111
  # Browse available API voices at https://typecast.ai/developers/api/voices.
110
112
  def initialize(voice_id:, text:, model:, language: nil, prompt: nil, output: nil, seed: nil)
111
113
  @voice_id = voice_id
@@ -124,8 +126,7 @@ module Typecast
124
126
  model: model,
125
127
  language: language,
126
128
  prompt: Models.value_to_h(prompt),
127
- output: Models.value_to_h(output),
128
- seed: seed
129
+ output: Models.value_to_h(output)
129
130
  )
130
131
  end
131
132
  end
@@ -1,3 +1,3 @@
1
1
  module Typecast
2
- VERSION = "0.1.12"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typecast-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neosapience