jbilcke-hf HF staff commited on
Commit
c11793d
·
1 Parent(s): 4d290bc
src/bug-in-bun/aitube_ffmpeg/concatenate/concatenateAudio.ts CHANGED
@@ -49,7 +49,11 @@ export async function concatenateAudio({
49
  }
50
 
51
  if (audioFilePaths.length === 1) {
52
- throw new Error("concatenating a single audio file path is not implemented yet")
 
 
 
 
53
  }
54
 
55
  try {
 
49
  }
50
 
51
  if (audioFilePaths.length === 1) {
52
+ const outputFilePath = audioFilePaths[0]
53
+
54
+ // console.log(" |- there is only one track! so.. returning that")
55
+ const { durationInSec } = await getMediaInfo(outputFilePath)
56
+ return { filepath: outputFilePath, durationInSec }
57
  }
58
 
59
  try {