mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-25 15:04:46 +08:00
14 lines
376 B
Python
14 lines
376 B
Python
|
|
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}
|