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(editor): add audio from the timeline toolbar, not the media tab

Benjamin Freemanb920e02b9f64
diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts
index 0ebae938a..f6132b4f6 100644
--- a/electron/electron-env.d.ts
+++ b/electron/electron-env.d.ts
@@ -281,17 +281,22 @@ interface Window {
message?: string;
error?: string;
}>;
- // "Import media" — video or audio (issue #350). `kind` says which was picked
- // so the caller routes an audio file to an audio asset+track.
openVideoFilePicker: () => Promise<{
success: boolean;
path?: string;
- kind?: "video" | "audio";
// Browser-mode shim only: a blob: URL has no meaningful basename, so
// the shim carries the picked File's real name here for the label.
name?: string;
canceled?: boolean;
}>;
+ // Import an external audio file from the timeline toolbar (issue #350).
+ openAudioFilePicker: () => Promise<{
+ success: boolean;
+ path?: string;
+ name?: string;
+ canceled?: boolean;
+ message?: string;
+ }>;
setCurrentVideoPath: (path: string) => Promise<{ success: boolean }>;
setCurrentRecordingSession: (
session: import("../src/lib/recordingSession").RecordingSession | null,
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.ts
index 3e5abf4f7..d18b6d8f9 100644
--- a/electron/ipc/handlers.ts
+++ b/electron/ipc/handlers.ts
@@ -3626,10 +3626,8 @@ export function registerIpcHandlers(
}
});
- // "Import media" (issue #350): one picker for video AND audio. It offers both
- // extension sets and approves whichever the pick is, returning `kind` so the
- // renderer routes an audio file to an audio asset+track and a video file to a
- // clip. Keeps its historical name so every existing caller keeps working.
+ // The media tab imports VIDEO (it arranges clips). Audio is imported from the
+ // timeline toolbar instead (issue #350) — see `open-audio-file-picker` below.
ipcMain.handle("open-video-file-picker", async () => {
try {
const dialogOptions = buildDialogOptions(
@@ -3637,31 +3635,56 @@ export function registerIpcHandlers(
title: mainT("dialogs", "fileDialogs.selectVideo"),
defaultPath: RECORDINGS_DIR,
filters: [
- {
- name: mainT("dialogs", "fileDialogs.mediaFiles"),
- extensions: [
- "webm",
- "mp4",
- "mov",
- "avi",
- "mkv",
- "m4v",
- "wmv",
- "flv",
- "ts",
- "mp3",
- "wav",
- "m4a",
- "aac",
- "flac",
- "ogg",
- "opus",
- ],
- },
{
name: mainT("dialogs", "fileDialogs.videoFiles"),
extensions: ["webm", "mp4", "mov", "avi", "mkv", "m4v", "wmv", "flv", "ts"],
},
+ { name: mainT("dialogs", "fileDialogs.allFiles"), extensions: ["*"] },
+ ],
+ properties: ["openFile"],
+ },
+ getMainWindow(),
+ );
+ const result = await dialog.showOpenDialog(dialogOptions);
+
+ if (result.canceled || result.filePaths.length === 0) {
+ return { success: false, canceled: true };
+ }
+
+ const normalizedPath = await approveReadableVideoPath(result.filePaths[0]);
+ if (!normalizedPath) {
+ return {
+ success: false,
+ message: "Selected file is not a supported readable video file",
+ };
+ }
+
+ currentProjectPath = null;
+ return {
+ success: true,
+ path: normalizedPath,
+ };
+ } catch (error) {
+ console.error("Failed to open file picker:", error);
+ return {
+ success: false,
+ message: "Failed to open file picker",
+ error: String(error),
+ };
+ }
+ });
+
+ // Import an external audio file (voiceover / BGM / SFX) — issue #350. Driven by
+ // the timeline's "Add audio" tool: audio is a timeline overlay (like an
+ // annotation), not a media-tab clip, so it has its own audio-only picker and the
+ // renderer adds it as a kind:"audio" asset + track at the playhead.
+ ipcMain.handle("open-audio-file-picker", async () => {
+ try {
+ const dialogOptions = buildDialogOptions(
+ {
+ title: mainT("dialogs", "fileDialogs.selectAudio"),
+ defaultPath: RECORDINGS_DIR,
+ filters: [
{
name: mainT("dialogs", "fileDialogs.audioFiles"),
extensions: ["mp3", "wav", "m4a", "aac", "flac", "ogg", "opus"],
@@ -3678,28 +3701,23 @@ export function registerIpcHandlers(
return { success: false, canceled: true };
}
- // Try video first, then audio — the extension gate is the only difference,
- // and the two sets don't overlap, so at most one approves.
- const videoPath = await approveReadableVideoPath(result.filePaths[0]);
- const normalizedPath = videoPath ?? (await approveReadableAudioPath(result.filePaths[0]));
+ const normalizedPath = await approveReadableAudioPath(result.filePaths[0]);
if (!normalizedPath) {
return {
success: false,
- message: "Selected file is not a supported readable media file",
+ message: "Selected file is not a supported readable audio file",
};
}
- currentProjectPath = null;
return {
success: true,
path: normalizedPath,
- kind: videoPath ? ("video" as const) : ("audio" as const),
};
} catch (error) {
- console.error("Failed to open file picker:", error);
+ console.error("Failed to open audio file picker:", error);
return {
success: false,
- message: "Failed to open file picker",
+ message: "Failed to open audio file picker",
error: String(error),
};
}
diff --git a/electron/preload.ts b/electron/preload.ts
index 6aff16407..16227f110 100644
--- a/electron/preload.ts
+++ b/electron/preload.ts
@@ -276,6 +276,9 @@ contextBridge.exposeInMainWorld("electronAPI", {
openVideoFilePicker: () => {
return ipcRenderer.invoke("open-video-file-picker");
},
+ openAudioFilePicker: () => {
+ return ipcRenderer.invoke("open-audio-file-picker");
+ },
setCurrentVideoPath: (path: string) => {
return ipcRenderer.invoke("set-current-video-path", path);
},
diff --git a/src/components/ai-edition/EditorEmptyState.tsx b/src/components/ai-edition/EditorEmptyState.tsx
index 6daec79be..226171dca 100644
--- a/src/components/ai-edition/EditorEmptyState.tsx
+++ b/src/components/ai-edition/EditorEmptyState.tsx
@@ -47,7 +47,6 @@ export function EditorEmptyState({
const createProject = useProjectStore((s) => s.createProject);
const addAsset = useProjectStore((s) => s.addAsset);
- const importAudioAsset = useProjectStore((s) => s.importAudioAsset);
const loadProject = useProjectStore((s) => s.loadProject);
const ensureProject = useCallback(async (): Promise<string | null> => {
@@ -64,17 +63,14 @@ export function EditorEmptyState({
const projectId = await ensureProject();
if (!projectId) return;
const label = result.name || result.path.split(/[\\/]/).pop() || "Recording";
- // The picker imports media (issue #350): audio lands as a kind:"audio"
- // asset + track, video as a clip.
- if (result.kind === "audio") await importAudioAsset(result.path, label);
- else await addAsset(result.path, label);
+ await addAsset(result.path, label);
} catch (err) {
setDropError("load-failed");
// ponytail: surface as a console message only — the dialog above
// already tells the user something went wrong.
- console.error("Failed to import media", err);
+ console.error("Failed to import video", err);
}
- }, [addAsset, importAudioAsset, ensureProject]);
+ }, [addAsset, ensureProject]);
// A loaded project JSON is either a current AxcutDocument (has its own
// `schemaVersion`) or a legacy EditorProjectData that must be migrated.
diff --git a/src/components/ai-edition/v4/MediaStage.tsx b/src/components/ai-edition/v4/MediaStage.tsx
index f72df5e8b..a69c615fe 100644
--- a/src/components/ai-edition/v4/MediaStage.tsx
+++ b/src/components/ai-edition/v4/MediaStage.tsx
@@ -57,7 +57,6 @@ export function MediaStage({
const projectId = useProjectStore((s) => s.projectId);
const document = useProjectStore((s) => s.document);
const addAsset = useProjectStore((s) => s.addAsset);
- const importAudioAsset = useProjectStore((s) => s.importAudioAsset);
// Transcripts are produced in the background as soon as a media lands here
// (see transcriptionStore) — this stage only reports where each one is at,
// and lets the user force a re-run in another language.
@@ -74,7 +73,10 @@ export function MediaStage({
[locale, t],
);
- const assets = document?.assets ?? [];
+ // Video only — this stage arranges clips. Imported audio (issue #350) is a
+ // timeline overlay added from the timeline toolbar, not a clip, so it never
+ // appears in this list.
+ const assets = (document?.assets ?? []).filter((a) => a.kind !== "audio");
const filtered = useMemo(
() =>
assets.filter((a) => {
@@ -103,10 +105,7 @@ export function MediaStage({
setBusy(true);
try {
const label = picker.name || basename(picker.path);
- // Audio imports become a kind:"audio" asset + a timeline track (issue #350);
- // video imports become a clip. The picker says which was chosen.
- if (picker.kind === "audio") await importAudioAsset(picker.path, label);
- else await addAsset(picker.path, label);
+ await addAsset(picker.path, label);
toast.success(t("mediaStage.added", { label }));
} catch (err) {
toast.error(t("mediaStage.couldNotAddAsset"), {
diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsx
index 9bb1279ed..fd14d7ce3 100644
--- a/src/components/ai-edition/v4/V4Timeline.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.tsx
@@ -485,6 +485,24 @@ export function V4Timeline({
shiftPx: number;
} | null>(null);
const { settings, set: setSettings } = useEditorSettings();
+ const importAudioAsset = useProjectStore((s) => s.importAudioAsset);
+
+ // Import an audio file straight onto the timeline (issue #350). Audio is a
+ // timeline overlay like an annotation, not a media-tab clip, so it is added
+ // from here: pick a file, then `importAudioAsset` adds a kind:"audio" asset and
+ // places a track at the playhead in one step.
+ const handleAddAudio = useCallback(async () => {
+ const picker = await window.electronAPI?.openAudioFilePicker?.();
+ if (!picker?.success || !picker.path) return;
+ try {
+ const label = picker.name || picker.path.split(/[\\/]/).pop() || "Audio";
+ await importAudioAsset(picker.path, label);
+ } catch (err) {
+ toast.error(ts("audioTrack.importFailed"), {
+ description: err instanceof Error ? err.message : String(err),
+ });
+ }
+ }, [importAudioAsset, ts]);
const [autoEnhanceOpen, setAutoEnhanceOpen] = useState(false);
const [autoBusy, setAutoBusy] = useState(false);
@@ -1570,6 +1588,16 @@ export function V4Timeline({
>
<Maximize2 size={15} />
</button>
+ <span className={styles.tlToolSep} aria-hidden />
+ <button
+ type="button"
+ className={styles.tlToolBtn}
+ title={ts("audioTrack.add")}
+ aria-label={ts("audioTrack.add")}
+ onClick={() => void handleAddAudio()}
+ >
+ <Music size={15} />
+ </button>
</div>
) : (
// Media is an ARRANGING surface: add, remove, reorder. Nothing here
diff --git a/src/i18n/locales/ar/dialogs.json b/src/i18n/locales/ar/dialogs.json
index 6bf9bc569..1032d22cb 100644
--- a/src/i18n/locales/ar/dialogs.json
+++ b/src/i18n/locales/ar/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "حفظ GIF المصدر",
"saveVideo": "حفظ الفيديو المصدر",
"selectVideo": "حدد ملف فيديو",
+ "selectAudio": "Select Audio File",
"saveProject": "حفظ مشروع OpenScreen",
"openProject": "فتح مشروع OpenScreen",
"gifImage": "صورة GIF",
"mp4Video": "فيديو MP4",
"videoFiles": "ملفات فيديو",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "مشروع OpenScreen",
"allFiles": "جميع الملفات"
}
diff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.json
index e4771f9ec..6df193528 100644
--- a/src/i18n/locales/ar/settings.json
+++ b/src/i18n/locales/ar/settings.json
@@ -328,6 +328,8 @@
"help": "اضبط مستوى إخراج الصوت. يُطبَّق بالطريقة نفسها في المعاينة وعند التصدير."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/en/dialogs.json b/src/i18n/locales/en/dialogs.json
index 2dccd1cac..9ce8e3ded 100644
--- a/src/i18n/locales/en/dialogs.json
+++ b/src/i18n/locales/en/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Save Exported GIF",
"saveVideo": "Save Exported Video",
"selectVideo": "Select Video File",
+ "selectAudio": "Select Audio File",
"saveProject": "Save OpenScreen Project",
"openProject": "Open OpenScreen Project",
"gifImage": "GIF Image",
"mp4Video": "MP4 Video",
"videoFiles": "Video Files",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen Project",
"allFiles": "All Files"
}
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json
index 3b555d74e..c6a395253 100644
--- a/src/i18n/locales/en/settings.json
+++ b/src/i18n/locales/en/settings.json
@@ -80,6 +80,8 @@
"reset": "Reset audio"
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/es/dialogs.json b/src/i18n/locales/es/dialogs.json
index b2ec280f4..10ebb2315 100644
--- a/src/i18n/locales/es/dialogs.json
+++ b/src/i18n/locales/es/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Guardar GIF exportado",
"saveVideo": "Guardar video exportado",
"selectVideo": "Seleccionar archivo de video",
+ "selectAudio": "Select Audio File",
"saveProject": "Guardar proyecto OpenScreen",
"openProject": "Abrir proyecto OpenScreen",
"gifImage": "Imagen GIF",
"mp4Video": "Video MP4",
"videoFiles": "Archivos de video",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Proyecto OpenScreen",
"allFiles": "Todos los archivos"
}
diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.json
index 88983d170..f38a8fb15 100644
--- a/src/i18n/locales/es/settings.json
+++ b/src/i18n/locales/es/settings.json
@@ -328,6 +328,8 @@
"help": "Ajusta el nivel de salida del audio. Se aplica igual en la vista previa y en la exportación."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/fr/dialogs.json b/src/i18n/locales/fr/dialogs.json
index bd1d02251..a7691550e 100644
--- a/src/i18n/locales/fr/dialogs.json
+++ b/src/i18n/locales/fr/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Enregistrer le GIF exporté",
"saveVideo": "Enregistrer la vidéo exportée",
"selectVideo": "Sélectionner un fichier vidéo",
+ "selectAudio": "Select Audio File",
"saveProject": "Enregistrer le projet OpenScreen",
"openProject": "Ouvrir un projet OpenScreen",
"gifImage": "Image GIF",
"mp4Video": "Vidéo MP4",
"videoFiles": "Fichiers vidéo",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Projet OpenScreen",
"allFiles": "Tous les fichiers"
}
diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.json
index 771393441..eb27b38c3 100644
--- a/src/i18n/locales/fr/settings.json
+++ b/src/i18n/locales/fr/settings.json
@@ -328,6 +328,8 @@
"help": "Ajustez le niveau de sortie audio. Il s’applique à l’identique dans l’aperçu et à l’export."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/it/dialogs.json b/src/i18n/locales/it/dialogs.json
index a40a61d9c..b26a83da9 100644
--- a/src/i18n/locales/it/dialogs.json
+++ b/src/i18n/locales/it/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Salva GIF esportata",
"saveVideo": "Salva video esportato",
"selectVideo": "Seleziona file video",
+ "selectAudio": "Select Audio File",
"saveProject": "Salva progetto OpenScreen",
"openProject": "Apri progetto OpenScreen",
"gifImage": "Immagine GIF",
"mp4Video": "Video MP4",
"videoFiles": "File video",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Progetto OpenScreen",
"allFiles": "Tutti i file"
}
diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.json
index 85b8313bb..1ab8cdeed 100644
--- a/src/i18n/locales/it/settings.json
+++ b/src/i18n/locales/it/settings.json
@@ -328,6 +328,8 @@
"help": "Regola il livello di uscita audio. Si applica allo stesso modo nell’anteprima e nell’esportazione."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/ja-JP/dialogs.json b/src/i18n/locales/ja-JP/dialogs.json
index 82637172b..911c2ad94 100644
--- a/src/i18n/locales/ja-JP/dialogs.json
+++ b/src/i18n/locales/ja-JP/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "エクスポートしたGIFを保存",
"saveVideo": "エクスポートした動画を保存",
"selectVideo": "動画ファイルを選択",
+ "selectAudio": "Select Audio File",
"saveProject": "OpenScreen プロジェクトを保存",
"openProject": "OpenScreen プロジェクトを開く",
"gifImage": "GIF 画像",
"mp4Video": "MP4 動画",
"videoFiles": "動画ファイル",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen プロジェクト",
"allFiles": "すべてのファイル"
}
diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json
index 7bcfefc30..680224ea1 100644
--- a/src/i18n/locales/ja-JP/settings.json
+++ b/src/i18n/locales/ja-JP/settings.json
@@ -328,6 +328,8 @@
"help": "音声の出力レベルを調整します。プレビューと書き出しで同じように適用されます。"
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/ko-KR/dialogs.json b/src/i18n/locales/ko-KR/dialogs.json
index 6930b9baf..d654a5f52 100644
--- a/src/i18n/locales/ko-KR/dialogs.json
+++ b/src/i18n/locales/ko-KR/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "내보낸 GIF 저장",
"saveVideo": "내보낸 비디오 저장",
"selectVideo": "비디오 파일 선택",
+ "selectAudio": "Select Audio File",
"saveProject": "OpenScreen 프로젝트 저장",
"openProject": "OpenScreen 프로젝트 열기",
"gifImage": "GIF 이미지",
"mp4Video": "MP4 비디오",
"videoFiles": "비디오 파일",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen 프로젝트",
"allFiles": "모든 파일"
}
diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.json
index 3d3f36c49..8b5476d24 100644
--- a/src/i18n/locales/ko-KR/settings.json
+++ b/src/i18n/locales/ko-KR/settings.json
@@ -328,6 +328,8 @@
"help": "오디오 출력 레벨을 조정합니다. 미리보기와 내보내기에 동일하게 적용됩니다."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/pt-BR/dialogs.json b/src/i18n/locales/pt-BR/dialogs.json
index c8cbeecaa..7dbb4c642 100644
--- a/src/i18n/locales/pt-BR/dialogs.json
+++ b/src/i18n/locales/pt-BR/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Salvar GIF Exportado",
"saveVideo": "Salvar Vídeo Exportado",
"selectVideo": "Selecionar Arquivo de Vídeo",
+ "selectAudio": "Select Audio File",
"saveProject": "Salvar Projeto OpenScreen",
"openProject": "Abrir Projeto OpenScreen",
"gifImage": "Imagem GIF",
"mp4Video": "Vídeo MP4",
"videoFiles": "Arquivos de Vídeo",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Projeto OpenScreen",
"allFiles": "Todos os Arquivos"
}
diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.json
index bef4eed8d..662cfa8e5 100644
--- a/src/i18n/locales/pt-BR/settings.json
+++ b/src/i18n/locales/pt-BR/settings.json
@@ -328,6 +328,8 @@
"help": "Ajuste o nível de saída do áudio. Ele se aplica da mesma forma na prévia e na exportação."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/ru/dialogs.json b/src/i18n/locales/ru/dialogs.json
index e6154234a..7e1dbaeed 100644
--- a/src/i18n/locales/ru/dialogs.json
+++ b/src/i18n/locales/ru/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Сохранить экспортированный GIF",
"saveVideo": "Сохранить экспортированное видео",
"selectVideo": "Выбрать видеофайл",
+ "selectAudio": "Select Audio File",
"saveProject": "Сохранить проект OpenScreen",
"openProject": "Открыть проект OpenScreen",
"gifImage": "GIF изображение",
"mp4Video": "MP4 видео",
"videoFiles": "Видеофайлы",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Проект OpenScreen",
"allFiles": "Все файлы"
}
diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.json
index 505d32dc9..0ff2a0c55 100644
--- a/src/i18n/locales/ru/settings.json
+++ b/src/i18n/locales/ru/settings.json
@@ -328,6 +328,8 @@
"help": "Настройте уровень звука на выходе. Он одинаково применяется в предпросмотре и при экспорте."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/tr/dialogs.json b/src/i18n/locales/tr/dialogs.json
index 587e670e5..c6299d520 100644
--- a/src/i18n/locales/tr/dialogs.json
+++ b/src/i18n/locales/tr/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Dışa Aktarılan GIF'i Kaydet",
"saveVideo": "Dışa Aktarılan Videoyu Kaydet",
"selectVideo": "Video Dosyası Seç",
+ "selectAudio": "Select Audio File",
"saveProject": "OpenScreen Projesini Kaydet",
"openProject": "OpenScreen Projesini Aç",
"gifImage": "GIF Görüntüsü",
"mp4Video": "MP4 Video",
"videoFiles": "Video Dosyaları",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen Projesi",
"allFiles": "Tüm Dosyalar"
}
diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.json
index add958d0f..a4e0c8fff 100644
--- a/src/i18n/locales/tr/settings.json
+++ b/src/i18n/locales/tr/settings.json
@@ -328,6 +328,8 @@
"help": "Ses çıkış seviyesini ayarlayın. Önizlemede ve dışa aktarmada aynı şekilde uygulanır."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/vi/dialogs.json b/src/i18n/locales/vi/dialogs.json
index 55524a832..213240763 100644
--- a/src/i18n/locales/vi/dialogs.json
+++ b/src/i18n/locales/vi/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "Lưu GIF đã xuất",
"saveVideo": "Lưu Video đã xuất",
"selectVideo": "Chọn tệp video",
+ "selectAudio": "Select Audio File",
"saveProject": "Lưu dự án OpenScreen",
"openProject": "Mở dự án OpenScreen",
"gifImage": "Hình ảnh GIF",
"mp4Video": "Video MP4",
"videoFiles": "Tệp Video",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "Dự án OpenScreen",
"allFiles": "Tất cả các tệp"
}
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index e2d3b31db..772353638 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -328,6 +328,8 @@
"help": "Điều chỉnh mức đầu ra của âm thanh. Nó được áp dụng giống hệt nhau trong bản xem trước và khi xuất."
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/zh-CN/dialogs.json b/src/i18n/locales/zh-CN/dialogs.json
index efba46518..b28304f6c 100644
--- a/src/i18n/locales/zh-CN/dialogs.json
+++ b/src/i18n/locales/zh-CN/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "保存导出的 GIF",
"saveVideo": "保存导出的视频",
"selectVideo": "选择视频文件",
+ "selectAudio": "Select Audio File",
"saveProject": "保存 OpenScreen 项目",
"openProject": "打开 OpenScreen 项目",
"gifImage": "GIF 图片",
"mp4Video": "MP4 视频",
"videoFiles": "视频文件",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen 项目",
"allFiles": "所有文件"
}
diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json
index e5091364f..74b088d38 100644
--- a/src/i18n/locales/zh-CN/settings.json
+++ b/src/i18n/locales/zh-CN/settings.json
@@ -328,6 +328,8 @@
"help": "调整音频输出电平。它在预览和导出中的效果完全一致。"
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",
diff --git a/src/i18n/locales/zh-TW/dialogs.json b/src/i18n/locales/zh-TW/dialogs.json
index 527e87efa..6c3601511 100644
--- a/src/i18n/locales/zh-TW/dialogs.json
+++ b/src/i18n/locales/zh-TW/dialogs.json
@@ -79,13 +79,13 @@
"saveGif": "儲存匯出的 GIF",
"saveVideo": "儲存匯出的影片",
"selectVideo": "選擇影片檔案",
+ "selectAudio": "Select Audio File",
"saveProject": "儲存 OpenScreen 專案",
"openProject": "開啟 OpenScreen 專案",
"gifImage": "GIF 圖片",
"mp4Video": "MP4 影片",
"videoFiles": "影片檔案",
"audioFiles": "Audio Files",
- "mediaFiles": "Media Files",
"openscreenProject": "OpenScreen 專案",
"allFiles": "所有檔案"
}
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index 4a4499973..05bb60f79 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -329,6 +329,8 @@
"help": "調整音訊輸出電平。它在預覽與匯出中的效果完全一致。"
},
"audioTrack": {
+ "add": "Add audio track",
+ "importFailed": "Could not add audio",
"defaultLabel": "Audio track",
"help": "Volume, position, and mute for this imported audio track. It mixes over the recording in the preview and the export.",
"volume": "Volume",