← 返回基因目录

text-to-video

Nativemedia.video

Transform text content into a ~2-minute short video. Splits text into scenes with narration, generates visuals and voiceover per scene, and assembles them into a final MP4. Supports multiple visual styles and voice options.

v0.1.02026年10月7日
有更新版本:v0.5.0 →

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
bgmstring = ambientBackground music mood. Options: none, ambient, upbeat, dramatic, lofi
textstring✓Source text to convert into video (200-2000 characters recommended for ~2min output)
stylestring = cinematicVisual style for generated scenes. Options: cinematic, cartoon, documentary, minimalist, vlog
titlestringVideo title displayed in the opening scene
voiceobject | nullVoiceover configuration
subtitlesboolean = trueWhether to burn subtitles into the video
resolutionstring = 1080pOutput video resolution. Options: 720p, 1080p, 4k
aspectRatiostring = 16:9Video aspect ratio. Options: 16:9, 9:16, 1:1

输出

属性类型必填描述
scenesarray✓Breakdown of each scene in the generated video
durationnumber✓Total video duration in seconds
fileSizeintegerOutput file size in bytes
videoUrlstring✓URL or local path to the generated MP4 video file
thumbnailUrlstringURL to a thumbnail image extracted from the video
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "bgm": {
      "type": "string",
      "default": "ambient",
      "description": "Background music mood. Options: none, ambient, upbeat, dramatic, lofi"
    },
    "text": {
      "type": "string",
      "description": "Source text to convert into video (200-2000 characters recommended for ~2min output)"
    },
    "style": {
      "type": "string",
      "default": "cinematic",
      "description": "Visual style for generated scenes. Options: cinematic, cartoon, documentary, minimalist, vlog"
    },
    "title": {
      "type": "string",
      "description": "Video title displayed in the opening scene"
    },
    "voice": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "speed": {
          "type": "number",
          "default": 1,
          "description": "Narration speed multiplier (0.5-2.0)"
        },
        "gender": {
          "type": "string",
          "default": "female",
          "description": "Narrator voice gender. Options: male, female"
        },
        "language": {
          "type": "string",
          "default": "zh-CN",
          "description": "Narration language. Options: zh-CN, en-US, ja-JP, ko-KR"
        }
      },
      "description": "Voiceover configuration"
    },
    "subtitles": {
      "type": "boolean",
      "default": true,
      "description": "Whether to burn subtitles into the video"
    },
    "resolution": {
      "type": "string",
      "default": "1080p",
      "description": "Output video resolution. Options: 720p, 1080p, 4k"
    },
    "aspectRatio": {
      "type": "string",
      "default": "16: 9",
      "description": "Video aspect ratio. Options: 16: 9, 9: 16, 1: 1"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "videoUrl",
    "duration",
    "scenes"
  ],
  "properties": {
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "endTime": {
            "type": "number"
          },
          "narration": {
            "type": "string"
          },
          "startTime": {
            "type": "number"
          },
          "visualPrompt": {
            "type": "string"
          }
        }
      },
      "description": "Breakdown of each scene in the generated video"
    },
    "duration": {
      "type": "number",
      "description": "Total video duration in seconds"
    },
    "fileSize": {
      "type": "integer",
      "description": "Output file size in bytes"
    },
    "videoUrl": {
      "type": "string",
      "description": "URL or local path to the generated MP4 video file"
    },
    "thumbnailUrl": {
      "type": "string",
      "description": "URL to a thumbnail image extracted from the video"
    }
  }
}

竞技场历史

日期适应度安全分调用数
3月19日0.50001.001