The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
feat(captions): a "Use voice from timeline" switch in the Generate Captions sheet (#302)
Jareer5982dc73b5e0
diff --git a/src/crates/concat/locales/ar.json b/src/crates/concat/locales/ar.jsonindex 14735daf..a1d72cd6 100644--- a/src/crates/concat/locales/ar.json+++ b/src/crates/concat/locales/ar.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "نزّل أولًا نموذج تفريغ نصي من الإعدادات › التفريغ النصي.","captions.generateCaptions": "إنشاء تسميات توضيحية","captions.loadingTheModel": "جارٍ تحميل النموذج",+ "captions.noVoiceOnTimeline": "لا يوجد مقطع بصوت في المخطط الزمني","captions.nothingSaidClip": "لم يُقَل شيء في ذلك المقطع","captions.nothingToCaptionYet": "لا يوجد ما يُضاف له تسميات توضيحية بعد","captions.oneTitlePerPhrase": "عنوان لكل عبارة منطوقة، مقصوص على توقيت الكلمات نفسها، على أول مسار فيه متّسع.",@@ -18,6 +19,7 @@"captions.placement": "الموضع","captions.transcribing": "جارٍ التفريغ النصي","captions.typeWordsPutScreen": "اكتب الكلمات التي ستظهر على الشاشة…",+ "captions.useVoiceFromTimeline": "استخدام الصوت من المخطط الزمني","clipInspector.add": "إضافة","clipInspector.analysis": "التحليل","clipInspector.audioTrack": "مسار الصوت",diff --git a/src/crates/concat/locales/bn.json b/src/crates/concat/locales/bn.jsonindex 936ee8d6..970cffa7 100644--- a/src/crates/concat/locales/bn.json+++ b/src/crates/concat/locales/bn.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "আগে সেটিংস › ট্রান্সক্রাইবার থেকে একটি ট্রান্সক্রাইবার মডেল ডাউনলোড করুন।","captions.generateCaptions": "ক্যাপশন তৈরি করুন","captions.loadingTheModel": "মডেল লোড হচ্ছে",+ "captions.noVoiceOnTimeline": "টাইমলাইনে শব্দসহ কোনো ক্লিপ নেই","captions.nothingSaidClip": "ঐ ক্লিপে কিছু বলা হয়নি","captions.nothingToCaptionYet": "এখনও ক্যাপশন করার মতো কিছু নেই","captions.oneTitlePerPhrase": "প্রতিটি বলা বাক্যাংশের জন্য একটি করে টাইটেল, শব্দের নিজস্ব সময় অনুযায়ী কাটা, জায়গা আছে এমন প্রথম লেনে।",@@ -18,6 +19,7 @@"captions.placement": "অবস্থান","captions.transcribing": "ট্রান্সক্রাইব করা হচ্ছে","captions.typeWordsPutScreen": "স্ক্রিনে দেখানোর শব্দগুলো লিখুন…",+ "captions.useVoiceFromTimeline": "টাইমলাইনের কণ্ঠ ব্যবহার করুন","clipInspector.add": "যোগ করুন","clipInspector.analysis": "বিশ্লেষণ","clipInspector.audioTrack": "অডিও ট্র্যাক",diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex fb1ba1bb..f1aa103c 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Lade zuerst ein Transkriptionsmodell unter Einstellungen › Transkription herunter.","captions.generateCaptions": "Untertitel erzeugen","captions.loadingTheModel": "Modell wird geladen",+ "captions.noVoiceOnTimeline": "Kein Clip auf der Zeitleiste hat Ton","captions.nothingSaidClip": "In diesem Clip wurde nichts gesagt","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Ein Titel pro gesprochenem Satz, im Takt der Wörter geschnitten, auf der ersten freien Spur.",@@ -18,6 +19,7 @@"captions.placement": "Platzierung","captions.transcribing": "Wird transkribiert","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Stimme aus der Zeitleiste verwenden","clipInspector.add": "Addieren","clipInspector.analysis": "Analyse","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.jsonindex 5174887f..973ef621 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Download a transcriber model in Settings › Transcriber first.","captions.generateCaptions": "Generate captions","captions.loadingTheModel": "Loading the model",+ "captions.noVoiceOnTimeline": "No clip on the timeline has sound","captions.nothingSaidClip": "Nothing was said in that clip","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "One title per phrase spoken, cut to the words' own timing, on the first lane with room.",@@ -18,6 +19,7 @@"captions.placement": "Placement","captions.transcribing": "Transcribing","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Use voice from timeline","clipInspector.add": "Add","clipInspector.analysis": "Analysis","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex 406f5239..da9c8bc2 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Descarga primero un modelo de transcripción en Ajustes › Transcriptor.","captions.generateCaptions": "Generar subtítulos","captions.loadingTheModel": "Cargando el modelo",+ "captions.noVoiceOnTimeline": "Ningún clip de la línea de tiempo tiene sonido","captions.nothingSaidClip": "No se dijo nada en ese clip","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Un título por frase hablada, ajustado al ritmo de las palabras, en la primera pista con espacio.",@@ -18,6 +19,7 @@"captions.placement": "Posición","captions.transcribing": "Transcribiendo","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Usar la voz de la línea de tiempo","clipInspector.add": "Añadir","clipInspector.analysis": "Análisis","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex 784a256a..0b059a54 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "ابتدا یک مدل Transcriber را از «تنظیمات › Transcriber» دانلود کنید.","captions.generateCaptions": "ساخت زیرنویسها","captions.loadingTheModel": "در حال بارگذاری مدل",+ "captions.noVoiceOnTimeline": "هیچ کلیپی در خط زمان صدا ندارد","captions.nothingSaidClip": "در آن کلیپ چیزی گفته نشده است","captions.nothingToCaptionYet": "هنوز چیزی برای زیرنویس کردن وجود ندارد","captions.oneTitlePerPhrase": "برای هر Phrase گفتهشده یک عنوان ساخته میشود، با Timing خود کلمات، روی اولین لاین دارای فضای کافی.",@@ -18,6 +19,7 @@"captions.placement": "جایگذاری","captions.transcribing": "در حال رونویسی","captions.typeWordsPutScreen": "متنی را که باید روی صفحه نمایش داده شود وارد کنید…",+ "captions.useVoiceFromTimeline": "استفاده از صدای خط زمان","clipInspector.add": "افزودن","clipInspector.analysis": "تحلیل","clipInspector.audioTrack": "ترک صوتی",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex 645b579e..8a0b82f3 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Téléchargez d'abord un modèle de transcription dans Réglages › Transcription.","captions.generateCaptions": "Générer les sous-titres","captions.loadingTheModel": "Chargement du modèle",+ "captions.noVoiceOnTimeline": "Aucun clip de la timeline n'a de son","captions.nothingSaidClip": "Rien n'a été dit dans ce clip","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Un titre par phrase prononcée, calé sur le rythme des mots, sur la première piste libre.",@@ -18,6 +19,7 @@"captions.placement": "Position","captions.transcribing": "Transcription en cours","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Utiliser la voix de la timeline","clipInspector.add": "Addition","clipInspector.analysis": "Analyse","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/he.json b/src/crates/concat/locales/he.jsonindex 393c312a..b23a4954 100644--- a/src/crates/concat/locales/he.json+++ b/src/crates/concat/locales/he.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "יש להוריד קודם מודל תמלול בהגדרות › מתמלל.","captions.generateCaptions": "יצירת כתוביות","captions.loadingTheModel": "טוען את המודל",+ "captions.noVoiceOnTimeline": "אין בציר הזמן קליפ עם קול","captions.nothingSaidClip": "לא נאמר דבר בקליפ הזה","captions.nothingToCaptionYet": "אין עדיין למה להוסיף כתוביות","captions.oneTitlePerPhrase": "כותרת אחת לכל ביטוי שנאמר, חתוכה לפי תזמון המילים עצמן, בערוץ הראשון שיש בו מקום.",@@ -18,6 +19,7 @@"captions.placement": "מיקום","captions.transcribing": "מתמלל","captions.typeWordsPutScreen": "יש להקליד את המילים שיופיעו על המסך…",+ "captions.useVoiceFromTimeline": "שימוש בקול מציר הזמן","clipInspector.add": "הוספה","clipInspector.analysis": "ניתוח","clipInspector.audioTrack": "ערוץ שמע",diff --git a/src/crates/concat/locales/hi.json b/src/crates/concat/locales/hi.jsonindex 76473cdb..92fe0a0e 100644--- a/src/crates/concat/locales/hi.json+++ b/src/crates/concat/locales/hi.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "पहले सेटिंग › ट्रांसक्राइबर में एक ट्रांसक्राइबर मॉडल डाउनलोड करें।","captions.generateCaptions": "कैप्शन बनाएं","captions.loadingTheModel": "मॉडल लोड हो रहा है",+ "captions.noVoiceOnTimeline": "टाइमलाइन पर किसी क्लिप में आवाज़ नहीं है","captions.nothingSaidClip": "उस क्लिप में कुछ नहीं बोला गया","captions.nothingToCaptionYet": "अभी कैप्शन बनाने के लिए कुछ नहीं है","captions.oneTitlePerPhrase": "बोले गए हर वाक्यांश के लिए एक टाइटल, शब्दों की अपनी टाइमिंग पर कटा हुआ, खाली जगह वाली पहली लेन पर।",@@ -18,6 +19,7 @@"captions.placement": "स्थान","captions.transcribing": "ट्रांसक्राइब हो रहा है","captions.typeWordsPutScreen": "स्क्रीन पर दिखाने के लिए शब्द लिखें…",+ "captions.useVoiceFromTimeline": "टाइमलाइन की आवाज़ इस्तेमाल करें","clipInspector.add": "जोड़ें","clipInspector.analysis": "विश्लेषण","clipInspector.audioTrack": "ऑडियो ट्रैक",diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.jsonindex a17d1021..ae2f6e52 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Prvo preuzmite model za transkripciju u Postavke › Transkriber.","captions.generateCaptions": "Generiraj titlove","captions.loadingTheModel": "Učitavanje modela",+ "captions.noVoiceOnTimeline": "Nijedan isječak na vremenskoj crti nema zvuk","captions.nothingSaidClip": "U tom klipu ništa nije rečeno","captions.nothingToCaptionYet": "Još ništa za titlove","captions.oneTitlePerPhrase": "Jedan naslov po izgovorenoj frazi, rezan na vlastiti tajming riječi, na prvoj traci s mjesta.",@@ -18,6 +19,7 @@"captions.placement": "Smještaj","captions.transcribing": "Transkripcija","captions.typeWordsPutScreen": "Upišite riječi za prikaz na zaslonu…",+ "captions.useVoiceFromTimeline": "Koristi glas s vremenske crte","clipInspector.add": "Dodaj","clipInspector.analysis": "Analiza","clipInspector.audioTrack": "Zvučna traka",diff --git a/src/crates/concat/locales/id.json b/src/crates/concat/locales/id.jsonindex 8a32aeff..3ace0c43 100644--- a/src/crates/concat/locales/id.json+++ b/src/crates/concat/locales/id.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Unduh dulu model transkripsi di Pengaturan › Transkripsi.","captions.generateCaptions": "Buat subtitel","captions.loadingTheModel": "Memuat model",+ "captions.noVoiceOnTimeline": "Tidak ada klip bersuara di linimasa","captions.nothingSaidClip": "Tidak ada ucapan di klip itu","captions.nothingToCaptionYet": "Belum ada yang bisa diberi subtitel","captions.oneTitlePerPhrase": "Satu judul untuk setiap frasa yang diucapkan, dipotong mengikuti waktu kata-katanya, di lajur pertama yang masih lowong.",@@ -18,6 +19,7 @@"captions.placement": "Penempatan","captions.transcribing": "Mentranskripsi","captions.typeWordsPutScreen": "Ketik kata-kata yang akan tampil di layar…",+ "captions.useVoiceFromTimeline": "Gunakan suara dari linimasa","clipInspector.add": "Tambah","clipInspector.analysis": "Analisis","clipInspector.audioTrack": "Trek audio",diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.jsonindex 416aad78..0161acc2 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Scarica prima un modello di trascrizione in Impostazioni › Trascrizione.","captions.generateCaptions": "Genera sottotitoli","captions.loadingTheModel": "Caricamento del modello",+ "captions.noVoiceOnTimeline": "Nessuna clip nella timeline ha audio","captions.nothingSaidClip": "In quella clip non è stato detto nulla","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Un titolo per ogni frase pronunciata, tagliato sul ritmo delle parole, sulla prima traccia libera.",@@ -18,6 +19,7 @@"captions.placement": "Posizione","captions.transcribing": "Trascrizione in corso","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Usa la voce dalla timeline","clipInspector.add": "Somma","clipInspector.analysis": "Analisi","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex adb4bd02..11da7af1 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "まず「設定 › 文字起こし」でモデルをダウンロードしてください。","captions.generateCaptions": "字幕を生成","captions.loadingTheModel": "モデルを読み込み中",+ "captions.noVoiceOnTimeline": "音声のあるクリップがタイムラインにありません","captions.nothingSaidClip": "そのクリップには発話がありませんでした","captions.nothingToCaptionYet": "まだ字幕を付けるものがありません","captions.oneTitlePerPhrase": "発話されたフレーズごとにタイトルを一つ、言葉のタイミングどおりに、空いている最初のレーンへ。",@@ -18,6 +19,7 @@"captions.placement": "配置","captions.transcribing": "文字起こし中","captions.typeWordsPutScreen": "画面に表示する言葉を入力…",+ "captions.useVoiceFromTimeline": "タイムラインの音声を使う","clipInspector.add": "加算","clipInspector.analysis": "解析","clipInspector.audioTrack": "オーディオトラック",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex c73b4e12..db9be476 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "먼저 설정 › 받아쓰기에서 모델을 다운로드하세요.","captions.generateCaptions": "자막 생성","captions.loadingTheModel": "모델 불러오는 중",+ "captions.noVoiceOnTimeline": "타임라인에 소리가 있는 클립이 없습니다","captions.nothingSaidClip": "그 클립에는 말소리가 없습니다","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "말한 구절마다 자막 하나씩, 말의 타이밍에 맞춰, 자리가 있는 첫 레인에 놓습니다.",@@ -18,6 +19,7 @@"captions.placement": "배치","captions.transcribing": "받아쓰는 중","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "타임라인의 음성 사용","clipInspector.add": "더하기","clipInspector.analysis": "분석","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/nl.json b/src/crates/concat/locales/nl.jsonindex a8e7f035..5e6b663e 100644--- a/src/crates/concat/locales/nl.json+++ b/src/crates/concat/locales/nl.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Download eerst een transcriptiemodel via Instellingen › Transcriptie.","captions.generateCaptions": "Ondertitels genereren","captions.loadingTheModel": "Model laden",+ "captions.noVoiceOnTimeline": "Geen clip op de tijdlijn heeft geluid","captions.nothingSaidClip": "Er wordt niets gezegd in die clip","captions.nothingToCaptionYet": "Nog niets om te ondertitelen","captions.oneTitlePerPhrase": "Eén titel per gesproken zin, getimed op de woorden zelf, op het eerste spoor met ruimte.",@@ -18,6 +19,7 @@"captions.placement": "Plaatsing","captions.transcribing": "Transcriberen","captions.typeWordsPutScreen": "Typ de woorden die in beeld moeten komen…",+ "captions.useVoiceFromTimeline": "Stem uit de tijdlijn gebruiken","clipInspector.add": "Toevoegen","clipInspector.analysis": "Analyse","clipInspector.audioTrack": "Audiospoor",diff --git a/src/crates/concat/locales/pl.json b/src/crates/concat/locales/pl.jsonindex 9897208b..4c9a75e9 100644--- a/src/crates/concat/locales/pl.json+++ b/src/crates/concat/locales/pl.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Najpierw pobierz model transkrypcji w Ustawienia › Transkrypcja.","captions.generateCaptions": "Generuj napisy","captions.loadingTheModel": "Ładowanie modelu",+ "captions.noVoiceOnTimeline": "Żaden klip na osi czasu nie ma dźwięku","captions.nothingSaidClip": "W tym klipie nic nie zostało powiedziane","captions.nothingToCaptionYet": "Na razie nie ma czego podpisać","captions.oneTitlePerPhrase": "Jeden napis na każdą wypowiedzianą frazę, przycięty do rytmu samych słów, na pierwszej ścieżce z wolnym miejscem.",@@ -18,6 +19,7 @@"captions.placement": "Położenie","captions.transcribing": "Transkrypcja","captions.typeWordsPutScreen": "Wpisz słowa, które pojawią się na ekranie…",+ "captions.useVoiceFromTimeline": "Użyj głosu z osi czasu","clipInspector.add": "Dodaj","clipInspector.analysis": "Analiza","clipInspector.audioTrack": "Ścieżka audio",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex 315b54ad..5ae6e433 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Baixe primeiro um modelo de transcrição em Configurações › Transcrição.","captions.generateCaptions": "Gerar legendas","captions.loadingTheModel": "Carregando o modelo",+ "captions.noVoiceOnTimeline": "Nenhum clipe na linha do tempo tem som","captions.nothingSaidClip": "Nada foi dito nesse clipe","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Um título por frase falada, no ritmo das palavras, na primeira faixa com espaço.",@@ -18,6 +19,7 @@"captions.placement": "Posição","captions.transcribing": "Transcrevendo","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Usar a voz da linha do tempo","clipInspector.add": "Adicionar","clipInspector.analysis": "Análise","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.jsonindex ec18ff36..bb5ac03c 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Сначала скачайте модель распознавания в Настройки › Распознавание.","captions.generateCaptions": "Создать субтитры","captions.loadingTheModel": "Загрузка модели",+ "captions.noVoiceOnTimeline": "На таймлайне нет клипов со звуком","captions.nothingSaidClip": "В этом клипе ничего не сказано","captions.nothingToCaptionYet": "Пока нечего субтитровать","captions.oneTitlePerPhrase": "Один титр на каждую произнесённую фразу, в такт словам, на первой свободной дорожке.",@@ -18,6 +19,7 @@"captions.placement": "Расположение","captions.transcribing": "Распознавание","captions.typeWordsPutScreen": "Введите слова, которые появятся на экране…",+ "captions.useVoiceFromTimeline": "Использовать голос с таймлайна","clipInspector.add": "Сложение","clipInspector.analysis": "Анализ","clipInspector.audioTrack": "Аудиодорожка",diff --git a/src/crates/concat/locales/th.json b/src/crates/concat/locales/th.jsonindex 4b4aca7c..8bab5410 100644--- a/src/crates/concat/locales/th.json+++ b/src/crates/concat/locales/th.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "ดาวน์โหลดโมเดลถอดเสียงก่อนที่ การตั้งค่า › ตัวถอดเสียง","captions.generateCaptions": "สร้างคำบรรยาย","captions.loadingTheModel": "กำลังโหลดโมเดล",+ "captions.noVoiceOnTimeline": "ไม่มีคลิปที่มีเสียงบนไทม์ไลน์","captions.nothingSaidClip": "ไม่มีเสียงพูดในคลิปนั้น","captions.nothingToCaptionYet": "ยังไม่มีอะไรให้ใส่คำบรรยาย","captions.oneTitlePerPhrase": "ไตเติลหนึ่งรายการต่อหนึ่งวลีที่พูด ตัดตามจังหวะของคำ วางบนเลนแรกที่มีที่ว่าง",@@ -18,6 +19,7 @@"captions.placement": "ตำแหน่งที่วาง","captions.transcribing": "กำลังถอดเสียง","captions.typeWordsPutScreen": "พิมพ์ข้อความที่จะแสดงบนจอ…",+ "captions.useVoiceFromTimeline": "ใช้เสียงพูดจากไทม์ไลน์","clipInspector.add": "เพิ่ม","clipInspector.analysis": "การวิเคราะห์","clipInspector.audioTrack": "แทร็กเสียง",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex 7e8d471e..7dbc9757 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Önce Ayarlar › Yazıya dökme bölümünden bir model indirin.","captions.generateCaptions": "Altyazı oluştur","captions.loadingTheModel": "Model yükleniyor",+ "captions.noVoiceOnTimeline": "Zaman çizelgesinde sesi olan klip yok","captions.nothingSaidClip": "O klipte hiçbir şey söylenmedi","captions.nothingToCaptionYet": "Nothing to caption yet","captions.oneTitlePerPhrase": "Söylenen her cümle için bir yazı, kelimelerin kendi zamanlamasıyla, yeri olan ilk şeritte.",@@ -18,6 +19,7 @@"captions.placement": "Yerleşim","captions.transcribing": "Yazıya dökülüyor","captions.typeWordsPutScreen": "Type the words to put on screen…",+ "captions.useVoiceFromTimeline": "Zaman çizelgesindeki sesi kullan","clipInspector.add": "Topla","clipInspector.analysis": "Analiz","clipInspector.audioTrack": "Audio track",diff --git a/src/crates/concat/locales/uk.json b/src/crates/concat/locales/uk.jsonindex 47182163..103293ce 100644--- a/src/crates/concat/locales/uk.json+++ b/src/crates/concat/locales/uk.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Спершу завантажте модель розпізнавання в Налаштування › Розпізнавання.","captions.generateCaptions": "Створити субтитри","captions.loadingTheModel": "Завантаження моделі",+ "captions.noVoiceOnTimeline": "На часовій шкалі немає кліпів зі звуком","captions.nothingSaidClip": "У цьому кліпі нічого не сказано","captions.nothingToCaptionYet": "Поки немає тексту для субтитрів","captions.oneTitlePerPhrase": "Один титр на кожну вимовлену фразу, точно за таймінгом слів, на першій вільній доріжці.",@@ -18,6 +19,7 @@"captions.placement": "Розташування","captions.transcribing": "Розпізнавання","captions.typeWordsPutScreen": "Введіть слова, які з’являться на екрані…",+ "captions.useVoiceFromTimeline": "Використати голос із часової шкали","clipInspector.add": "Додати","clipInspector.analysis": "Аналіз","clipInspector.audioTrack": "Аудіодоріжка",diff --git a/src/crates/concat/locales/ur.json b/src/crates/concat/locales/ur.jsonindex 9d31dd62..3f02197c 100644--- a/src/crates/concat/locales/ur.json+++ b/src/crates/concat/locales/ur.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "پہلے ترتیبات › ٹرانسکرائبر میں سے کوئی ٹرانسکرائبر ماڈل ڈاؤن لوڈ کریں۔","captions.generateCaptions": "کیپشن بنائیں","captions.loadingTheModel": "ماڈل لوڈ ہو رہا ہے",+ "captions.noVoiceOnTimeline": "ٹائم لائن پر کسی کلپ میں آواز نہیں","captions.nothingSaidClip": "اس کلپ میں کچھ نہیں بولا گیا","captions.nothingToCaptionYet": "ابھی کیپشن کے لیے کچھ نہیں","captions.oneTitlePerPhrase": "ہر بولے گئے فقرے کے لیے ایک ٹائٹل، الفاظ کی اپنی ٹائمنگ کے مطابق کٹا ہوا، پہلی ایسی لین پر جس میں جگہ ہو۔",@@ -18,6 +19,7 @@"captions.placement": "جگہ","captions.transcribing": "ٹرانسکرائب ہو رہا ہے","captions.typeWordsPutScreen": "اسکرین پر دکھانے کے لیے الفاظ لکھیں…",+ "captions.useVoiceFromTimeline": "ٹائم لائن کی آواز استعمال کریں","clipInspector.add": "شامل کریں","clipInspector.analysis": "تجزیہ","clipInspector.audioTrack": "آڈیو ٹریک",diff --git a/src/crates/concat/locales/vi.json b/src/crates/concat/locales/vi.jsonindex 24c3112a..ac85e620 100644--- a/src/crates/concat/locales/vi.json+++ b/src/crates/concat/locales/vi.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "Trước tiên, hãy tải mô hình phiên âm trong Cài đặt › Công cụ phiên âm.","captions.generateCaptions": "Tạo phụ đề","captions.loadingTheModel": "Đang tải mô hình",+ "captions.noVoiceOnTimeline": "Không có clip nào trên dòng thời gian có âm thanh","captions.nothingSaidClip": "Không có lời thoại nào trong đoạn phim đó","captions.nothingToCaptionYet": "Chưa có gì để tạo phụ đề","captions.oneTitlePerPhrase": "Tạo một tiêu đề cho mỗi cụm từ được nói, căn theo thời điểm của từng từ và đặt trên track đầu tiên còn chỗ.",@@ -18,6 +19,7 @@"captions.placement": "Vị trí","captions.transcribing": "Đang chuyển đổi","captions.typeWordsPutScreen": "Nhập các từ muốn hiển thị trên màn hình…",+ "captions.useVoiceFromTimeline": "Dùng giọng nói từ dòng thời gian","clipInspector.add": "Thêm","clipInspector.analysis": "Phân tích","clipInspector.audioTrack": "Đường âm thanh",diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.jsonindex b5d8bbf8..ee442873 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "请先在“设置 › 转录器”中下载转录模型。","captions.generateCaptions": "生成字幕","captions.loadingTheModel": "正在加载模型",+ "captions.noVoiceOnTimeline": "时间线上没有带声音的片段","captions.nothingSaidClip": "该片段中没有语音","captions.nothingToCaptionYet": "暂无可添加字幕的内容","captions.oneTitlePerPhrase": "每个口语短语一个标题,按词语本身的时间切分,放在第一条有空位的轨道上。",@@ -18,6 +19,7 @@"captions.placement": "位置","captions.transcribing": "正在转录","captions.typeWordsPutScreen": "输入要显示在屏幕上的文字…",+ "captions.useVoiceFromTimeline": "使用时间线中的语音","clipInspector.add": "添加","clipInspector.analysis": "分析","clipInspector.audioTrack": "音频轨道",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex 998d9b14..1e2f0c77 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -11,6 +11,7 @@"captions.downloadTranscriberModelFirst": "請先在「設定 › 轉錄器」中下載轉錄模型。","captions.generateCaptions": "產生字幕","captions.loadingTheModel": "正在載入模型",+ "captions.noVoiceOnTimeline": "時間軸上沒有帶聲音的片段","captions.nothingSaidClip": "該片段中沒有語音","captions.nothingToCaptionYet": "尚無可加上字幕的內容","captions.oneTitlePerPhrase": "每個口說片語一個標題,依字詞本身的時間切分,放在第一條有空位的軌道上。",@@ -18,6 +19,7 @@"captions.placement": "位置","captions.transcribing": "正在轉錄","captions.typeWordsPutScreen": "輸入要顯示在螢幕上的文字…",+ "captions.useVoiceFromTimeline": "使用時間軸中的語音","clipInspector.add": "加入","clipInspector.analysis": "分析","clipInspector.audioTrack": "音訊軌道",diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rsindex b7f201ac..0e59f9a5 100644--- a/src/crates/concat/src/lib.rs+++ b/src/crates/concat/src/lib.rs@@ -1273,13 +1273,13 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::if let Some(id) = target {// The captions sheet is a pane of its own, so its row goes// through the window's messages rather than the clip's verbs:- // the clip is selected, and the sheet takes the selection as- // the clip to transcribe.+ // the sheet opens on this clip's voice, "Use voice from+ // timeline" on, and the clip is selected so it shows which.if action.as_str() == "captions" {state.flush_commit();state.transition_selected = None;- state.selection = vec![id];- state.handle(Msg::Captions(CaptionsMsg::Open));+ state.selection = vec![id.clone()];+ state.handle(Msg::Captions(CaptionsMsg::OpenOnClip(id)));return;}state.clip_action(&id, action.as_str());@@ -1580,6 +1580,12 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::app.on_captions_closed(on_window!(|state| {state.handle(Msg::Captions(CaptionsMsg::Close));}));+ app.on_captions_voice_toggled(on_window!(|state, on: bool| {+ state.handle(Msg::Captions(CaptionsMsg::VoiceToggled(on)));+ }));+ app.on_captions_source_changed(on_window!(|state, index: i32| {+ state.handle(Msg::Captions(CaptionsMsg::SourceChanged(index)));+ }));app.on_captions_text_edited(on_window!(|state, text: SharedString| {state.handle(Msg::Captions(CaptionsMsg::TextEdited(text.to_string())));}));diff --git a/src/crates/concat/src/panes/captions.rs b/src/crates/concat/src/panes/captions.rsindex 618b5c16..c3c8384d 100644--- a/src/crates/concat/src/panes/captions.rs+++ b/src/crates/concat/src/panes/captions.rs@@ -4,9 +4,12 @@//! The captions sheet: the tray's Captions tool, as a form and then as a//! progress report.//!-//! What it captions is decided when it opens, not asked: the selected-//! clip's sound when one clip with sound is selected, and a script-//! otherwise. Either lands as one batch of title clips, one undo step.+//! One switch says what it captions: "Use voice from timeline", on, takes+//! the words from a clip with sound, chosen in the sheet from the clips on+//! the timeline that have any; off, from a script typed in it. It opens on+//! when a clip with sound is selected, or when a clip's menu opened it on+//! that clip, and off otherwise. Either lands as one batch of title clips,+//! one undo step.//! The transcriber runs on a worker and reports as//! [`CaptionsMsg::Progress`], ending as [`CaptionsMsg::Finished`].@@ -35,9 +38,16 @@ pub const CHARS_PER_SECOND: f32 = 14.0;/// Everything that can happen to the captions sheet.#[derive(Clone, Debug)]pub enum CaptionsMsg {- /// The tray's Captions tool.+ /// The tray's Captions tool: the selected clip's voice when it has+ /// sound, the script otherwise.Open,+ /// A clip's menu: the sheet on that clip's voice.+ OpenOnClip(String),Close,+ /// The "Use voice from timeline" switch.+ VoiceToggled(bool),+ /// Row in the list of clips with sound.+ SourceChanged(i32),TextEdited(String),ModelChanged(i32),PlacementChanged(i32),@@ -65,8 +75,12 @@ struct Subject {#[derive(Default)]pub struct CaptionsPane {pub open: bool,- /// The clip being transcribed: the one selected when the sheet opened,- /// when it had sound. None, and the sheet is a script instead.+ /// "Use voice from timeline": the words come from [`Self::clip`]'s sound+ /// when on, from [`Self::text`] when off.+ pub from_voice: bool,+ /// The clip whose voice is transcribed: one with sound, chosen from the+ /// timeline's. Kept while the switch is off, so turning it back on+ /// returns to the same clip.pub clip: Option<String>,/// The script's words.pub text: String,@@ -90,23 +104,33 @@ impl CaptionsPane {pub fn update(&mut self, msg: CaptionsMsg, studio: &mut Studio) {match msg {CaptionsMsg::Open => {- let installed = installed(&studio.settings.transcribers);- let model = installed.iter().position(|model| model.active).unwrap_or(0);- let clip = studio- .sole_selection()- .and_then(|id| studio.clip(&id))- .filter(|clip| studio.clip_has_sound(clip))- .map(|clip| clip.id.clone());- *self = CaptionsPane {- open: true,- clip,- model,- placement: 0,- size: 1,- ..CaptionsPane::default()- };+ let selected = studio.sole_selection();+ self.open_on(studio, selected, false);}+ CaptionsMsg::OpenOnClip(id) => self.open_on(studio, Some(id), true),CaptionsMsg::Close => self.open = false,+ CaptionsMsg::VoiceToggled(on) => {+ self.from_voice = on;+ self.message.clear();+ let sources = sources(studio);+ if on+ && !self+ .clip+ .as_ref()+ .is_some_and(|id| sources.iter().any(|s| &s.id == id))+ {+ self.clip = sources.first().map(|source| source.id.clone());+ }+ }+ CaptionsMsg::SourceChanged(index) => {+ if let Some(source) = usize::try_from(index)+ .ok()+ .and_then(|index| sources(studio).into_iter().nth(index))+ {+ self.clip = Some(source.id);+ self.message.clear();+ }+ }CaptionsMsg::TextEdited(text) => self.text = text,CaptionsMsg::ModelChanged(index) => self.model = index.max(0) as usize,CaptionsMsg::PlacementChanged(index) => {@@ -114,7 +138,7 @@ impl CaptionsPane {}CaptionsMsg::SizeChanged(index) => self.size = (index.max(0) as usize).min(2),CaptionsMsg::Begin => {- if self.clip.is_some() {+ if self.from_voice {self.run_sound(studio);} else {self.run_script(studio);@@ -170,6 +194,32 @@ impl CaptionsPane {}}+ /// The sheet opened afresh. `clip` is the clip it was opened on, if+ /// any: the switch starts on when that clip has sound, or when a clip's+ /// menu asked for its voice (`voice`), in which case a clip without+ /// sound falls to the first clip that has some.+ fn open_on(&mut self, studio: &Studio, clip: Option<String>, voice: bool) {+ let installed = installed(&studio.settings.transcribers);+ let model = installed.iter().position(|model| model.active).unwrap_or(0);+ let sources = sources(studio);+ let sounding = clip.filter(|id| sources.iter().any(|source| &source.id == id));+ let from_voice = voice || sounding.is_some();+ let clip = sounding.or_else(|| {+ from_voice+ .then(|| sources.first().map(|source| source.id.clone()))+ .flatten()+ });+ *self = CaptionsPane {+ open: true,+ from_voice,+ clip,+ model,+ placement: 0,+ size: 1,+ ..CaptionsPane::default()+ };+ }+/// A caption's look, by the sheet's rows: where it sits and its size.fn look(&self) -> (f64, f64) {(@@ -252,9 +302,25 @@ impl CaptionsPane {/// The sheet as Slint shows it.pub fn data(&self, studio: &Studio) -> CaptionsSheetData {+ let sources = if self.open {+ sources(studio)+ } else {+ Vec::new()+ };+ let source = self+ .clip+ .as_ref()+ .and_then(|id| sources.iter().position(|source| &source.id == id))+ .map_or(-1, |index| index as i32);+ let labels: Vec<slint::SharedString> = sources+ .into_iter()+ .map(|source| source.label.into())+ .collect();CaptionsSheetData {open: self.open,- from_sound: self.clip.is_some(),+ from_voice: self.from_voice,+ sources: std::rc::Rc::new(slint::VecModel::from(labels)).into(),+ source,text: self.text.as_str().into(),model: self.model as i32,placement: self.placement as i32,@@ -267,6 +333,51 @@ impl CaptionsPane {}}+/// A clip on the timeline whose voice can be captioned, as the sheet's+/// list shows it.+struct Source {+ id: String,+ label: String,+}++/// The clips on the current timeline that have sound, in the order they+/// play: an audio clip, or a video whose file has an audio stream.+fn sources(studio: &Studio) -> Vec<Source> {+ let project = studio.project();+ let mut clips: Vec<_> = studio+ .timeline()+ .clips+ .iter()+ .filter(|clip| studio.clip_has_sound(clip))+ .map(|clip| {+ let name = project+ .media_by_id(&clip.media_id)+ .map_or(clip.name.as_str(), |media| media.name.as_str());+ (clip.start, clip.id.clone(), name.to_owned())+ })+ .collect();+ clips.sort_by(|a, b| a.0.total_cmp(&b.0).then_with(|| a.1.cmp(&b.1)));+ clips+ .into_iter()+ .map(|(start, id, name)| Source {+ id,+ label: source_label(&name, start),+ })+ .collect()+}++/// A clip as the list names it: its file and where it starts on the+/// timeline, so two clips of one file are told apart.+fn source_label(name: &str, start: f64) -> String {+ let seconds = start.max(0.0).floor() as u64;+ let (hours, minutes, seconds) = (seconds / 3600, seconds / 60 % 60, seconds % 60);+ if hours > 0 {+ format!("{name} · {hours}:{minutes:02}:{seconds:02}")+ } else {+ format!("{name} · {minutes}:{seconds:02}")+ }+}+/// One caption as a title clip: its words, when and for how long, and/// its look.fn caption_clip(@@ -397,7 +508,17 @@ fn wrap_caption(sentence: &str) -> Vec<String> {#[cfg(test)]mod tests {- use super::script_captions;+ use super::{script_captions, source_label};++ /// A clip in the voice list is its file and where it starts, in+ /// minutes and seconds, with hours once there are any.+ #[test]+ fn a_voice_is_named_by_its_file_and_where_it_starts() {+ assert_eq!(source_label("Interview.mp4", 0.0), "Interview.mp4 · 0:00");+ assert_eq!(source_label("Interview.mp4", 72.9), "Interview.mp4 · 1:12");+ assert_eq!(source_label("Talk.wav", 3_725.0), "Talk.wav · 1:02:05");+ assert_eq!(source_label("Talk.wav", -1.0), "Talk.wav · 0:00");+ }/// A script becomes one caption per sentence, a hand line break is/// kept, a long sentence wraps at its words, and each line is held fordiff --git a/src/crates/concat/ui/app.slint b/src/crates/concat/ui/app.slintindex 725e94f3..b19508fc 100644--- a/src/crates/concat/ui/app.slint+++ b/src/crates/concat/ui/app.slint@@ -286,6 +286,8 @@ export component App inherits Window {in property <CaptionsSheetData> captions;in property <[string]> caption-models;callback captions-closed();+ callback captions-voice-toggled(on: bool);+ callback captions-source-changed(index: int);callback captions-text-edited(text: string);callback captions-model-changed(index: int);callback captions-placement-changed(index: int);@@ -826,6 +828,8 @@ export component App inherits Window {models: root.caption-models;closed => { root.captions-closed(); }+ voice-toggled(on) => { root.captions-voice-toggled(on); }+ source-changed(index) => { root.captions-source-changed(index); }text-edited(text) => { root.captions-text-edited(text); }model-changed(index) => { root.captions-model-changed(index); }placement-changed(index) => { root.captions-placement-changed(index); }diff --git a/src/crates/concat/ui/dialogs/captions.slint b/src/crates/concat/ui/dialogs/captions.slintindex 7160619a..a48dcde2 100644--- a/src/crates/concat/ui/dialogs/captions.slint+++ b/src/crates/concat/ui/dialogs/captions.slint@@ -7,24 +7,31 @@ import { Glyph, Icon } from "../icons.slint";import { Button, CopyChip, DialogRow, DialogSection, Modal, Progress } from "../primitives/modal.slint";import { SegmentedControl } from "../primitives/segmented-control.slint";import { Select } from "../primitives/select.slint";+import { Switch } from "../inspector/controls.slint";// Captions: what the tray's Captions tool opens.//-// Two sheets in one, and which is decided before it opens rather than-// asked. With a clip that has sound selected, the words are that clip's:-// through the transcriber, cut to the words' own timing. Otherwise they-// are a script typed here, one title per sentence at reading pace, laid-// down from the playhead. Asking would only invite the wrong answer - a-// silent video sent to the transcriber - so the selection decides. Then-// where the lines sit and how big they are, and one button. While it runs+// Two sheets in one, and a switch between them: "Use voice from timeline".+// On, the words are a clip's: one picked from the timeline's clips that+// have sound, through the transcriber, cut to the words' own timing. Off,+// they are a script typed here, one title per sentence at reading pace,+// laid down from the playhead. The list holds only clips with sound, so a+// silent video cannot be sent to the transcriber. The switch starts on+// when the sheet is opened on a clip with sound - from the clip's menu, or+// with one selected - and off otherwise. Then where the lines sit and how+// big they are, and one button. While it runs// the sheet is the progress report: a transcription knows how far through// the sound it is, so it gets a real bar and not a sweep. The language is// the transcriber's to work out.export struct CaptionsSheetData {open: bool,- /// The selected clip has sound, and the sheet transcribes it.- from-sound: bool,+ /// "Use voice from timeline": the words come from a clip's sound.+ from-voice: bool,+ /// The timeline's clips with sound, by file and start.+ sources: [string],+ /// Row in `sources` of the clip to transcribe; -1 for none.+ source: int,text: string,/// Row in the installed transcriber list.model: int,@@ -46,6 +53,8 @@ export component CaptionsDialog inherits Modal {/// The installed transcriber models, by name.in property <[string]> models;+ callback voice-toggled(on: bool);+ callback source-changed(index: int);callback text-edited(text: string);callback model-changed(index: int);callback placement-changed(index: int);@@ -53,7 +62,7 @@ export component CaptionsDialog inherits Modal {callback begin();callback cancel();- property <bool> from-sound: root.data.from-sound;+ property <bool> from-voice: root.data.from-voice;open: root.data.open;title: I18n.t("captions.captions");@@ -77,10 +86,47 @@ export component CaptionsDialog inherits Modal {init => { root.draft = root.data.text; }VerticalLayout {- if !root.data.running && root.from-sound: DialogSection {+ // The switch, above both halves. A row of its own rather than a+ // DialogRow, whose label column is too narrow for the words.+ if !root.data.running: HorizontalLayout {+ padding-left: 14px;+ padding-right: 14px;+ padding-top: 14px;+ spacing: 10px;++ Text {+ horizontal-stretch: 1;+ text: I18n.t("captions.useVoiceFromTimeline");+ color: Theme.fg;+ font-size: Theme.fs;+ vertical-alignment: center;+ wrap: word-wrap;+ }++ VerticalLayout {+ alignment: center;+ Switch {+ checked: root.from-voice;+ toggled(on) => { root.voice-toggled(on); }+ }+ }+ }++ if !root.data.running && root.from-voice: DialogSection {first: true;title: I18n.t("common.transcriber");+ DialogRow {+ label: I18n.t("common.audio");+ Select {+ options: root.data.sources;+ current: root.data.source;+ placeholder: I18n.t("captions.noVoiceOnTimeline");+ enabled: root.data.sources.length > 0;+ changed(index) => { root.source-changed(index); }+ }+ }+DialogRow {label: I18n.t("common.model");Select {@@ -100,7 +146,7 @@ export component CaptionsDialog inherits Modal {}}- if !root.data.running && !root.from-sound: DialogSection {+ if !root.data.running && !root.from-voice: DialogSection {first: true;title: I18n.t("common.script");@@ -173,7 +219,7 @@ export component CaptionsDialog inherits Modal {}Text {- text: root.from-sound+ text: root.from-voice? I18n.t("captions.oneTitlePerPhrase"): I18n.t("captions.oneTitlePerSentence");color: Theme.fg-dim;@@ -256,8 +302,8 @@ export component CaptionsDialog inherits Modal {primary: true;large: true;glyph: Glyph.text-mark;- label: root.from-sound ? I18n.t("captions.generateCaptions") : I18n.t("captions.addCaptions");- enabled: root.from-sound ? root.data.ready : root.draft != "";+ label: root.from-voice ? I18n.t("captions.generateCaptions") : I18n.t("captions.addCaptions");+ enabled: root.from-voice ? root.data.ready && root.data.source >= 0 : root.draft != "";clicked => { root.begin(); }}}