Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(timeline): one audio button with a named menu, and real tooltips

Ola Adebayo6aa81674c93c
diff --git a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
index 4ae330eb2..89f753b12 100644
--- a/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
@@ -211,14 +211,14 @@ describe("V4Timeline create-from-toolbar", () => {
it("scales the new region's duration with the zoom", () => {
const { tl } = renderTimeline();
- fireEvent.click(screen.getByTitle("buttons.addZoom"));
+ fireEvent.click(screen.getByLabelText("buttons.addZoom"));
// 900px viewport / 1800 s = 0.5 px per second, so a 96px pill is 192 s.
expect(durationOf(tl)).toBeCloseTo(192, 3);
// Zoomed to the 50x ceiling the same 96px is worth 3.84 s: same pill on
// screen, a region 50x shorter.
zoomIn(40);
- fireEvent.click(screen.getByTitle("buttons.addZoom"));
+ fireEvent.click(screen.getByLabelText("buttons.addZoom"));
expect(durationOf(tl)).toBeCloseTo(3.84, 3);
});
@@ -230,7 +230,7 @@ describe("V4Timeline create-from-toolbar", () => {
const { tl } = renderTimeline();
const ruler = document.querySelector("[class*=tlRulerRow]") as HTMLElement;
wheelZoomOn(ruler, 40);
- fireEvent.click(screen.getByTitle("buttons.addZoom"));
+ fireEvent.click(screen.getByLabelText("buttons.addZoom"));
expect(durationOf(tl)).toBeCloseTo(3.84, 3);
});
@@ -253,7 +253,7 @@ describe("V4Timeline create-from-toolbar", () => {
// second; the region would be born unusable, so the duration floors.
const { tl } = renderTimeline([clip(0, 3)]);
zoomIn(40);
- fireEvent.click(screen.getByTitle("buttons.addZoom"));
+ fireEvent.click(screen.getByLabelText("buttons.addZoom"));
expect(durationOf(tl)).toBeCloseTo(0.25, 3);
});
@@ -263,7 +263,7 @@ describe("V4Timeline create-from-toolbar", () => {
// so before it is clicked instead of looking like it worked.
it("disables Add Full Camera when no clip on the timeline has a camera", () => {
renderTimeline();
- expect(screen.getByTitle("buttons.addCameraFullscreen")).toBeDisabled();
+ expect(screen.getByLabelText("buttons.addCameraFullscreen")).toBeDisabled();
});
it("enables Add Full Camera as soon as a clip's asset carries one", () => {
@@ -273,7 +273,7 @@ describe("V4Timeline create-from-toolbar", () => {
cameraTrack: { sourcePath: "/tmp/cam.webm", startMs: 0, offsetMs: 0, visible: true },
},
]);
- expect(screen.getByTitle("buttons.addCameraFullscreen")).toBeEnabled();
+ expect(screen.getByLabelText("buttons.addCameraFullscreen")).toBeEnabled();
});
// The disabled button is only half the promise: an empty lane advertises the shortcut
@@ -417,14 +417,13 @@ describe("V4Timeline audio lane drag", () => {
// 900px / 1800s = 0.5 px per second, so +90px is +180s.
const secForPx = (px: number) => (px / VIEWPORT_PX) * TOTAL_SEC;
- it("offers a voiceover button in the toolbar", () => {
- // The audio lane's empty state is the only OTHER affordance for `V`, and it
- // disappears the moment anything is in the lane — so after the first import
- // the shortcut was undiscoverable.
+ it("offers both audio paths behind one toolbar button", () => {
+ // A mic and a music note side by side both just said "audio"; one button
+ // with a named menu is what tells a first-time user the two paths apart.
const onAddVoiceover = vi.fn();
renderAudio({}, { onAddVoiceover });
- const button = screen.getByLabelText("audio.addVoiceover");
- fireEvent.click(button);
+ fireEvent.click(screen.getByLabelText("toolbar.addAudioTooltip"));
+ fireEvent.click(screen.getByText("audio.addVoiceover"));
expect(onAddVoiceover).toHaveBeenCalledTimes(1);
});
diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsx
index a292614a9..569db9828 100644
--- a/src/components/ai-edition/v4/V4Timeline.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.tsx
@@ -1,4 +1,5 @@
import {
+ AudioLines,
Clock,
Crosshair,
Loader2,
@@ -26,6 +27,7 @@ import {
} from "react";
import { toast } from "sonner";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+import { Tooltip, TooltipProvider } from "@/components/ui/tooltip";
import { fromFileUrl, toFileUrl } from "@/components/video-editor/projectPersistence";
import { ZOOM_DEPTH_SCALES } from "@/components/video-editor/types";
import { useScopedT } from "@/contexts/I18nContext";
@@ -524,6 +526,7 @@ export function V4Timeline({
const { settings, set: setSettings } = useEditorSettings();
const [autoEnhanceOpen, setAutoEnhanceOpen] = useState(false);
+ const [audioMenuOpen, setAudioMenuOpen] = useState(false);
const [autoBusy, setAutoBusy] = useState(false);
// The AI cut pass reads the transcript, and the transcript is produced in the
// background (see transcriptionStore). Until it is there, the entry says why
@@ -1522,142 +1525,205 @@ export function V4Timeline({
<div className={styles.tl} ref={panelRef}>
<div className={styles.tlToolbar}>
{showLanes ? (
- <div className={styles.tlTools} role="toolbar" aria-label={t("toolbar.timelineTools")}>
- <Popover open={autoEnhanceOpen} onOpenChange={setAutoEnhanceOpen}>
- <PopoverTrigger asChild>
- <button
- type="button"
- className={styles.tlToolBtn}
- title={t("toolbar.autoEnhance")}
- aria-label={t("toolbar.autoEnhance")}
- disabled={autoBusy}
- >
- {autoBusy ? <Loader2 className="animate-spin" size={15} /> : <Wand2 size={15} />}
- </button>
- </PopoverTrigger>
- <PopoverContent
- align="start"
- sideOffset={6}
- animated={false}
- className="w-auto border-0 bg-transparent p-0 shadow-none"
- >
- <div
- className={styles.recMenu}
- style={{ position: "relative", bottom: "auto", width: 244 }}
+ // Its own provider rather than leaning on the app root's: the toolbar
+ // is the only thing here that needs one, and every test that renders
+ // a timeline (directly or through the shell) would otherwise have to
+ // know to supply it. Nesting under the root provider is harmless.
+ <TooltipProvider>
+ <div className={styles.tlTools} role="toolbar" aria-label={t("toolbar.timelineTools")}>
+ <Popover open={autoEnhanceOpen} onOpenChange={setAutoEnhanceOpen}>
+ <Tooltip content={t("toolbar.autoEnhance")}>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ aria-label={t("toolbar.autoEnhance")}
+ disabled={autoBusy}
+ >
+ {autoBusy ? (
+ <Loader2 className="animate-spin" size={15} />
+ ) : (
+ <Wand2 size={15} />
+ )}
+ </button>
+ </PopoverTrigger>
+ </Tooltip>
+ <PopoverContent
+ align="start"
+ sideOffset={6}
+ animated={false}
+ className="w-auto border-0 bg-transparent p-0 shadow-none"
>
- <button
- type="button"
- className={styles.recMenuRow}
- onClick={() => void runAutoZooms()}
+ <div
+ className={styles.recMenu}
+ style={{ position: "relative", bottom: "auto", width: 244 }}
>
- <ZoomIn size={15} style={{ flexShrink: 0 }} />
- <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
- <span style={{ fontWeight: 600 }}>{t("toolbar.automaticZooms")}</span>
- <span style={{ fontSize: 11, color: "var(--muted)" }}>
- {t("toolbar.automaticZoomsHint")}
+ <button
+ type="button"
+ className={styles.recMenuRow}
+ onClick={() => void runAutoZooms()}
+ >
+ <ZoomIn size={15} style={{ flexShrink: 0 }} />
+ <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
+ <span style={{ fontWeight: 600 }}>{t("toolbar.automaticZooms")}</span>
+ <span style={{ fontSize: 11, color: "var(--muted)" }}>
+ {t("toolbar.automaticZoomsHint")}
+ </span>
</span>
- </span>
- </button>
- <button
- type="button"
- className={styles.recMenuRow}
- onClick={runAiEnhance}
- disabled={smartCutsBlocked}
- title={transcriptGate.reason === "failed" ? transcriptGate.message : undefined}
- style={smartCutsBlocked ? { opacity: 0.55, cursor: "not-allowed" } : undefined}
- >
- {transcriptGate.state === "pending" ? (
- <Loader2 size={15} className="animate-spin" style={{ flexShrink: 0 }} />
- ) : (
- <Sparkles size={15} style={{ flexShrink: 0 }} />
- )}
- <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
- <span style={{ fontWeight: 600 }}>{t("toolbar.smartZoomsAndCuts")}</span>
- <span style={{ fontSize: 11, color: "var(--muted)" }}>{smartCutsHint}</span>
- </span>
- </button>
- </div>
- </PopoverContent>
- </Popover>
- <span className={styles.tlToolSep} aria-hidden />
- {tools.map((tool) => (
- <Fragment key={tool.id}>
- <button
- type="button"
- className={styles.tlToolBtn}
- title={tool.label}
- aria-label={tool.label}
- onClick={() => {
- // Read at CLICK time: a render-time value would be one zoom
- // notch stale when the user zooms and immediately creates.
- const dur = newRegionDurationSec();
- if (tool.id === "speed") void tl.addSpeed(dur);
- if (tool.id === "comment") void tl.addAnnotation(dur);
- if (tool.id === "cut") void tl.addTrim(dur);
- }}
- >
- {tool.icon}
- </button>
- {/* Add audio sits right after Add annotation (issue #350). */}
- {tool.id === "comment" ? (
- <>
+ </button>
<button
type="button"
- className={styles.tlToolBtn}
- title={ts("audioTrack.add")}
- aria-label={ts("audioTrack.add")}
- onClick={() => void tl.addAudio()}
+ className={styles.recMenuRow}
+ onClick={runAiEnhance}
+ disabled={smartCutsBlocked}
+ title={
+ transcriptGate.reason === "failed" ? transcriptGate.message : undefined
+ }
+ style={
+ smartCutsBlocked ? { opacity: 0.55, cursor: "not-allowed" } : undefined
+ }
>
- <Music size={15} />
+ {transcriptGate.state === "pending" ? (
+ <Loader2 size={15} className="animate-spin" style={{ flexShrink: 0 }} />
+ ) : (
+ <Sparkles size={15} style={{ flexShrink: 0 }} />
+ )}
+ <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
+ <span style={{ fontWeight: 600 }}>{t("toolbar.smartZoomsAndCuts")}</span>
+ <span style={{ fontSize: 11, color: "var(--muted)" }}>{smartCutsHint}</span>
+ </span>
</button>
+ </div>
+ </PopoverContent>
+ </Popover>
+ <span className={styles.tlToolSep} aria-hidden />
+ {tools.map((tool) => (
+ <Fragment key={tool.id}>
+ <Tooltip content={tool.label}>
<button
type="button"
className={styles.tlToolBtn}
- title={t("audio.addVoiceover")}
- aria-label={t("audio.addVoiceover")}
- onClick={onAddVoiceover}
+ aria-label={tool.label}
+ onClick={() => {
+ // Read at CLICK time: a render-time value would be one zoom
+ // notch stale when the user zooms and immediately creates.
+ const dur = newRegionDurationSec();
+ if (tool.id === "speed") void tl.addSpeed(dur);
+ if (tool.id === "comment") void tl.addAnnotation(dur);
+ if (tool.id === "cut") void tl.addTrim(dur);
+ }}
>
- <Mic size={15} />
+ {tool.icon}
</button>
- </>
- ) : null}
- </Fragment>
- ))}
- <button
- type="button"
- className={styles.tlToolBtn}
- title={t("buttons.addZoom")}
- aria-label={t("buttons.addZoom")}
- onClick={() => void tl.addZoom(newRegionDurationSec())}
- >
- <ZoomIn size={15} />
- </button>
- <button
- type="button"
- className={styles.tlToolBtn}
- aria-pressed={settings.autoFocusAll}
- title={t(
- settings.autoFocusAll ? "buttons.autoFocusAllOn" : "buttons.autoFocusAllOff",
- )}
- aria-label={t(
- settings.autoFocusAll ? "buttons.autoFocusAllOn" : "buttons.autoFocusAllOff",
- )}
- onClick={() => void setSettings({ autoFocusAll: !settings.autoFocusAll })}
- >
- <Crosshair size={15} />
- </button>
- <button
- type="button"
- className={styles.tlToolBtn}
- title={t("buttons.addCameraFullscreen")}
- aria-label={t("buttons.addCameraFullscreen")}
- disabled={!hasAnyCamera}
- style={!hasAnyCamera ? { opacity: 0.55, cursor: "not-allowed" } : undefined}
- onClick={() => void tl.addCameraFullscreen(newRegionDurationSec())}
- >
- <Maximize2 size={15} />
- </button>
- </div>
+ </Tooltip>
+ {/* Add audio sits right after Add annotation (issue #350). */}
+ {/* One audio button, two ways in. A mic and a music note side by
+ side both just said "audio" and left the user to guess which
+ was which; a waveform is neutral between them, and the menu
+ names the two paths outright. Mirrors the auto-enhance
+ button's menu right next to it. */}
+ {tool.id === "comment" ? (
+ <Popover open={audioMenuOpen} onOpenChange={setAudioMenuOpen}>
+ <Tooltip content={t("toolbar.addAudioTooltip")}>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ aria-label={t("toolbar.addAudioTooltip")}
+ >
+ <AudioLines size={15} />
+ </button>
+ </PopoverTrigger>
+ </Tooltip>
+ <PopoverContent
+ align="start"
+ sideOffset={6}
+ animated={false}
+ className="w-auto border-0 bg-transparent p-0 shadow-none"
+ >
+ <div
+ className={styles.recMenu}
+ style={{ position: "relative", bottom: "auto", width: 244 }}
+ >
+ <button
+ type="button"
+ className={styles.recMenuRow}
+ onClick={() => {
+ setAudioMenuOpen(false);
+ onAddVoiceover();
+ }}
+ >
+ <Mic size={15} style={{ flexShrink: 0 }} />
+ <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
+ <span style={{ fontWeight: 600 }}>{t("audio.addVoiceover")}</span>
+ <span style={{ fontSize: 11, color: "var(--muted)" }}>
+ {t("audio.addVoiceoverHint")}
+ </span>
+ </span>
+ </button>
+ <button
+ type="button"
+ className={styles.recMenuRow}
+ onClick={() => {
+ setAudioMenuOpen(false);
+ void tl.addAudio();
+ }}
+ >
+ <Music size={15} style={{ flexShrink: 0 }} />
+ <span style={{ display: "flex", flexDirection: "column", gap: 1 }}>
+ <span style={{ fontWeight: 600 }}>{ts("audioTrack.add")}</span>
+ <span style={{ fontSize: 11, color: "var(--muted)" }}>
+ {t("audio.importFileHint")}
+ </span>
+ </span>
+ </button>
+ </div>
+ </PopoverContent>
+ </Popover>
+ ) : null}
+ </Fragment>
+ ))}
+ <Tooltip content={t("buttons.addZoom")}>
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ aria-label={t("buttons.addZoom")}
+ onClick={() => void tl.addZoom(newRegionDurationSec())}
+ >
+ <ZoomIn size={15} />
+ </button>
+ </Tooltip>
+ <Tooltip
+ content={t(
+ settings.autoFocusAll ? "buttons.autoFocusAllOn" : "buttons.autoFocusAllOff",
+ )}
+ >
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ aria-pressed={settings.autoFocusAll}
+ aria-label={t(
+ settings.autoFocusAll ? "buttons.autoFocusAllOn" : "buttons.autoFocusAllOff",
+ )}
+ onClick={() => void setSettings({ autoFocusAll: !settings.autoFocusAll })}
+ >
+ <Crosshair size={15} />
+ </button>
+ </Tooltip>
+ <Tooltip content={t("buttons.addCameraFullscreen")}>
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ aria-label={t("buttons.addCameraFullscreen")}
+ disabled={!hasAnyCamera}
+ style={!hasAnyCamera ? { opacity: 0.55, cursor: "not-allowed" } : undefined}
+ onClick={() => void tl.addCameraFullscreen(newRegionDurationSec())}
+ >
+ <Maximize2 size={15} />
+ </button>
+ </Tooltip>
+ </div>
+ </TooltipProvider>
) : (
// Media is an ARRANGING surface: add, remove, reorder. Nothing here
// plays or edits, so the transport, the scroll hints, the zoom nav and
diff --git a/src/i18n/locales/ar/timeline.json b/src/i18n/locales/ar/timeline.json
index 1708065ce..c0e026cab 100644
--- a/src/i18n/locales/ar/timeline.json
+++ b/src/i18n/locales/ar/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "يتطلب نصًا منسوخًا",
"smartCutsNoAudio": "لا يحتوي هذا الملف على صوت",
"smartCutsNoSpeech": "لم يتم اكتشاف كلام",
- "smartCutsFailed": "فشل النسخ — أعد المحاولة من قسم الوسائط"
+ "smartCutsFailed": "فشل النسخ — أعد المحاولة من قسم الوسائط",
+ "addAudioTooltip": "إضافة صوت"
},
"audio": {
"addVoiceover": "إضافة تعليق صوتي",
+ "addVoiceoverHint": "سجّل تعليقًا صوتيًا فوق الفيديو",
"subtitle": "ضع تعليقًا صوتيًا أو موسيقى خلفية على المخطط الزمني",
"record": "تسجيل تعليق صوتي",
"importFile": "استيراد ملف صوتي",
+ "importFileHint": "أدرج موسيقى أو ملفًا صوتيًا",
"recording": "جارٍ التسجيل",
"stop": "إيقاف",
"micDenied": "تم رفض الوصول إلى الميكروفون",
diff --git a/src/i18n/locales/en/timeline.json b/src/i18n/locales/en/timeline.json
index 4973792d7..c34ffcb24 100644
--- a/src/i18n/locales/en/timeline.json
+++ b/src/i18n/locales/en/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Needs a transcript",
"smartCutsNoAudio": "This media has no audio",
"smartCutsNoSpeech": "No speech detected",
- "smartCutsFailed": "Transcription failed — retry it from Media"
+ "smartCutsFailed": "Transcription failed — retry it from Media",
+ "addAudioTooltip": "Add audio"
},
"audio": {
"addVoiceover": "Add Voiceover",
+ "addVoiceoverHint": "Record narration over your video",
"subtitle": "Place a voiceover or background music layer on the timeline",
"record": "Record voiceover",
"importFile": "Import audio file",
+ "importFileHint": "Bring in music or an audio file",
"recording": "Recording",
"stop": "Stop",
"micDenied": "Microphone access was denied",
diff --git a/src/i18n/locales/es/timeline.json b/src/i18n/locales/es/timeline.json
index 8e9d301c8..4fcae8b40 100644
--- a/src/i18n/locales/es/timeline.json
+++ b/src/i18n/locales/es/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Requiere una transcripción",
"smartCutsNoAudio": "Este medio no tiene audio",
"smartCutsNoSpeech": "No se detectó voz",
- "smartCutsFailed": "La transcripción falló: reinténtala desde Medios"
+ "smartCutsFailed": "La transcripción falló: reinténtala desde Medios",
+ "addAudioTooltip": "Añadir audio"
},
"audio": {
"addVoiceover": "Añadir voz en off",
+ "addVoiceoverHint": "Graba una narración sobre tu vídeo",
"subtitle": "Coloca una capa de voz en off o de música de fondo en la línea de tiempo",
"record": "Grabar voz en off",
"importFile": "Importar archivo de audio",
+ "importFileHint": "Importa música o un archivo de audio",
"recording": "Grabando",
"stop": "Detener",
"micDenied": "Se denegó el acceso al micrófono",
diff --git a/src/i18n/locales/fr/timeline.json b/src/i18n/locales/fr/timeline.json
index 684eb42e8..c5bf1a73b 100644
--- a/src/i18n/locales/fr/timeline.json
+++ b/src/i18n/locales/fr/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Nécessite une transcription",
"smartCutsNoAudio": "Ce média n'a pas d'audio",
"smartCutsNoSpeech": "Aucune parole détectée",
- "smartCutsFailed": "Échec de la transcription — relancez-la depuis Médias"
+ "smartCutsFailed": "Échec de la transcription — relancez-la depuis Médias",
+ "addAudioTooltip": "Ajouter un audio"
},
"audio": {
"addVoiceover": "Ajouter une voix off",
+ "addVoiceoverHint": "Enregistrez une narration par-dessus votre vidéo",
"subtitle": "Placez une couche de voix off ou de musique de fond sur la timeline",
"record": "Enregistrer une voix off",
"importFile": "Importer un fichier audio",
+ "importFileHint": "Importez une musique ou un fichier audio",
"recording": "Enregistrement",
"stop": "Arrêter",
"micDenied": "L'accès au micro a été refusé",
diff --git a/src/i18n/locales/it/timeline.json b/src/i18n/locales/it/timeline.json
index 1fba4b1db..1026be7c3 100644
--- a/src/i18n/locales/it/timeline.json
+++ b/src/i18n/locales/it/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Richiede una trascrizione",
"smartCutsNoAudio": "Questo contenuto non ha audio",
"smartCutsNoSpeech": "Nessun parlato rilevato",
- "smartCutsFailed": "Trascrizione non riuscita: riprova da Contenuti multimediali"
+ "smartCutsFailed": "Trascrizione non riuscita: riprova da Contenuti multimediali",
+ "addAudioTooltip": "Aggiungi audio"
},
"audio": {
"addVoiceover": "Aggiungi voce fuori campo",
+ "addVoiceoverHint": "Registra una narrazione sopra il video",
"subtitle": "Posiziona un livello di voce fuori campo o di musica di sottofondo sulla timeline",
"record": "Registra voce fuori campo",
"importFile": "Importa file audio",
+ "importFileHint": "Importa musica o un file audio",
"recording": "Registrazione",
"stop": "Ferma",
"micDenied": "Accesso al microfono negato",
diff --git a/src/i18n/locales/ja-JP/timeline.json b/src/i18n/locales/ja-JP/timeline.json
index 577dac707..7df028390 100644
--- a/src/i18n/locales/ja-JP/timeline.json
+++ b/src/i18n/locales/ja-JP/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "文字起こしが必要です",
"smartCutsNoAudio": "このメディアには音声がありません",
"smartCutsNoSpeech": "音声が検出されませんでした",
- "smartCutsFailed": "文字起こしに失敗しました — メディアから再試行してください"
+ "smartCutsFailed": "文字起こしに失敗しました — メディアから再試行してください",
+ "addAudioTooltip": "音声を追加"
},
"audio": {
"addVoiceover": "ナレーションを追加",
+ "addVoiceoverHint": "動画にナレーションを録音",
"subtitle": "タイムラインにナレーションまたは BGM のレイヤーを配置します",
"record": "ナレーションを録音",
"importFile": "音声ファイルを読み込む",
+ "importFileHint": "音楽やオーディオファイルを読み込む",
"recording": "録音中",
"stop": "停止",
"micDenied": "マイクへのアクセスが拒否されました",
diff --git a/src/i18n/locales/ko-KR/timeline.json b/src/i18n/locales/ko-KR/timeline.json
index 6671a922e..b92f05d6e 100644
--- a/src/i18n/locales/ko-KR/timeline.json
+++ b/src/i18n/locales/ko-KR/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "받아쓰기가 필요합니다",
"smartCutsNoAudio": "이 미디어에는 오디오가 없습니다",
"smartCutsNoSpeech": "음성이 감지되지 않음",
- "smartCutsFailed": "받아쓰기에 실패했습니다 — 미디어에서 다시 시도하세요"
+ "smartCutsFailed": "받아쓰기에 실패했습니다 — 미디어에서 다시 시도하세요",
+ "addAudioTooltip": "오디오 추가"
},
"audio": {
"addVoiceover": "내레이션 추가",
+ "addVoiceoverHint": "영상 위에 내레이션을 녹음",
"subtitle": "타임라인에 내레이션 또는 배경 음악 레이어를 배치합니다",
"record": "내레이션 녹음",
"importFile": "오디오 파일 가져오기",
+ "importFileHint": "음악이나 오디오 파일 가져오기",
"recording": "녹음 중",
"stop": "중지",
"micDenied": "마이크 접근이 거부되었습니다",
diff --git a/src/i18n/locales/pt-BR/timeline.json b/src/i18n/locales/pt-BR/timeline.json
index 779ab0133..21183359d 100644
--- a/src/i18n/locales/pt-BR/timeline.json
+++ b/src/i18n/locales/pt-BR/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Requer uma transcrição",
"smartCutsNoAudio": "Esta mídia não tem áudio",
"smartCutsNoSpeech": "Nenhuma fala detectada",
- "smartCutsFailed": "Falha na transcrição — tente de novo em Mídia"
+ "smartCutsFailed": "Falha na transcrição — tente de novo em Mídia",
+ "addAudioTooltip": "Adicionar áudio"
},
"audio": {
"addVoiceover": "Adicionar narração",
+ "addVoiceoverHint": "Grave uma narração sobre o seu vídeo",
"subtitle": "Coloque uma camada de narração ou de música de fundo na linha do tempo",
"record": "Gravar narração",
"importFile": "Importar arquivo de áudio",
+ "importFileHint": "Importe música ou um arquivo de áudio",
"recording": "Gravando",
"stop": "Parar",
"micDenied": "Acesso ao microfone negado",
diff --git a/src/i18n/locales/ru/timeline.json b/src/i18n/locales/ru/timeline.json
index a0fa96ef9..2258a719f 100644
--- a/src/i18n/locales/ru/timeline.json
+++ b/src/i18n/locales/ru/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Нужна расшифровка",
"smartCutsNoAudio": "В этом медиафайле нет звука",
"smartCutsNoSpeech": "Речь не обнаружена",
- "smartCutsFailed": "Не удалось расшифровать — повторите из раздела «Медиа»"
+ "smartCutsFailed": "Не удалось расшифровать — повторите из раздела «Медиа»",
+ "addAudioTooltip": "Добавить аудио"
},
"audio": {
"addVoiceover": "Добавить озвучку",
+ "addVoiceoverHint": "Запишите закадровый голос поверх видео",
"subtitle": "Разместите слой озвучки или фоновой музыки на таймлайне",
"record": "Записать озвучку",
"importFile": "Импортировать аудиофайл",
+ "importFileHint": "Импортируйте музыку или аудиофайл",
"recording": "Запись",
"stop": "Остановить",
"micDenied": "Доступ к микрофону запрещён",
diff --git a/src/i18n/locales/tr/timeline.json b/src/i18n/locales/tr/timeline.json
index c6104fa08..7dda3007f 100644
--- a/src/i18n/locales/tr/timeline.json
+++ b/src/i18n/locales/tr/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Bir döküm gerekiyor",
"smartCutsNoAudio": "Bu medyada ses yok",
"smartCutsNoSpeech": "Konuşma algılanmadı",
- "smartCutsFailed": "Metne dökme başarısız — Medya bölümünden yeniden deneyin"
+ "smartCutsFailed": "Metne dökme başarısız — Medya bölümünden yeniden deneyin",
+ "addAudioTooltip": "Ses ekle"
},
"audio": {
"addVoiceover": "Seslendirme ekle",
+ "addVoiceoverHint": "Videonuzun üzerine anlatım kaydedin",
"subtitle": "Zaman çizelgesine seslendirme veya fon müziği katmanı yerleştirin",
"record": "Seslendirme kaydet",
"importFile": "Ses dosyası içe aktar",
+ "importFileHint": "Müzik veya ses dosyası içe aktarın",
"recording": "Kaydediliyor",
"stop": "Durdur",
"micDenied": "Mikrofon erişimi reddedildi",
diff --git a/src/i18n/locales/vi/timeline.json b/src/i18n/locales/vi/timeline.json
index 340a7552d..d714ffdec 100644
--- a/src/i18n/locales/vi/timeline.json
+++ b/src/i18n/locales/vi/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "Cần có bản phiên âm",
"smartCutsNoAudio": "Media này không có âm thanh",
"smartCutsNoSpeech": "Không phát hiện giọng nói",
- "smartCutsFailed": "Phiên âm thất bại — thử lại trong Media"
+ "smartCutsFailed": "Phiên âm thất bại — thử lại trong Media",
+ "addAudioTooltip": "Thêm âm thanh"
},
"audio": {
"addVoiceover": "Thêm thuyết minh",
+ "addVoiceoverHint": "Ghi âm lời thuyết minh trên video của bạn",
"subtitle": "Đặt lớp thuyết minh hoặc nhạc nền lên dòng thời gian",
"record": "Ghi âm thuyết minh",
"importFile": "Nhập tệp âm thanh",
+ "importFileHint": "Nhập nhạc hoặc tệp âm thanh",
"recording": "Đang ghi",
"stop": "Dừng",
"micDenied": "Quyền truy cập micrô bị từ chối",
diff --git a/src/i18n/locales/zh-CN/timeline.json b/src/i18n/locales/zh-CN/timeline.json
index 6be8fe39c..343dce8d4 100644
--- a/src/i18n/locales/zh-CN/timeline.json
+++ b/src/i18n/locales/zh-CN/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "需要转录文本",
"smartCutsNoAudio": "此媒体没有音频",
"smartCutsNoSpeech": "未检测到语音",
- "smartCutsFailed": "转录失败 — 请在“媒体”中重试"
+ "smartCutsFailed": "转录失败 — 请在“媒体”中重试",
+ "addAudioTooltip": "添加音频"
},
"audio": {
"addVoiceover": "添加配音",
+ "addVoiceoverHint": "为视频录制旁白",
"subtitle": "在时间轴上放置配音或背景音乐图层",
"record": "录制配音",
"importFile": "导入音频文件",
+ "importFileHint": "导入音乐或音频文件",
"recording": "正在录制",
"stop": "停止",
"micDenied": "麦克风访问被拒绝",
diff --git a/src/i18n/locales/zh-TW/timeline.json b/src/i18n/locales/zh-TW/timeline.json
index f4b4d888b..cd7b39f33 100644
--- a/src/i18n/locales/zh-TW/timeline.json
+++ b/src/i18n/locales/zh-TW/timeline.json
@@ -86,13 +86,16 @@
"smartCutsNeedsTranscript": "需要轉錄文字",
"smartCutsNoAudio": "此媒體沒有音訊",
"smartCutsNoSpeech": "未偵測到語音",
- "smartCutsFailed": "轉錄失敗 — 請在「媒體」中重試"
+ "smartCutsFailed": "轉錄失敗 — 請在「媒體」中重試",
+ "addAudioTooltip": "新增音訊"
},
"audio": {
"addVoiceover": "新增旁白",
+ "addVoiceoverHint": "為影片錄製旁白",
"subtitle": "在時間軸上放置旁白或背景音樂圖層",
"record": "錄製旁白",
"importFile": "匯入音訊檔案",
+ "importFileHint": "匯入音樂或音訊檔案",
"recording": "錄製中",
"stop": "停止",
"micDenied": "麥克風存取遭拒絕",