runapi-suno 0.4.0 → 0.4.2
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 +4 -4
- data/lib/runapi/suno/contract_gen.rb +24 -0
- data/lib/runapi/suno/validators.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aa319fedbc8fb415384cb29593dd7579e17f1dc802e70522493e0da560269ee
|
|
4
|
+
data.tar.gz: 175bf453f819b25e48f0683a38fba3959bd4f88a5222609bb767cf42b6095e47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51f747cef3bfefb132c53e2a0d3f940733c086d8b41742c05ffc65db6d1a04776d20d9230d620a19c90501ef6a5f013d3d9900d4583f2257190fe5c727142bd5
|
|
7
|
+
data.tar.gz: 3577e88070f321db89a658de5784e142c3d1bde15c8ce1aad515cbc6c26776e5dccbcdb118b726cea74afcbbda432779af2fddd0c888979bb8c6777011109d18
|
|
@@ -952,6 +952,10 @@ module RunApi
|
|
|
952
952
|
"persona_type" => {
|
|
953
953
|
"enum" => ["style", "voice"]
|
|
954
954
|
},
|
|
955
|
+
"prompt" => {
|
|
956
|
+
"max" => 3000,
|
|
957
|
+
"length" => true
|
|
958
|
+
},
|
|
955
959
|
"vocal_gender" => {
|
|
956
960
|
"enum" => ["male", "female"]
|
|
957
961
|
},
|
|
@@ -972,6 +976,10 @@ module RunApi
|
|
|
972
976
|
"persona_type" => {
|
|
973
977
|
"enum" => ["style", "voice"]
|
|
974
978
|
},
|
|
979
|
+
"prompt" => {
|
|
980
|
+
"max" => 3000,
|
|
981
|
+
"length" => true
|
|
982
|
+
},
|
|
975
983
|
"vocal_gender" => {
|
|
976
984
|
"enum" => ["male", "female"]
|
|
977
985
|
},
|
|
@@ -992,6 +1000,10 @@ module RunApi
|
|
|
992
1000
|
"persona_type" => {
|
|
993
1001
|
"enum" => ["style", "voice"]
|
|
994
1002
|
},
|
|
1003
|
+
"prompt" => {
|
|
1004
|
+
"max" => 3000,
|
|
1005
|
+
"length" => true
|
|
1006
|
+
},
|
|
995
1007
|
"vocal_gender" => {
|
|
996
1008
|
"enum" => ["male", "female"]
|
|
997
1009
|
},
|
|
@@ -1012,6 +1024,10 @@ module RunApi
|
|
|
1012
1024
|
"persona_type" => {
|
|
1013
1025
|
"enum" => ["style", "voice"]
|
|
1014
1026
|
},
|
|
1027
|
+
"prompt" => {
|
|
1028
|
+
"max" => 3000,
|
|
1029
|
+
"length" => true
|
|
1030
|
+
},
|
|
1015
1031
|
"vocal_gender" => {
|
|
1016
1032
|
"enum" => ["male", "female"]
|
|
1017
1033
|
},
|
|
@@ -1032,6 +1048,10 @@ module RunApi
|
|
|
1032
1048
|
"persona_type" => {
|
|
1033
1049
|
"enum" => ["style", "voice"]
|
|
1034
1050
|
},
|
|
1051
|
+
"prompt" => {
|
|
1052
|
+
"max" => 3000,
|
|
1053
|
+
"length" => true
|
|
1054
|
+
},
|
|
1035
1055
|
"vocal_gender" => {
|
|
1036
1056
|
"enum" => ["male", "female"]
|
|
1037
1057
|
},
|
|
@@ -1052,6 +1072,10 @@ module RunApi
|
|
|
1052
1072
|
"persona_type" => {
|
|
1053
1073
|
"enum" => ["style", "voice"]
|
|
1054
1074
|
},
|
|
1075
|
+
"prompt" => {
|
|
1076
|
+
"max" => 3000,
|
|
1077
|
+
"length" => true
|
|
1078
|
+
},
|
|
1055
1079
|
"vocal_gender" => {
|
|
1056
1080
|
"enum" => ["male", "female"]
|
|
1057
1081
|
},
|
|
@@ -82,9 +82,9 @@ module RunApi
|
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
duration = end_time - start_time
|
|
85
|
-
return if duration
|
|
85
|
+
return if duration + 1e-9 >= 10
|
|
86
86
|
|
|
87
|
-
raise Core::ValidationError, "replacement duration must be
|
|
87
|
+
raise Core::ValidationError, "replacement duration must be at least 10 seconds"
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def validate_create_mashup!(params, resource)
|
|
@@ -169,9 +169,9 @@ module RunApi
|
|
|
169
169
|
|
|
170
170
|
def replace_section_time!(params, resource, key)
|
|
171
171
|
value = param(resource, params, key)
|
|
172
|
-
return value.to_f if value.is_a?(Numeric)
|
|
172
|
+
return value.to_f if value.is_a?(Numeric) && value.finite?
|
|
173
173
|
|
|
174
|
-
raise Core::ValidationError, "#{key} must be a number"
|
|
174
|
+
raise Core::ValidationError, "#{key} must be a finite number"
|
|
175
175
|
end
|
|
176
176
|
|
|
177
177
|
def require_all!(resource, params, *keys)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-suno
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
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.
|
|
18
|
+
version: 0.4.0
|
|
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.
|
|
25
|
+
version: 0.4.0
|
|
26
26
|
description: The Suno Ruby SDK is the language-specific package for Suno on RunAPI.
|
|
27
27
|
Use this package for song generation, lyrics, vocals, extension, and audio transformation
|
|
28
28
|
workflows when your application needs request bodies, task status lookup, and consistent
|