fix: correct file path for tts audio
This commit is contained in:
		@@ -61,7 +61,7 @@ export async function generateTTS(
 | 
			
		||||
    fs.mkdirSync(outputDir, { recursive: true });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const filePath = path.resolve(outputDir, `${itemId}.wav}`); // Use the provided filename directly
 | 
			
		||||
  const filePath = path.resolve(outputDir, `${itemId}.wav`); // Use the provided filename directly
 | 
			
		||||
  console.log(`音声ファイル保存開始: ${filePath}`);
 | 
			
		||||
  fs.writeFileSync(filePath, audioBuffer);
 | 
			
		||||
  console.log(`音声ファイル保存完了: ${filePath}`);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user