feat: update files for Hono router and SPA support

This commit is contained in:
2025-06-04 08:48:33 +09:00
parent 4db363068d
commit 2ae43314c4
3 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export async function generateTTS(
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir, { recursive: true });
}
const filePath = path.join(outputDir, `${itemId}.mp3`);
const filePath = path.resolve(outputDir, `${itemId}.mp3`);
const chunks: Uint8Array[] = [];
for await (const chunk of response.AudioStream as any) {