diff --git a/enjoy/src/renderer/components/medias/media-caption.tsx b/enjoy/src/renderer/components/medias/media-caption.tsx index 533dca10..8090df84 100644 --- a/enjoy/src/renderer/components/medias/media-caption.tsx +++ b/enjoy/src/renderer/components/medias/media-caption.tsx @@ -159,6 +159,12 @@ export const MediaCaption = () => { defaultPath: `${media.name}(${segment.startTime.toFixed( 2 )}s-${segment.endTime.toFixed(2)}s).mp3`, + filters: [ + { + name: "Audio", + extensions: ["mp3"], + }, + ], }) .then((savePath) => { if (!savePath) return; @@ -208,6 +214,12 @@ export const MediaCaption = () => { defaultPath: `${media.name}(${activeRegion.start.toFixed( 2 )}s-${activeRegion.end.toFixed(2)}s).mp3`, + filters: [ + { + name: "Audio", + extensions: ["mp3"], + }, + ], }) .then((savePath) => { if (!savePath) return; diff --git a/enjoy/src/renderer/components/medias/media-current-recording.tsx b/enjoy/src/renderer/components/medias/media-current-recording.tsx index 1eb49a94..faf0ebd1 100644 --- a/enjoy/src/renderer/components/medias/media-current-recording.tsx +++ b/enjoy/src/renderer/components/medias/media-current-recording.tsx @@ -229,6 +229,12 @@ export const MediaCurrentRecording = () => { .showSaveDialog({ title: t("download"), defaultPath: currentRecording.filename, + filters: [ + { + name: "Audio", + extensions: [currentRecording.filename.split(".").pop()], + }, + ], }) .then((savePath) => { if (!savePath) return; diff --git a/enjoy/src/renderer/components/medias/media-player.tsx b/enjoy/src/renderer/components/medias/media-player.tsx index 8a2734a1..549cd912 100644 --- a/enjoy/src/renderer/components/medias/media-player.tsx +++ b/enjoy/src/renderer/components/medias/media-player.tsx @@ -100,6 +100,12 @@ export const MediaPlayer = () => { .showSaveDialog({ title: t("download"), defaultPath: media.filename, + filters: [ + { + name: media.mediaType, + extensions: [media.filename.split(".").pop()], + }, + ], }) .then((savePath) => { if (!savePath) return; diff --git a/enjoy/src/renderer/components/medias/media-transcription-read-button.tsx b/enjoy/src/renderer/components/medias/media-transcription-read-button.tsx index 10ceaaa7..c1984a1f 100644 --- a/enjoy/src/renderer/components/medias/media-transcription-read-button.tsx +++ b/enjoy/src/renderer/components/medias/media-transcription-read-button.tsx @@ -71,6 +71,12 @@ export const MediaTranscriptionReadButton = () => { .showSaveDialog({ title: t("download"), defaultPath: recording.filename, + filters: [ + { + name: "Audio", + extensions: [recording.filename.split(".").pop()], + }, + ], }) .then((savePath) => { if (!savePath) return; diff --git a/enjoy/src/renderer/components/messages/assistant-message.tsx b/enjoy/src/renderer/components/messages/assistant-message.tsx index d8ce8fdf..91a238e2 100644 --- a/enjoy/src/renderer/components/messages/assistant-message.tsx +++ b/enjoy/src/renderer/components/messages/assistant-message.tsx @@ -129,6 +129,12 @@ export const AssistantMessageComponent = (props: { .showSaveDialog({ title: t("download"), defaultPath: speech.filename, + filters: [ + { + name: "Audio", + extensions: [speech.filename.split(".").pop()], + }, + ], }) .then((savePath) => { if (!savePath) return;