Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
videogen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
videogen
Commits
3985e613
Commit
3985e613
authored
Feb 25, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add audio generation capabilities to web interface
parent
b6d177d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
check_model.py
check_model.py
+14
-0
webapp.py
webapp.py
+9
-9
No files found.
check_model.py
0 → 100644
View file @
3985e613
#!/usr/bin/env python3
import
sys
import
os
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
from
videogen
import
MODELS
,
detect_model_type
for
name
,
info
in
MODELS
.
items
():
if
name
==
"wan2_2_i2v_a14b"
:
print
(
"Name:"
,
name
)
print
(
"ID:"
,
info
.
get
(
"id"
))
print
(
"Class:"
,
info
.
get
(
"class"
))
print
(
"Supports I2V:"
,
info
.
get
(
"supports_i2v"
))
print
(
"Tags:"
,
info
.
get
(
"tags"
))
print
(
"Capabilities:"
,
detect_model_type
(
info
))
webapp.py
View file @
3985e613
...
@@ -261,26 +261,26 @@ def build_command(params: Dict) -> List[str]:
...
@@ -261,26 +261,26 @@ def build_command(params: Dict) -> List[str]:
# Audio options
# Audio options
if
params
.
get
(
'generate_audio'
):
if
params
.
get
(
'generate_audio'
):
cmd
.
append
(
'--generate
-
audio'
)
cmd
.
append
(
'--generate
_
audio'
)
if
params
.
get
(
'audio_type'
):
if
params
.
get
(
'audio_type'
):
cmd
.
extend
([
'--audio
-
type'
,
params
[
'audio_type'
]])
cmd
.
extend
([
'--audio
_
type'
,
params
[
'audio_type'
]])
# Use appropriate text/prompt based on audio type
# Use appropriate text/prompt based on audio type
if
params
.
get
(
'audio_type'
)
==
'music'
and
params
.
get
(
'music_prompt'
):
if
params
.
get
(
'audio_type'
)
==
'music'
and
params
.
get
(
'music_prompt'
):
cmd
.
extend
([
'--audio
-
text'
,
params
[
'music_prompt'
]])
cmd
.
extend
([
'--audio
_
text'
,
params
[
'music_prompt'
]])
elif
params
.
get
(
'audio_text'
):
elif
params
.
get
(
'audio_text'
):
cmd
.
extend
([
'--audio
-
text'
,
params
[
'audio_text'
]])
cmd
.
extend
([
'--audio
_
text'
,
params
[
'audio_text'
]])
if
params
.
get
(
'tts_voice'
):
if
params
.
get
(
'tts_voice'
):
cmd
.
extend
([
'--tts
-
voice'
,
params
[
'tts_voice'
]])
cmd
.
extend
([
'--tts
_
voice'
,
params
[
'tts_voice'
]])
if
params
.
get
(
'sync_audio'
):
if
params
.
get
(
'sync_audio'
):
cmd
.
append
(
'--sync
-
audio'
)
cmd
.
append
(
'--sync
_
audio'
)
if
params
.
get
(
'audio_sync_mode'
):
if
params
.
get
(
'audio_sync_mode'
):
cmd
.
extend
([
'--
audio-sync-
mode'
,
params
[
'audio_sync_mode'
]])
cmd
.
extend
([
'--
sync_
mode'
,
params
[
'audio_sync_mode'
]])
if
params
.
get
(
'lip_sync'
):
if
params
.
get
(
'lip_sync'
):
cmd
.
append
(
'--lip
-
sync'
)
cmd
.
append
(
'--lip
_
sync'
)
if
params
.
get
(
'lip_sync_method'
):
if
params
.
get
(
'lip_sync_method'
):
cmd
.
extend
([
'--lip
-sync-
method'
,
params
[
'lip_sync_method'
]])
cmd
.
extend
([
'--lip
_sync_
method'
,
params
[
'lip_sync_method'
]])
# Dubbing/Translation
# Dubbing/Translation
if
params
.
get
(
'dub_video'
):
if
params
.
get
(
'dub_video'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment