Skip to content

Commit 2f14ce4

Browse files
committed
feat: track temporary local files for converted audio components
1 parent ab51e51 commit 2f14ce4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • astrbot/core/pipeline/preprocess_stage

astrbot/core/pipeline/preprocess_stage/stage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ async def process(
7272
try:
7373
original_path = await component.convert_to_file_path()
7474
record_path = await ensure_wav(original_path)
75+
if record_path != original_path:
76+
event.track_temporary_local_file(record_path)
7577
component.file = record_path
7678
component.path = record_path
7779
message_chain[idx] = component

0 commit comments

Comments
 (0)