runapi-fish-audio 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f69dd7bac500e867eaeafa2127d95922d416e0c8722c4c50ae47ed7d55602ff7
4
- data.tar.gz: 1a22451d02f8c8f8a4bb344ab0615b0d76430f717305ec847798d1fa4fec05c1
3
+ metadata.gz: 37ad7a253dec28b23ac6123464181e157ff34d6d6c3e4dd5f25a2c1e08bd3f9e
4
+ data.tar.gz: dcdffb7b22ce9dd666b2f2d9fc4610133fa52c1d1c18fa91d9b19e5197c67ad1
5
5
  SHA512:
6
- metadata.gz: d879e3f251bf8552df1a4008295936878f96b1c3737f63fa36dff418e6a089ae13fc1b4da946b893626abf71ba288a927cae478d2f7fecff9e0b0f1e899dc917
7
- data.tar.gz: b9c4590438f124f2959acffbb04752899fcd42cd78b2f610b3ad8ca9758ed9880155e58169849848ba59480de53b1ec9cda66070b4f4f286317adecef65bc675
6
+ metadata.gz: 67a1cd8094dd340085048000c998d2411a36fccd3088361320352a3155bc19d76dd2d037569c5aabfc07b3be2bb2f834e80b5e67ee13051823cfd70af357ee62
7
+ data.tar.gz: 71f706e16580499e6d16a0a34c05bdf0b175efc841fa10737987e82e7d221a8da4b5506c39e4e135828677dc3625083243b9dc27f032068d59e7b92f8d6205df
data/README.md CHANGED
@@ -9,7 +9,7 @@ raise "Voice is #{voice.voice.state}" unless voice.voice.state == "trained"
9
9
  result = client.text_to_speech.run(model: "s2.1-pro", text: "Hello [excited]", voice_id: created.voice.voice_id, output_format: "wav", sample_rate_hz: 44_100)
10
10
  ```
11
11
 
12
- Pass optional `references` entries with base64-encoded raw audio bytes and exact transcripts for request-scoped voice matching.
12
+ Pass optional `references` entries with a publicly accessible HTTPS audio URL and exact transcripts for request-scoped voice matching.
13
13
 
14
14
  Use `list_voices` and `get_voice` to inspect account-owned voice resources. Only `trained` voices can be submitted for speech generation; a returned `voice_id` is a best-effort reference and may stop working later. Update, delete, revoke, or voice-library management methods are not provided; voice retention is not promised.
15
15
 
@@ -18,3 +18,9 @@ The output defaults to MP3. Select WAV with `output_format`; `bitrate_kbps` appl
18
18
  Model details and pricing: https://runapi.ai/models/fish-audio/s2.1-pro
19
19
 
20
20
  Licensed under the Apache License, Version 2.0.
21
+
22
+ ## Temporary voice matching
23
+
24
+ For `s1`, `s2-pro`, and `s2.1-pro`, supply at most one `references` item containing a publicly accessible HTTPS audio URL in `audio` and a nonempty, verbatim transcript in `text`. Do not send `voice_id` with a reference. Omit `references` when selecting an existing voice. The transcript is forwarded unchanged; callers must ensure it matches the audio.
25
+
26
+ For local audio or Base64, first upload through `POST /api/v1/files`, then use the returned `url` as `references[0].audio`. Keep only one sample and remove `voice_id`. The URL must remain valid while the request waits and the audio is fetched. Files URLs expire by default after one hour; storing a reference does not extend that lifetime. For longer waits, use an external HTTPS URL with enough validity. If a URL expires, upload again and submit a new request.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-fish-audio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.6.0
18
+ version: 0.6.1
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.6.0
25
+ version: 0.6.1
26
26
  description: Install `runapi-fish-audio` and create a `RunApi::FishAudio::Client`.
27
27
  email:
28
28
  - contact@runapi.ai