runapi-volcengine-lip-sync 0.1.4 → 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: 3fdc9576dcd7e2b15b177900fbb88700d14a66087aa90c2645acec2da4e76c26
4
- data.tar.gz: 73877ae15d76e7a5b4f828a404263568e1d6d0f3dae9365ee606999a4696e1fc
3
+ metadata.gz: e9f7335a564458feb6921f54a214755faa2b96445e55fb9434590a171983dff9
4
+ data.tar.gz: 90397a1805f851bde89e5b77f50269f9d8a8a338103b8d1bfdd620d7beea822d
5
5
  SHA512:
6
- metadata.gz: 9a61cc9d89a396ee371d29278e8dae1620c64417d10d6f91df14be728cef2c9de0b79a58e849f51899957374171cf27bb22a6bfe0a93f7f6dc16fb6a263a494e
7
- data.tar.gz: a72c658b275bd175982470876e12cb7037d1b4c9a415eb0c679fa03624a3713efbd7834969d3e6e424553ad68e019b620736a83aed6d99606f16b0d1d878fdbd
6
+ metadata.gz: 6d1864a2f4a9197d13454477b640f00eac8065484d4064d6c777b9a4925b78110159042af72efa328bb7d77be94780d4fbead9a4e6faac3a5cf08fb668a24fb6
7
+ data.tar.gz: b80d262e2e9f73f060be25d5af6b6d7af1658550c4495c876847a068356ae7d2a6095e9bee696687dc35ef46a52a10dba6e3095e135eb70215c3359644a14c1d
@@ -30,7 +30,6 @@ module RunApi
30
30
  # @return [RunApi::VolcengineLipSync::Types::LipSyncVideoResponse] task creation result with id
31
31
  def create(options: nil, **params)
32
32
  params = compact_params(params)
33
- validate_contract!(CONTRACT["lip-sync-video"], params)
34
33
  request(:post, ENDPOINT, body: params, options: options)
35
34
  end
36
35
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "runapi/core"
4
- require_relative "volcengine_lip_sync/contract_gen"
5
4
  require_relative "volcengine_lip_sync/types"
6
5
  require_relative "volcengine_lip_sync/resources/lip_sync_video"
7
6
  require_relative "volcengine_lip_sync/client"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-volcengine-lip-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.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.5.0
18
+ version: 0.6.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.5.0
25
+ version: 0.6.0
26
26
  description: The Volcengine Lip Sync Ruby SDK submits lip-sync video tasks and retrieves
27
27
  task results through RunAPI.
28
28
  email:
@@ -37,7 +37,6 @@ files:
37
37
  - lib/runapi-volcengine_lip_sync.rb
38
38
  - lib/runapi/volcengine_lip_sync.rb
39
39
  - lib/runapi/volcengine_lip_sync/client.rb
40
- - lib/runapi/volcengine_lip_sync/contract_gen.rb
41
40
  - lib/runapi/volcengine_lip_sync/resources/lip_sync_video.rb
42
41
  - lib/runapi/volcengine_lip_sync/types.rb
43
42
  homepage: https://runapi.ai/models/volcengine-lip-sync
@@ -63,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
62
  - !ruby/object:Gem::Version
64
63
  version: '0'
65
64
  requirements: []
66
- rubygems_version: 4.0.17
65
+ rubygems_version: 4.0.10
67
66
  specification_version: 4
68
67
  summary: Volcengine Lip Sync API Ruby SDK for RunAPI
69
68
  test_files: []
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RunApi
4
- module VolcengineLipSync
5
- CONTRACT = {
6
- "lip-sync-video" => {
7
- "models" => ["volcengine-lip-sync"],
8
- "fields_by_model" => {
9
- "volcengine-lip-sync" => {
10
- "mode" => {
11
- "enum" => ["lite", "basic"],
12
- "required" => true
13
- },
14
- "source_audio_url" => {
15
- "required" => true
16
- },
17
- "source_video_url" => {
18
- "required" => true
19
- },
20
- "template_start_seconds" => {
21
- "min" => 0
22
- }
23
- }
24
- },
25
- "rules" => [{
26
- "when" => {
27
- "mode" => "lite"
28
- },
29
- "forbidden" => ["enable_scene_detection"]
30
- }, {
31
- "when" => {
32
- "mode" => "basic"
33
- },
34
- "forbidden" => ["align_audio", "align_audio_reverse", "template_start_seconds"]
35
- }, {
36
- "when" => {
37
- "align_audio_reverse" => true
38
- },
39
- "required" => ["align_audio"]
40
- }]
41
- }
42
- }.freeze
43
- end
44
- end