mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-23 14:14:46 +08:00
feat: support Podcast generation
This commit is contained in:
13
src/podcast/types.py
Normal file
13
src/podcast/types.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class ScriptLine(BaseModel):
|
||||
speaker: Literal["male", "female"] = Field(default="male")
|
||||
text: str = Field(default="")
|
||||
|
||||
|
||||
class Script(BaseModel):
|
||||
locale: Literal["en", "zh"] = Field(default="en")
|
||||
lines: list[ScriptLine] = Field(default=[])
|
||||
Reference in New Issue
Block a user