Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 3,715 Bytes
e40bd21 e02a62b 637b219 e02a62b e40bd21 637b219 e40bd21 637b219 e40bd21 637b219 e40bd21 637b219 e40bd21 e02a62b e40bd21 637b219 e40bd21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
export type ClapSegmentCategory = "render" | "preview" | "characters" | "location" | "time" | "era" | "lighting" | "weather" | "action" | "music" | "sound" | "dialogue" | "style" | "camera" | "generic"
export type ClapOutputType = "text" | "movement" | "image" | "video" | "audio"
export type ClapSegmentStatus = "pending" | "completed" | "error"
export type ClapAuthor =
| "auto" // the element was edited automatically using basic if/else logical rules
| "ai" // the element was edited using a large language model
| "human" // the element was edited by a human
export type ClapAssetSource =
| "REMOTE" // http:// or https://
// note that "path" assets are potentially a security risk, they need to be treated with care
| "PATH" // a file path eg. /path or ./path/to/ or ../path/to/
| "DATA" // a data URI, starting with data:
| "PROMPT" // by default, a plain text prompt
| "EMPTY"
export type ClapModelGender =
| "male"
| "female"
| "person"
| "object"
export type ClapModelAppearance = "serious" | "neutral" | "friendly" | "chill"
// this is used for accent, style..
export type ClapModelRegion =
| "american"
| "british"
| "australian"
| "canadian"
| "indian"
| "french"
| "italian"
| "german"
| "chinese"
// note: this is all very subjective, so please use good judgment
//
// "deep" might indicate a deeper voice tone, thicker, rich in harmonics
// in this context, it is used to indicate voices that could
// be associated with African American (AADOS) characters
//
// "high" could be used for some other countries, eg. asia
export type ClapModelTimbre = "high" | "neutral" | "deep"
export type ClapVoiceVendor = "ElevenLabs" | "XTTS"
export type ClapVoice = {
name: string
gender: ClapModelGender
age: number
region: ClapModelRegion
timbre: ClapModelTimbre
appearance: ClapModelAppearance
voiceVendor: ClapVoiceVendor
voiceId: string
}
export type ClapHeader = {
format: "clap-0"
numberOfModels: number
numberOfScenes: number
numberOfSegments: number
}
export type ClapMeta = {
id: string
title: string
description: string
licence: string
orientation: string
width: number
height: number
defaultVideoModel: string
extraPositivePrompt: string[]
}
export type ClapSceneEvent = {
id: string
type: "description" | "dialogue" | "action"
character?: string
description: string
behavior: string
startAtLine: number
endAtLine: number
}
export type ClapScene = {
id: string
scene: string
line: string
rawLine: string
sequenceFullText: string
sequenceStartAtLine: number
sequenceEndAtLine: number
startAtLine: number
endAtLine: number
events: ClapSceneEvent[]
}
export type ClapSegment = {
id: string
track: number
startTimeInMs: number
endTimeInMs: number
category: ClapSegmentCategory
modelId: string
sceneId: string
prompt: string
outputType: ClapOutputType
renderId: string
status: ClapSegmentStatus
assetUrl: string
assetDuration: number
createdBy: ClapAuthor
editedBy: ClapAuthor
outputGain: number
seed: number
}
export type ClapModel = {
id: string
category: ClapSegmentCategory
triggerName: string
label: string
description: string
author: string
thumbnailUrl: string
seed: number
assetSourceType: ClapAssetSource
assetUrl: string
// those are only used by certain types of models
age: number
gender: ClapModelGender
region: ClapModelRegion
appearance: ClapModelAppearance
voiceVendor: ClapVoiceVendor
voiceId: string
}
export type ClapProject = {
meta: ClapMeta
models: ClapModel[]
scenes: ClapScene[]
segments: ClapSegment[]
// let's keep room for other stuff (screenplay etc)
}
|