Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Prepare v0.10.2-alpha: bump version, document the SSO verified-email default change (env example and SSO guide), and localize the new pause/resume, contextual-labelling, and speaker-help strings across all seven locales

Murtaza Nasir78311e6a2b95
diff --git a/README.md b/README.md
index e0065ce3..a1586d80 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@
<a href="https://www.gnu.org/licenses/agpl-3.0"><img alt="AGPL v3" src="https://img.shields.io/badge/License-AGPL_v3-blue.svg"></a>
<a href="https://github.com/murtaza-nasir/speakr/actions/workflows/docker-publish.yml"><img alt="Docker Build" src="https://github.com/murtaza-nasir/speakr/actions/workflows/docker-publish.yml/badge.svg"></a>
<a href="https://hub.docker.com/r/learnedmachine/speakr"><img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/learnedmachine/speakr"></a>
- <a href="https://github.com/murtaza-nasir/speakr/releases/latest"><img alt="Latest Version" src="https://img.shields.io/badge/version-0.10.1--alpha-brightgreen.svg"></a>
+ <a href="https://github.com/murtaza-nasir/speakr/releases/latest"><img alt="Latest Version" src="https://img.shields.io/badge/version-0.10.2--alpha-brightgreen.svg"></a>
</p>
<p align="center">
@@ -201,9 +201,13 @@ Complete documentation is available at **[murtaza-nasir.github.io/speakr](https:
- [Troubleshooting](https://murtaza-nasir.github.io/speakr/troubleshooting) - Common issues and solutions
- [FAQ](https://murtaza-nasir.github.io/speakr/faq) - Frequently asked questions
-## Latest Release (v0.10.1-alpha)
+## Latest Release (v0.10.2-alpha)
-**A security-hardening release. Upgrading is recommended for all deployments.** The application now refuses the insecure built-in secret key and, when `SECRET_KEY` is unset, generates and persists a strong per-deployment key automatically, so session cookies and password-reset tokens can no longer be forged on installs that never set one. Baseline security headers and a Content-Security-Policy are now set by the application itself rather than relying on a hardening reverse proxy. Password-reset links are single-use and are invalidated when the password changes. Chat, Inquire, and admin banner content rendered from Markdown is sanitized before display. The admin user list no longer exposes the full directory to group administrators, bulk tagging enforces group membership, and logout is a CSRF-protected action. Chart.js and DOMPurify are now bundled locally instead of loaded from a third-party CDN. No database changes. **Full release notes on the [GitHub release page](https://github.com/murtaza-nasir/speakr/releases/tag/v0.10.1-alpha).**
+**A security and dependency release. Upgrading is recommended for all deployments.** This release resolves three coordinated security reports: a stored cross-site scripting issue reachable by a group administrator through a tag color or name, a webhook server-side request forgery via DNS rebinding, and an SSO account-takeover path through an unverified email claim. Verified-email enforcement for SSO is now on by default; deployments whose identity provider does not send an `email_verified` claim must set `SSO_REQUIRE_VERIFIED_EMAIL=false`. The web framework moves to the Flask 3.1 and Werkzeug 3.1 line, which also closes two Werkzeug multipart denial-of-service issues. New features include contextual speaker labelling for transcription engines that diarize without voice embeddings, and pause/resume for in-app recording. This release also fixes malformed browser recording uploads, restores the API documentation page under the default Content-Security-Policy, and improves transcription-failure error messages. A one-time migration lowercases existing stored email addresses. **Full release notes on the [GitHub release page](https://github.com/murtaza-nasir/speakr/releases/tag/v0.10.2-alpha).**
+
+### v0.10.1-alpha (previous release)
+
+A security-hardening release. The application refuses the insecure built-in secret key and, when `SECRET_KEY` is unset, generates and persists a strong per-deployment key automatically, so session cookies and password-reset tokens can no longer be forged on installs that never set one. Baseline security headers and a Content-Security-Policy are set by the application itself rather than relying on a hardening reverse proxy. Password-reset links are single-use and are invalidated when the password changes. Markdown-rendered content is sanitized before display, the admin user list no longer exposes the full directory to group administrators, bulk tagging enforces group membership, and logout is a CSRF-protected action.
### v0.10.0-alpha (previous release)
diff --git a/VERSION b/VERSION
index 6fb320ef..c2ef6ba3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-v0.10.1-alpha
+v0.10.2-alpha
diff --git a/config/env.sso.example b/config/env.sso.example
index a44f2b60..792c1306 100644
--- a/config/env.sso.example
+++ b/config/env.sso.example
@@ -27,11 +27,12 @@ SSO_AUTO_REGISTER=true
SSO_ALLOWED_DOMAINS=
# Require a verified email before an SSO login may link to (or provision) a
-# local account by email address. Default false for backwards compatibility.
-# Enable it when your IdP reliably sends the email_verified claim, to prevent a
-# malicious or misconfigured IdP from taking over an account by asserting its
-# email. Users already linked by SSO subject are unaffected.
-SSO_REQUIRE_VERIFIED_EMAIL=false
+# local account by email address. Secure by default (true): otherwise a
+# malicious or misconfigured IdP could take over an account by asserting its
+# email. Set to false ONLY for a trusted IdP that does not send the
+# email_verified claim, otherwise all email-bearing logins from that IdP are
+# rejected. Users already linked by SSO subject are unaffected either way.
+SSO_REQUIRE_VERIFIED_EMAIL=true
# Claims used to map user profile fields
SSO_DEFAULT_USERNAME_CLAIM=preferred_username
diff --git a/docs/admin-guide/sso-setup.md b/docs/admin-guide/sso-setup.md
index 91d0c1b2..0adf33cc 100644
--- a/docs/admin-guide/sso-setup.md
+++ b/docs/admin-guide/sso-setup.md
@@ -104,7 +104,11 @@ When a user logs in via SSO with an email that matches an existing Speakr accoun
For self-hosted deployments where you control both Speakr and the IdP, this is generally not a concern. If you're using an IdP where users can set unverified email addresses, be aware that this could allow account linking without email ownership verification.
-To close this off, set `SSO_REQUIRE_VERIFIED_EMAIL=true`. When enabled, an SSO login whose `email_verified` claim is not true is refused before the email is used to link to (or provision) a local account, so a malicious or misconfigured IdP cannot take over an account by asserting its address. It accepts the claim as either a boolean or the string `"true"`. Users already linked by SSO subject are unaffected and keep signing in even if the IdP omits the claim. It defaults to `false` for backwards compatibility — only enable it once you've confirmed your IdP reliably sends `email_verified`, since IdPs that omit it will otherwise have all email-bearing logins rejected. You can also use `SSO_ALLOWED_DOMAINS` to restrict which email domains can authenticate.
+This is closed off by default: `SSO_REQUIRE_VERIFIED_EMAIL` defaults to `true`. An SSO login whose `email_verified` claim is not true is refused before the email is used to link to (or provision) a local account, so a malicious or misconfigured IdP cannot take over an account by asserting its address. The claim is accepted as either a boolean or the string `"true"`. Users already linked by SSO subject are unaffected and keep signing in even if the IdP omits the claim.
+
+If your IdP does not send an `email_verified` claim and you trust it, set `SSO_REQUIRE_VERIFIED_EMAIL=false` to restore the previous behavior; otherwise all email-bearing logins from that IdP are rejected. When you opt out this way, a warning is logged at startup so the relaxed setting stays visible. You can also use `SSO_ALLOWED_DOMAINS` to restrict which email domains can authenticate.
+
+> **Changed in v0.10.2-alpha:** `SSO_REQUIRE_VERIFIED_EMAIL` now defaults to `true` (previously `false`). Deployments whose IdP does not send `email_verified` must set it to `false` to keep the old behavior.
## Linking existing users
diff --git a/docs/index.md b/docs/index.md
index dd4741d7..f29828fc 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -6,10 +6,12 @@ Speakr is a powerful self-hosted transcription platform that helps you capture,
<img src="assets/images/screenshots/main-view-video.png" alt="Main Interface" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
</div>
-!!! success "Latest Release: v0.10.1-alpha — security hardening (recommended for all deployments)"
- The app now refuses the insecure built-in secret key and auto-generates a strong one if `SECRET_KEY` is unset, so sessions and reset tokens cannot be forged. It sets security headers and a Content-Security-Policy itself, makes password-reset links single-use, sanitizes Markdown-rendered chat/Inquire/banner content, stops the admin user list leaking the full directory to group admins, and makes logout CSRF-protected.
+!!! success "Latest Release: v0.10.2-alpha — security fixes, Flask 3.1, and new features (recommended for all deployments)"
+ Resolves three coordinated security reports (stored XSS via tag color, webhook SSRF via DNS rebinding, and SSO account takeover via an unverified email claim) and moves to Flask 3.1 / Werkzeug 3.1, closing two Werkzeug denial-of-service issues. Adds contextual speaker labelling for engines without voice embeddings and pause/resume for in-app recording.
- See the [full release notes](https://github.com/murtaza-nasir/speakr/releases/tag/v0.10.1-alpha) for details. Backwards compatible; no database changes.
+ **Action required for some SSO setups:** verified-email enforcement is now on by default. If your identity provider does not send an `email_verified` claim, set `SSO_REQUIRE_VERIFIED_EMAIL=false` before upgrading. All other deployments need no configuration change.
+
+ See the [full release notes](https://github.com/murtaza-nasir/speakr/releases/tag/v0.10.2-alpha) for details.
## Quick Navigation
diff --git a/static/locales/de.json b/static/locales/de.json
index bbd94ec2..efe876be 100644
--- a/static/locales/de.json
+++ b/static/locales/de.json
@@ -107,7 +107,8 @@
"username": "Benutzername",
"signInSecurity": "Anmeldung & Sicherheit",
"password": "Passwort",
- "savedSuccess": "Einstellungen gespeichert"
+ "savedSuccess": "Einstellungen gespeichert",
+ "contextualSpeakerLabellingHelp": "Sprecher werden anhand des Gesprächskontexts zugeordnet, da Ihre Transkriptions-Engine keine Stimmprofile liefert. Das kann recht ungenau sein, abhängig davon, wie viel das Gespräch darüber verrät, wer spricht, und wie gut Ihr Modell die Sprecher trennt. Für die genaueste, stimmbasierte Sprecherzuordnung wird der WhisperX-ASR-Container empfohlen."
},
"accountTabs": {
"about": "Über",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Standard-Initial-Prompt",
"defaultInitialPromptDesc": "Wird an die Transkriptions-Engine gesendet, um die Erkennung zu steuern (z. B. erwartetes Thema oder Vokabular).",
"defaultHotwordsLabel": "Standard-Hotwords",
- "defaultHotwordsDesc": "Durch Kommas getrennte Wörter, um die Erkennung domänenspezifischer Begriffe zu verbessern."
+ "defaultHotwordsDesc": "Durch Kommas getrennte Wörter, um die Erkennung domänenspezifischer Begriffe zu verbessern.",
+ "contextualSpeakerPromptTitle": "Prompt für kontextbasierte Sprecherzuordnung",
+ "contextualSpeakerPromptDesc": "Anleitung, der das Modell folgt, wenn es Sprecher anhand des Gesprächskontexts zuordnet; nur für Transkriptions-Engines verwendet, die Sprecher trennen, ohne Stimmprofile zurückzugeben. Die Liste der gespeicherten Sprechernamen des Benutzers und das JSON-Ausgabeformat werden automatisch nach diesem Text hinzugefügt. Leer lassen, um den integrierten Standard zu verwenden.",
+ "contextualSpeakerPromptPlaceholder": "Leer lassen, um die integrierte Standardanleitung zu verwenden."
},
"apiTokens": {
"activeTokens": "Aktive Token",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "Nur Tab-Audio auf dieser Plattform — siehe Hilfe",
"title": "Audio-Aufnahme",
"videoPreviewLabel": "Live-Vorschau des aufgenommenen Videos",
- "virtualMonitor": "virtuell / Monitor"
+ "virtualMonitor": "virtuell / Monitor",
+ "recordingPaused": "Pausiert",
+ "recordingFinished": "Aufnahme beendet"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "Das Audio wird von Grund auf neu transkribiert. Dies wird auch den Titel und die Zusammenfassung basierend auf der neuen Transkription neu generieren.",
diff --git a/static/locales/en.json b/static/locales/en.json
index c43a10f2..9fe663fb 100644
--- a/static/locales/en.json
+++ b/static/locales/en.json
@@ -107,7 +107,8 @@
"username": "Username",
"signInSecurity": "Sign-in & Security",
"password": "Password",
- "savedSuccess": "Settings saved"
+ "savedSuccess": "Settings saved",
+ "contextualSpeakerLabellingHelp": "Speakers are matched from the conversation context because your transcription engine does not provide voice fingerprints. This can be quite inaccurate, depending on how much the conversation reveals about who is speaking and how well your model separates speakers. For the most accurate, voice-based speaker matching, the WhisperX ASR container is recommended."
},
"accountTabs": {
"about": "About",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Default Initial Prompt",
"defaultInitialPromptDesc": "Sent to the transcription engine to steer recognition (for example, the expected topic or vocabulary).",
"defaultHotwordsLabel": "Default Hotwords",
- "defaultHotwordsDesc": "Comma-separated words to bias recognition of domain-specific terms."
+ "defaultHotwordsDesc": "Comma-separated words to bias recognition of domain-specific terms.",
+ "contextualSpeakerPromptTitle": "Contextual Speaker Labelling Prompt",
+ "contextualSpeakerPromptDesc": "Guidance the model follows when it labels speakers from the conversation context, used only for transcription engines that diarize without returning voice fingerprints. The list of the user's saved speaker names and the JSON output format are added automatically after this text. Leave blank to use the built-in default.",
+ "contextualSpeakerPromptPlaceholder": "Leave blank to use the built-in default guidance."
},
"apiTokens": {
"activeTokens": "Active Tokens",
@@ -1337,7 +1341,9 @@
"tabAudioOnlyTooltip": "Tab audio only on this platform — see help",
"title": "Audio Recording",
"videoPreviewLabel": "Live preview of the captured video",
- "virtualMonitor": "virtual / monitor"
+ "virtualMonitor": "virtual / monitor",
+ "recordingPaused": "Paused",
+ "recordingFinished": "Recording finished"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "The audio will be re-transcribed from scratch. This will also regenerate the title and summary based on the new transcription.",
diff --git a/static/locales/es.json b/static/locales/es.json
index 4fdf4712..c9c61d32 100644
--- a/static/locales/es.json
+++ b/static/locales/es.json
@@ -107,7 +107,8 @@
"username": "Nombre de Usuario",
"signInSecurity": "Inicio de sesión y seguridad",
"password": "Contraseña",
- "savedSuccess": "Configuración guardada"
+ "savedSuccess": "Configuración guardada",
+ "contextualSpeakerLabellingHelp": "Los hablantes se identifican a partir del contexto de la conversación porque su motor de transcripción no proporciona huellas de voz. Esto puede ser bastante impreciso, según cuánto revele la conversación sobre quién habla y con qué precisión su modelo separa a los hablantes. Para la coincidencia de hablantes más precisa, basada en la voz, se recomienda el contenedor WhisperX ASR."
},
"accountTabs": {
"about": "Acerca de",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Prompt inicial predeterminado",
"defaultInitialPromptDesc": "Se envía al motor de transcripción para guiar el reconocimiento (por ejemplo, el tema o vocabulario esperado).",
"defaultHotwordsLabel": "Palabras clave predeterminadas",
- "defaultHotwordsDesc": "Palabras separadas por comas para favorecer el reconocimiento de términos específicos del dominio."
+ "defaultHotwordsDesc": "Palabras separadas por comas para favorecer el reconocimiento de términos específicos del dominio.",
+ "contextualSpeakerPromptTitle": "Indicación para el etiquetado contextual de hablantes",
+ "contextualSpeakerPromptDesc": "Guía que sigue el modelo al etiquetar hablantes a partir del contexto de la conversación, utilizada solo para motores de transcripción que separan hablantes sin devolver huellas de voz. La lista de nombres de hablantes guardados del usuario y el formato de salida JSON se añaden automáticamente después de este texto. Déjelo en blanco para usar el valor predeterminado integrado.",
+ "contextualSpeakerPromptPlaceholder": "Déjelo en blanco para usar la guía predeterminada integrada."
},
"apiTokens": {
"activeTokens": "Tokens activos",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "Solo audio de pestaña en esta plataforma — ver ayuda",
"title": "Grabación de Audio",
"videoPreviewLabel": "Vista previa en directo del vídeo capturado",
- "virtualMonitor": "virtual / monitor"
+ "virtualMonitor": "virtual / monitor",
+ "recordingPaused": "En pausa",
+ "recordingFinished": "Grabación finalizada"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "El audio será re-transcrito desde cero. Esto también regenerará el título y resumen basado en la nueva transcripción.",
diff --git a/static/locales/fr.json b/static/locales/fr.json
index 6e97bed1..f1a7103f 100644
--- a/static/locales/fr.json
+++ b/static/locales/fr.json
@@ -107,7 +107,8 @@
"username": "Nom d'Utilisateur",
"signInSecurity": "Connexion et sécurité",
"password": "Mot de passe",
- "savedSuccess": "Paramètres enregistrés"
+ "savedSuccess": "Paramètres enregistrés",
+ "contextualSpeakerLabellingHelp": "Les locuteurs sont identifiés à partir du contexte de la conversation, car votre moteur de transcription ne fournit pas d'empreintes vocales. Cela peut être assez imprécis, selon ce que la conversation révèle sur l'identité des locuteurs et la capacité de votre modèle à les distinguer. Pour la correspondance de locuteurs la plus précise, basée sur la voix, le conteneur WhisperX ASR est recommandé."
},
"accountTabs": {
"about": "À Propos",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Prompt initial par défaut",
"defaultInitialPromptDesc": "Envoyé au moteur de transcription pour orienter la reconnaissance (par exemple le sujet ou le vocabulaire attendu).",
"defaultHotwordsLabel": "Mots-clés par défaut",
- "defaultHotwordsDesc": "Mots séparés par des virgules pour favoriser la reconnaissance de termes spécifiques au domaine."
+ "defaultHotwordsDesc": "Mots séparés par des virgules pour favoriser la reconnaissance de termes spécifiques au domaine.",
+ "contextualSpeakerPromptTitle": "Invite pour l'étiquetage contextuel des locuteurs",
+ "contextualSpeakerPromptDesc": "Instructions que le modèle suit lorsqu'il étiquette les locuteurs à partir du contexte de la conversation, utilisées uniquement pour les moteurs de transcription qui distinguent les locuteurs sans renvoyer d'empreintes vocales. La liste des noms de locuteurs enregistrés par l'utilisateur et le format de sortie JSON sont ajoutés automatiquement après ce texte. Laissez vide pour utiliser la valeur par défaut intégrée.",
+ "contextualSpeakerPromptPlaceholder": "Laissez vide pour utiliser les instructions par défaut intégrées."
},
"apiTokens": {
"activeTokens": "Jetons actifs",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "Audio d'onglet uniquement sur cette plateforme — voir l'aide",
"title": "Enregistrement Audio",
"videoPreviewLabel": "Aperçu en direct de la vidéo capturée",
- "virtualMonitor": "virtuel / monitor"
+ "virtualMonitor": "virtuel / monitor",
+ "recordingPaused": "En pause",
+ "recordingFinished": "Enregistrement terminé"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "L'audio sera re-transcrit à partir de zéro. Cela régénérera également le titre et le résumé basés sur la nouvelle transcription.",
diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.json
index 7e780c5a..ffc45553 100644
--- a/static/locales/pt-BR.json
+++ b/static/locales/pt-BR.json
@@ -107,7 +107,8 @@
"username": "Nome de Usuário",
"signInSecurity": "Acesso e segurança",
"password": "Senha",
- "savedSuccess": "Configurações salvas"
+ "savedSuccess": "Configurações salvas",
+ "contextualSpeakerLabellingHelp": "Os falantes são identificados a partir do contexto da conversa porque o seu mecanismo de transcrição não fornece impressões de voz. Isso pode ser bastante impreciso, dependendo de quanto a conversa revela sobre quem está falando e de quão bem o seu modelo separa os falantes. Para a correspondência de falantes mais precisa, baseada em voz, recomenda-se o contêiner WhisperX ASR."
},
"accountTabs": {
"about": "Sobre",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Prompt inicial padrão",
"defaultInitialPromptDesc": "Enviado ao mecanismo de transcrição para orientar o reconhecimento (por exemplo, o tema ou vocabulário esperado).",
"defaultHotwordsLabel": "Hotwords padrão",
- "defaultHotwordsDesc": "Palavras separadas por vírgulas para favorecer o reconhecimento de termos específicos do domínio."
+ "defaultHotwordsDesc": "Palavras separadas por vírgulas para favorecer o reconhecimento de termos específicos do domínio.",
+ "contextualSpeakerPromptTitle": "Prompt para rotulagem contextual de falantes",
+ "contextualSpeakerPromptDesc": "Orientação que o modelo segue ao rotular falantes a partir do contexto da conversa, usada apenas para mecanismos de transcrição que separam falantes sem retornar impressões de voz. A lista de nomes de falantes salvos do usuário e o formato de saída JSON são adicionados automaticamente após este texto. Deixe em branco para usar o padrão integrado.",
+ "contextualSpeakerPromptPlaceholder": "Deixe em branco para usar a orientação padrão integrada."
},
"apiTokens": {
"activeTokens": "Tokens Ativos",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "Somente áudio da aba nesta plataforma — ver ajuda",
"title": "Gravação de Áudio",
"videoPreviewLabel": "Pré-visualização ao vivo do vídeo capturado",
- "virtualMonitor": "virtual / monitor"
+ "virtualMonitor": "virtual / monitor",
+ "recordingPaused": "Pausado",
+ "recordingFinished": "Gravação concluída"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "O áudio será retranscrito do zero. Isso também regenerará o título e o resumo com base na nova transcrição.",
diff --git a/static/locales/ru.json b/static/locales/ru.json
index c183a6f7..0c8195f3 100644
--- a/static/locales/ru.json
+++ b/static/locales/ru.json
@@ -107,7 +107,8 @@
"username": "Имя пользователя",
"signInSecurity": "Вход и безопасность",
"password": "Пароль",
- "savedSuccess": "Настройки сохранены"
+ "savedSuccess": "Настройки сохранены",
+ "contextualSpeakerLabellingHelp": "Говорящие определяются по контексту разговора, поскольку ваш движок транскрипции не предоставляет голосовые отпечатки. Это может быть довольно неточным в зависимости от того, насколько разговор раскрывает, кто говорит, и насколько хорошо ваша модель разделяет говорящих. Для наиболее точного сопоставления говорящих на основе голоса рекомендуется контейнер WhisperX ASR."
},
"accountTabs": {
"about": "О продукте",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "Начальный промпт по умолчанию",
"defaultInitialPromptDesc": "Отправляется в движок транскрипции для управления распознаванием (например, ожидаемая тема или лексика).",
"defaultHotwordsLabel": "Ключевые слова по умолчанию",
- "defaultHotwordsDesc": "Слова через запятую для улучшения распознавания узкоспециальных терминов."
+ "defaultHotwordsDesc": "Слова через запятую для улучшения распознавания узкоспециальных терминов.",
+ "contextualSpeakerPromptTitle": "Промпт для контекстного определения говорящих",
+ "contextualSpeakerPromptDesc": "Руководство, которому следует модель при определении говорящих по контексту разговора; используется только для движков транскрипции, которые разделяют говорящих, но не возвращают голосовые отпечатки. Список сохранённых имён говорящих пользователя и формат вывода JSON добавляются автоматически после этого текста. Оставьте пустым, чтобы использовать встроенное значение по умолчанию.",
+ "contextualSpeakerPromptPlaceholder": "Оставьте пустым, чтобы использовать встроенное руководство по умолчанию."
},
"apiTokens": {
"activeTokens": "Активные токены",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "На этой платформе доступен только звук вкладки — см. справку",
"title": "Аудиозапись",
"videoPreviewLabel": "Предпросмотр записываемого видео",
- "virtualMonitor": "виртуальный / monitor"
+ "virtualMonitor": "виртуальный / monitor",
+ "recordingPaused": "Приостановлено",
+ "recordingFinished": "Запись завершена"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "Аудио будет транскрибировано заново с нуля. Это также перегенерирует заголовок и резюме на основе новой транскрипции.",
diff --git a/static/locales/zh.json b/static/locales/zh.json
index fa04f8aa..3e1751ca 100644
--- a/static/locales/zh.json
+++ b/static/locales/zh.json
@@ -107,7 +107,8 @@
"username": "用户名",
"signInSecurity": "登录与安全",
"password": "密码",
- "savedSuccess": "设置已保存"
+ "savedSuccess": "设置已保存",
+ "contextualSpeakerLabellingHelp": "由于您的转录引擎不提供声纹,说话人是根据对话上下文进行匹配的。这可能相当不准确,取决于对话在多大程度上透露了谁在说话,以及您的模型区分说话人的效果。若需最准确的基于语音的说话人匹配,建议使用 WhisperX ASR 容器。"
},
"accountTabs": {
"about": "关于",
@@ -314,7 +315,10 @@
"defaultInitialPromptLabel": "默认初始提示",
"defaultInitialPromptDesc": "发送给转录引擎以引导识别(例如预期的主题或词汇)。",
"defaultHotwordsLabel": "默认热词",
- "defaultHotwordsDesc": "用逗号分隔的词语,用于提高对特定领域术语的识别。"
+ "defaultHotwordsDesc": "用逗号分隔的词语,用于提高对特定领域术语的识别。",
+ "contextualSpeakerPromptTitle": "上下文说话人标注提示词",
+ "contextualSpeakerPromptDesc": "模型根据对话上下文标注说话人时所遵循的指导,仅用于在不返回声纹的情况下区分说话人的转录引擎。用户已保存的说话人姓名列表和 JSON 输出格式会自动附加在此文本之后。留空以使用内置默认值。",
+ "contextualSpeakerPromptPlaceholder": "留空以使用内置的默认指导。"
},
"apiTokens": {
"activeTokens": "活跃令牌",
@@ -1328,7 +1332,9 @@
"tabAudioOnlyTooltip": "此平台仅支持标签页音频 — 查看帮助",
"title": "音频录制",
"videoPreviewLabel": "捕获视频的实时预览",
- "virtualMonitor": "虚拟 / monitor"
+ "virtualMonitor": "虚拟 / monitor",
+ "recordingPaused": "已暂停",
+ "recordingFinished": "录音已完成"
},
"reprocessModal": {
"audioReTranscribedFromScratch": "音频将从头重新转录。这也将基于新转录重新生成标题和摘要。",
diff --git a/templates/account.html b/templates/account.html
index 5e4af25a..4f5f3690 100644
--- a/templates/account.html
+++ b/templates/account.html
@@ -1105,7 +1105,7 @@
</div>
{% if contextual_labelling_available and not speaker_embeddings_enabled %}
<div class="flex-shrink-0 -mt-2 mb-4">
- <p class="text-xs text-[var(--text-muted)] leading-snug">
+ <p class="text-xs text-[var(--text-muted)] leading-snug" data-i18n="account.contextualSpeakerLabellingHelp">
Speakers are matched from the conversation context because your transcription engine does not provide voice fingerprints. This can be quite inaccurate, depending on how much the conversation reveals about who is speaking and how well your model separates speakers. For the most accurate, voice-based speaker matching, the WhisperX ASR container is recommended.
</p>
</div>
diff --git a/templates/admin.html b/templates/admin.html
index f1862913..0e6a501b 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -963,16 +963,16 @@
code. It is the trailing (variable) part of a transcript-first
prompt, so editing it does not disturb prefix caching. -->
<div class="mt-6 bg-[var(--bg-tertiary)] p-6 rounded-lg border border-[var(--border-primary)]">
- <h4 class="text-md font-medium text-[var(--text-secondary)] mb-1">Contextual Speaker Labelling Prompt</h4>
+ <h4 class="text-md font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.contextualSpeakerPromptTitle')}</h4>
<p class="text-sm text-[var(--text-muted)] mb-4">
- Guidance the model follows when it labels speakers from the conversation context, used only for transcription engines that diarize without returning voice fingerprints. The list of the user's saved speaker names and the JSON output format are added automatically after this text. Leave blank to use the built-in default.
+ ${t('adminDashboard.contextualSpeakerPromptDesc')}
</p>
<div class="mb-4">
<textarea
v-model="contextualSpeakerPrompt"
rows="5"
class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Leave blank to use the built-in default guidance.">
+ :placeholder="t('adminDashboard.contextualSpeakerPromptPlaceholder')">
</textarea>
</div>
<div class="flex justify-end items-center">
diff --git a/templates/components/recording-view.html b/templates/components/recording-view.html
index 36647884..a2f6b9f6 100644
--- a/templates/components/recording-view.html
+++ b/templates/components/recording-view.html
@@ -56,7 +56,7 @@
<div>
<div class="text-xl md:text-2xl font-mono text-[var(--text-accent)]">${formatTime(recordingTime)}</div>
- <p class="text-xs md:text-sm text-[var(--text-muted)]">${ isRecording ? (isPaused ? 'Paused' : 'Recording in progress...') : 'Recording finished' }</p>
+ <p class="text-xs md:text-sm text-[var(--text-muted)]">${ isRecording ? (isPaused ? t('recording.recordingPaused') : t('recording.recordingInProgress')) : t('recording.recordingFinished') }</p>
<!-- Real-time file size display -->
<div v-if="isRecording && estimatedFileSize > 0" class="mt-1.5">
<p class="text-xs text-[var(--text-muted)]">
@@ -399,15 +399,15 @@
recording without a silent gap. -->
<button v-if="!isPaused" @click="pauseRecording"
class="px-5 md:px-6 py-2.5 md:py-3 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm md:text-base flex items-center">
- <i class="fas fa-pause mr-2"></i>Pause
+ <i class="fas fa-pause mr-2"></i><span v-text="t('recording.pauseRecording')"></span>
</button>
<button v-else @click="resumeRecording"
class="px-5 md:px-6 py-2.5 md:py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 transition-colors text-sm md:text-base flex items-center">
- <i class="fas fa-play mr-2"></i>Resume
+ <i class="fas fa-play mr-2"></i><span v-text="t('recording.resumeRecording')"></span>
</button>
<button @click="stopRecording"
:class="['px-6 md:px-8 py-2.5 md:py-3 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors text-sm md:text-base flex items-center', isPaused ? '' : 'animate-pulse']">
- <i class="fas fa-stop mr-2"></i>Stop Recording
+ <i class="fas fa-stop mr-2"></i><span v-text="t('recording.stopRecording')"></span>
</button>
</div>
<div v-if="!isRecording && audioBlobURL" class="flex flex-col sm:flex-row gap-3 justify-center">