17 lines
457 B
Python
17 lines
457 B
Python
"""Schema for vocals_f0.json."""
|
|
|
|
from pydantic import ConfigDict, Field
|
|
|
|
from unmix.schema.base import SongPackageBase
|
|
|
|
|
|
class VocalsF0Document(SongPackageBase):
|
|
"""Raw fundamental frequency track of the vocal stem (vocals_f0.json)."""
|
|
|
|
model_config = ConfigDict(extra="ignore")
|
|
|
|
hop_sec: float = 0.01
|
|
start_sec: float = 0.0
|
|
hz: list[float | None] = Field(default_factory=list)
|
|
confidence: list[float] = Field(default_factory=list)
|