Skip to content

Commit

Permalink
Update Audio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Jul 26, 2024
1 parent 3b9790b commit 4405a74
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nodes/Audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run(self,audio):
# {'waveform': tensor([], size=(1, 1, 0)), 'sample_rate': 44100}
is_tensor=True

if is_tensor:
if is_tensor and (not 'audio_path' in audio):
filename_prefix=""
# 保存
filename_prefix += self.prefix_append
Expand All @@ -108,7 +108,12 @@ def run(self,audio):
})

else:
results=[audio]
results=[{
"filename": audio['filename'],
"subfolder":audio['subfolder'],
"type": audio['type'],
"audio_path":audio['audio_path']
}]


# print(audio)
Expand Down

0 comments on commit 4405a74

Please sign in to comment.