feat: support audio/mpeg for podcast and tts

This commit is contained in:
anosatsuk124 authored and Satsuki Akiba (aider) committed 2025-06-04 16:18:33 +09:00
1 parent 60799ae9b7
commit e9e733ce8a
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export async function updatePodcastRSS() {
<category>${channelCategories}</category>
<language>${channelLanguage}</language>
<ttl>${channelTTL}</ttl>
<enclosure url="${fileUrl}" length="${fileSize}" type="audio/wav" />
<enclosure url="${fileUrl}" length="${fileSize}" type="audio/mpeg" />
<guid>${fileUrl}</guid>
<pubDate>${pubDate}</pubDate>
</item>
+4
View File
@@ -86,5 +86,9 @@ export async function generateTTS(
.save(mp3FilePath);
});
// Wavファイルを削除
fs.unlinkSync(wavFilePath);
console.log(`TTS生成完了: ${itemId}`);
return path.basename(mp3FilePath);
}