Force MP3 download

This commit is contained in:
Koper
2023-10-13 10:03:13 +01:00
parent 362a3d5589
commit 33d82bc9af
2 changed files with 10 additions and 4 deletions

View File

@@ -311,6 +311,9 @@ export default function Recorder(props: RecorderProps) {
<a
title="Download recording"
className="text-center cursor-pointer text-blue-400 hover:text-blue-700 ml-2 md:ml:4 p-2 rounded-lg outline-blue-400"
download={`recording-${
props.transcriptId?.split("-")[0] || "0000"
}`}
href={`${process.env.NEXT_PUBLIC_API_URL}/v1/transcripts/${props.transcriptId}/audio/mp3`}
>
<FontAwesomeIcon icon={faDownload} className="h-5 w-auto" />