From b88a71540a1a4079c8211edeac3e81b0fb4a6a13 Mon Sep 17 00:00:00 2001 From: johnnyjoygh Date: Thu, 3 Sep 2026 21:34:38 +0800 Subject: [PATCH] feat(web): add 0.5x and 0.75x audio playback speeds Voice notes recorded quickly or in noisy surroundings are easier to follow when slowed down. The speed button still starts at 1x and cycles through 1.5x and 2x before wrapping to the slow rates. Closes #6263 --- .../components/MemoMetadata/Attachment/AudioAttachmentItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoMetadata/Attachment/AudioAttachmentItem.tsx b/web/src/components/MemoMetadata/Attachment/AudioAttachmentItem.tsx index 8933c1a7..d96862e6 100644 --- a/web/src/components/MemoMetadata/Attachment/AudioAttachmentItem.tsx +++ b/web/src/components/MemoMetadata/Attachment/AudioAttachmentItem.tsx @@ -5,7 +5,7 @@ import { cn } from "@/lib/utils"; import { formatFileSize, getFileTypeLabel } from "@/utils/format"; import { formatAudioTime, toggleAudioPlayback } from "./attachmentHelpers"; -const AUDIO_PLAYBACK_RATES = [1, 1.5, 2] as const; +const AUDIO_PLAYBACK_RATES = [0.5, 0.75, 1, 1.5, 2] as const; const UNKNOWN_DURATION_LABEL = "--:--"; const getDurationLabel = (duration: number): string => (duration > 0 ? formatAudioTime(duration) : UNKNOWN_DURATION_LABEL);