Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Move transcript timestamp settings to top of Prompt Options, relabel as agent timestamp availability, and use a two-column layout (#304)
Murtaza Nasira9abd9572ce3
diff --git a/static/locales/de.json b/static/locales/de.jsonindex 7b820594..6a6a5644 100644--- a/static/locales/de.json+++ b/static/locales/de.json@@ -1616,10 +1616,10 @@"hintsUsed": "Für diese Aufnahme verwendete Transkriptionshinweise"},"timestamps": {- "title": "Transkript-Zeitstempel",- "description": "Fügen Sie dem an die KI gesendeten Transkript Zeitmarken hinzu, damit sie sich darauf beziehen kann, wann etwas gesagt wurde. Verwenden Sie das Standardformat oder eine Ihrer Transkriptvorlagen.",- "summaryLabel": "Zeitstempel zum Transkript des Zusammenfassers hinzufügen",- "chatLabel": "Zeitstempel zum Chat-Transkript hinzufügen",+ "title": "Verfügbarkeit von Transkript-Zeitstempeln",+ "description": "Legen Sie fest, ob der Zusammenfassungs- und der Chat-Agent Zeitstempel im Transkript erhalten, damit sie sich darauf beziehen können, wann etwas gesagt wurde. Wählen Sie das Standardformat oder eine Ihrer Transkriptvorlagen.",+ "summaryLabel": "Dem Zusammenfassungs-Agenten Zeitstempel geben",+ "chatLabel": "Dem Chat-Agenten Zeitstempel geben","defaultFormat": "Standard-Zeitstempelformat"},"transcription": {diff --git a/static/locales/en.json b/static/locales/en.jsonindex e8fa3260..6758f07c 100644--- a/static/locales/en.json+++ b/static/locales/en.json@@ -1625,10 +1625,10 @@"hintsUsed": "Transcription hints used for this recording"},"timestamps": {- "title": "Transcript Timestamps",- "description": "Include time markers in the transcript sent to the AI so it can reference when things were said. Use the default format, or one of your transcript templates.",- "summaryLabel": "Add timestamps to the summarizer's transcript",- "chatLabel": "Add timestamps to the chat transcript",+ "title": "Transcript Timestamp Availability",+ "description": "Choose whether the summarization and chat agents receive timestamps in the transcript, so they can reference when something was said. Pick the default format, or one of your transcript templates.",+ "summaryLabel": "Give the summarization agent timestamps",+ "chatLabel": "Give the chat agent timestamps","defaultFormat": "Default timestamp format"},"transcription": {diff --git a/static/locales/es.json b/static/locales/es.jsonindex 1dea533e..2d98b544 100644--- a/static/locales/es.json+++ b/static/locales/es.json@@ -1616,10 +1616,10 @@"hintsUsed": "Indicaciones de transcripción usadas en esta grabación"},"timestamps": {- "title": "Marcas de tiempo de la transcripción",- "description": "Incluye marcas de tiempo en la transcripción enviada a la IA para que pueda indicar cuándo se dijo algo. Usa el formato predeterminado o una de tus plantillas de transcripción.",- "summaryLabel": "Añadir marcas de tiempo a la transcripción del resumen",- "chatLabel": "Añadir marcas de tiempo a la transcripción del chat",+ "title": "Disponibilidad de marcas de tiempo en la transcripción",+ "description": "Elige si los agentes de resumen y de chat reciben marcas de tiempo en la transcripción, para que puedan indicar cuándo se dijo algo. Usa el formato predeterminado o una de tus plantillas de transcripción.",+ "summaryLabel": "Dar marcas de tiempo al agente de resumen",+ "chatLabel": "Dar marcas de tiempo al agente de chat","defaultFormat": "Formato de marca de tiempo predeterminado"},"transcription": {diff --git a/static/locales/fr.json b/static/locales/fr.jsonindex 15388e51..41790d2f 100644--- a/static/locales/fr.json+++ b/static/locales/fr.json@@ -1616,10 +1616,10 @@"hintsUsed": "Indices de transcription utilisés pour cet enregistrement"},"timestamps": {- "title": "Horodatage de la transcription",- "description": "Ajoutez des repères temporels à la transcription envoyée à l'IA afin qu'elle puisse indiquer à quel moment les choses ont été dites. Utilisez le format par défaut ou l'un de vos modèles de transcription.",- "summaryLabel": "Ajouter des horodatages à la transcription du résumé",- "chatLabel": "Ajouter des horodatages à la transcription du chat",+ "title": "Disponibilité des horodatages de transcription",+ "description": "Choisissez si les agents de résumé et de chat reçoivent les horodatages dans la transcription, afin qu'ils puissent indiquer à quel moment les choses ont été dites. Utilisez le format par défaut ou l'un de vos modèles de transcription.",+ "summaryLabel": "Fournir les horodatages à l'agent de résumé",+ "chatLabel": "Fournir les horodatages à l'agent de chat","defaultFormat": "Format d'horodatage par défaut"},"transcription": {diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.jsonindex 269da649..f20f28a4 100644--- a/static/locales/pt-BR.json+++ b/static/locales/pt-BR.json@@ -1616,10 +1616,10 @@"hintsUsed": "Dicas de transcrição usadas nesta gravação"},"timestamps": {- "title": "Marcações de tempo da transcrição",- "description": "Inclua marcações de tempo na transcrição enviada à IA para que ela possa indicar quando algo foi dito. Use o formato padrão ou um dos seus modelos de transcrição.",- "summaryLabel": "Adicionar marcações de tempo à transcrição do resumo",- "chatLabel": "Adicionar marcações de tempo à transcrição do chat",+ "title": "Disponibilidade de marcações de tempo na transcrição",+ "description": "Escolha se os agentes de resumo e de chat recebem marcações de tempo na transcrição, para que possam indicar quando algo foi dito. Use o formato padrão ou um dos seus modelos de transcrição.",+ "summaryLabel": "Dar marcações de tempo ao agente de resumo",+ "chatLabel": "Dar marcações de tempo ao agente de chat","defaultFormat": "Formato de marcação de tempo padrão"},"transcription": {diff --git a/static/locales/ru.json b/static/locales/ru.jsonindex 48baba6d..747a62ab 100644--- a/static/locales/ru.json+++ b/static/locales/ru.json@@ -1616,10 +1616,10 @@"hintsUsed": "Подсказки транскрипции, использованные для этой записи"},"timestamps": {- "title": "Метки времени транскрипции",- "description": "Добавляйте метки времени в транскрипцию, отправляемую ИИ, чтобы он мог ссылаться на то, когда что-то было сказано. Используйте формат по умолчанию или один из ваших шаблонов транскрипции.",- "summaryLabel": "Добавлять метки времени в транскрипцию для резюме",- "chatLabel": "Добавлять метки времени в транскрипцию для чата",+ "title": "Доступность меток времени в транскрипции",+ "description": "Выберите, получают ли агенты резюме и чата метки времени в транскрипции, чтобы они могли ссылаться на то, когда что-то было сказано. Используйте формат по умолчанию или один из ваших шаблонов транскрипции.",+ "summaryLabel": "Передавать метки времени агенту резюме",+ "chatLabel": "Передавать метки времени агенту чата","defaultFormat": "Формат меток времени по умолчанию"},"transcription": {diff --git a/static/locales/zh.json b/static/locales/zh.jsonindex 33c88315..dab5b33b 100644--- a/static/locales/zh.json+++ b/static/locales/zh.json@@ -1616,10 +1616,10 @@"hintsUsed": "本次录音使用的转录提示"},"timestamps": {- "title": "转录时间戳",- "description": "在发送给 AI 的转录中加入时间标记,使其能够引用某句话的发生时间。使用默认格式,或选择您的某个转录模板。",- "summaryLabel": "为摘要使用的转录添加时间戳",- "chatLabel": "为聊天使用的转录添加时间戳",+ "title": "转录时间戳可用性",+ "description": "选择摘要代理和聊天代理是否在转录中收到时间戳,以便它们能够引用某句话的发生时间。使用默认格式,或选择您的某个转录模板。",+ "summaryLabel": "让摘要代理获得时间戳",+ "chatLabel": "让聊天代理获得时间戳","defaultFormat": "默认时间戳格式"},"transcription": {diff --git a/templates/account.html b/templates/account.htmlindex 6b698b13..0139327b 100644--- a/templates/account.html+++ b/templates/account.html@@ -706,6 +706,51 @@<form id="customPromptsForm" method="POST" action="{{ url_for('auth.account') }}" class="space-y-6"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>+ <!-- Transcript Timestamp Availability (#304) -->+ <div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">+ <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">+ <i class="fas fa-clock mr-2"></i>+ <span data-i18n="timestamps.title">Transcript Timestamp Availability</span>+ </h3>+ <p class="text-xs text-[var(--text-muted)] mb-4" data-i18n="timestamps.description">+ Choose whether the summarization and chat agents receive timestamps in the transcript, so they can reference when something was said. Pick the default format, or one of your transcript templates.+ </p>++ <div class="grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4">+ <div>+ <label class="flex items-start space-x-3">+ <input type="checkbox" name="summary_include_timestamps" id="summary_include_timestamps"+ {% if current_user.summary_include_timestamps %}checked{% endif %}+ class="mt-1 h-4 w-4 text-[var(--border-accent)] focus:ring-[var(--border-focus)] border-[var(--border-secondary)] rounded">+ <div>+ <span class="block text-sm font-medium text-[var(--text-primary)]" data-i18n="timestamps.summaryLabel">Give the summarization agent timestamps</span>+ </div>+ </label>+ <select name="summary_timestamp_template_id" id="summary_timestamp_template_id"+ data-selected="{{ current_user.summary_timestamp_template_id or '' }}"+ class="ts-template-picker mt-2 ml-7 w-[calc(100%-1.75rem)] px-3 py-2 border border-[var(--border-secondary)] rounded-md sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">+ <option value="" data-i18n="timestamps.defaultFormat">Default timestamp format</option>+ </select>+ </div>++ <div>+ <label class="flex items-start space-x-3">+ <input type="checkbox" name="chat_include_timestamps" id="chat_include_timestamps"+ {% if current_user.chat_include_timestamps %}checked{% endif %}+ class="mt-1 h-4 w-4 text-[var(--border-accent)] focus:ring-[var(--border-focus)] border-[var(--border-secondary)] rounded">+ <div>+ <span class="block text-sm font-medium text-[var(--text-primary)]" data-i18n="timestamps.chatLabel">Give the chat agent timestamps</span>+ </div>+ </label>+ <select name="chat_timestamp_template_id" id="chat_timestamp_template_id"+ data-selected="{{ current_user.chat_timestamp_template_id or '' }}"+ class="ts-template-picker mt-2 ml-7 w-[calc(100%-1.75rem)] px-3 py-2 border border-[var(--border-secondary)] rounded-md sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">+ <option value="" data-i18n="timestamps.defaultFormat">Default timestamp format</option>+ </select>+ </div>+ </div>+ </div>+<!-- Event Extraction Settings --><div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]"><h3 class="text-lg font-medium text-[var(--text-secondary)] mb-4">@@ -868,49 +913,6 @@</div></div>- <!-- Transcript Timestamps (#304) -->- <div class="bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">- <h3 class="text-lg font-medium text-[var(--text-secondary)] mb-2">- <i class="fas fa-clock mr-2"></i>- <span data-i18n="timestamps.title">Transcript Timestamps</span>- </h3>- <p class="text-xs text-[var(--text-muted)] mb-4" data-i18n="timestamps.description">- Include time markers in the transcript sent to the AI so it can reference when things were said. Use the default format, or one of your transcript templates.- </p>-- <div class="mb-4">- <label class="flex items-start space-x-3">- <input type="checkbox" name="summary_include_timestamps" id="summary_include_timestamps"- {% if current_user.summary_include_timestamps %}checked{% endif %}- class="mt-1 h-4 w-4 text-[var(--border-accent)] focus:ring-[var(--border-focus)] border-[var(--border-secondary)] rounded">- <div>- <span class="block text-sm font-medium text-[var(--text-primary)]" data-i18n="timestamps.summaryLabel">Add timestamps to the summarizer's transcript</span>- </div>- </label>- <select name="summary_timestamp_template_id" id="summary_timestamp_template_id"- data-selected="{{ current_user.summary_timestamp_template_id or '' }}"- class="ts-template-picker mt-2 ml-7 w-[calc(100%-1.75rem)] px-3 py-2 border border-[var(--border-secondary)] rounded-md sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">- <option value="" data-i18n="timestamps.defaultFormat">Default timestamp format</option>- </select>- </div>-- <div>- <label class="flex items-start space-x-3">- <input type="checkbox" name="chat_include_timestamps" id="chat_include_timestamps"- {% if current_user.chat_include_timestamps %}checked{% endif %}- class="mt-1 h-4 w-4 text-[var(--border-accent)] focus:ring-[var(--border-focus)] border-[var(--border-secondary)] rounded">- <div>- <span class="block text-sm font-medium text-[var(--text-primary)]" data-i18n="timestamps.chatLabel">Add timestamps to the chat transcript</span>- </div>- </label>- <select name="chat_timestamp_template_id" id="chat_timestamp_template_id"- data-selected="{{ current_user.chat_timestamp_template_id or '' }}"- class="ts-template-picker mt-2 ml-7 w-[calc(100%-1.75rem)] px-3 py-2 border border-[var(--border-secondary)] rounded-md sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">- <option value="" data-i18n="timestamps.defaultFormat">Default timestamp format</option>- </select>- </div>- </div>-</form></div><!-- /.tab-scroll --><div class="tab-footer">