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/graph/audio_mixer_node.py
Normal file
13
src/podcast/graph/audio_mixer_node.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import logging
|
||||
|
||||
from src.podcast.graph.state import PodcastState
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def audio_mixer_node(state: PodcastState):
|
||||
logger.info("Mixing audio chunks for podcast...")
|
||||
audio_chunks = state["audio_chunks"]
|
||||
combined_audio = b"".join(audio_chunks)
|
||||
logger.info("The podcast audio is now ready.")
|
||||
return {"output": combined_audio}
|
||||
Reference in New Issue
Block a user