Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Bump version to v0.8.6
Murtaza Nasir4056a3929df1
diff --git a/README.md b/README.mdindex c892b364..8652a1d9 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.8.5.1-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.8.6-brightgreen.svg"></a></p><p align="center">@@ -160,7 +160,21 @@ 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.8.5.1)+## Latest Release (v0.8.6)++**Folders & Automation**++- **Folders Organization** - Organize recordings into folders with custom prompts and ASR settings per folder+- **Auto Speaker Labeling** - Automatic speaker identification using voice embedding matching+- **Per-User Auto-Summarization** - User-configurable automatic summary generation+- **Azure OpenAI Connector** - New transcription connector for Azure OpenAI (experimental, community testing welcome)+- **HTTPS Validation** - Clear error messages when attempting to record on non-HTTPS connections++**Improvements** - Legacy ASR code removed (fully migrated to connector architecture), audio codec fallback to MP3, share page click-to-seek, new `READABLE_PUBLIC_LINKS` option for server-rendered transcripts (LLM/scraper accessible)++**Bug Fixes** - PostgreSQL boolean defaults in migrations, folders feature detection, audio player visibility for incognito recordings++### Previous Release (v0.8.5.1)**Incognito Mode Enhancements & Compatibility Fixes**diff --git a/VERSION b/VERSIONindex 8d4f176e..85c3002d 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-v0.8.5.1+v0.8.6diff --git a/docs/admin-guide/system-settings.md b/docs/admin-guide/system-settings.mdindex 59dbb1c7..a7ed9775 100644--- a/docs/admin-guide/system-settings.md+++ b/docs/admin-guide/system-settings.md@@ -113,6 +113,18 @@ Speakr uses separate job queues for transcription and summarization to prevent sJobs are persisted to the database and survive application restarts. If Speakr restarts while jobs are processing, they automatically resume from where they left off.+### Folders Feature++**ENABLE_FOLDERS**: Enable the folders organization feature. When `true`, users can create folders to organize recordings with per-folder custom prompts and ASR settings. Default: `false`.++### Public Share Page Rendering++**READABLE_PUBLIC_LINKS**: When `true`, transcripts on public share pages are server-side rendered in HTML, making them accessible to LLMs, scrapers, and accessibility tools. When `false`, transcripts are rendered client-side via JavaScript. Default: `false`.++### Admin User Creation++**SKIP_EMAIL_DOMAIN_CHECK**: When `true`, bypasses DNS validation of email domains when creating admin users via the setup script. Useful for development or when DNS lookups are restricted. Default: `false`.+### Audio CompressionSpeakr can automatically compress lossless audio uploads (WAV, AIFF) to save storage space. This happens transparently on upload - the original file is replaced with the compressed version.diff --git a/docs/advanced/custom-connectors.md b/docs/advanced/custom-connectors.mdindex 2f371a42..9cd6a6a8 100644--- a/docs/advanced/custom-connectors.md+++ b/docs/advanced/custom-connectors.md@@ -542,4 +542,4 @@ Popular providers we'd love to see connectors for:- AssemblyAI- Google Cloud Speech-to-Text- Amazon Transcribe-- Azure Speech Services+- ~~Azure Speech Services~~ → **Azure OpenAI connector now available (experimental, v0.8.6+)**diff --git a/docs/features.md b/docs/features.mdindex 30422aea..5b5dbc1a 100644--- a/docs/features.md+++ b/docs/features.md@@ -54,6 +54,25 @@ Search across all your recordings using natural language questions instead of ke## Organization and Management+### Folders++Organize recordings into folders for clean, project-based organization. Each recording belongs to exactly one folder (or no folder), providing a simple hierarchical structure alongside the flexible tagging system.++**Folder Features:**++- **Per-Folder Settings** - Each folder can have its own custom AI prompts, default transcription language, and ASR speaker settings+- **Sidebar Selector** - Quick folder dropdown to filter recordings by folder+- **Folder Pills** - Visual indicators showing which folder a recording belongs to+- **Group Folders** - Share folders with groups for automatic access when recordings are added+- **Retention Policies** - Set folder-specific retention periods or protect folder contents from auto-deletion++Folders complement tags rather than replacing them. Use folders for primary organization (by project, client, or meeting type) and tags for cross-cutting categorization (status, topics, follow-ups).++!!! note "Enabling Folders"+ Folders are disabled by default. Administrators must set `enable_folders` to `true` in System Settings or set `ENABLE_FOLDERS=true` in the environment.++See the [Folders Guide](user-guide/folders.md) for detailed usage instructions.+### Bulk OperationsSelect multiple recordings in the sidebar to perform batch operations efficiently. Enter multi-select mode by clicking the checkbox icon or using keyboard shortcuts, then select individual recordings or use Ctrl/Cmd+A to select all visible recordings.@@ -83,6 +102,8 @@ Build and maintain a library of speaker profiles that persist across recordings.**Voice Profile Recognition**: The system builds voice recognition profiles from speaker identifications across multiple recordings. These profiles use 256-dimensional voice embeddings to suggest speaker matches when processing new recordings, making speaker identification faster and more consistent. The voice matching system calculates similarity scores to help identify speakers across recordings, even when audio quality varies. Voice profiles are automatically updated as more recordings are processed, improving recognition accuracy over time.+**Auto Speaker Labeling**: Enable automatic speaker identification in your [account settings](user-guide/settings.md#processing-preferences). When enabled, new recordings are automatically analyzed against your speaker profiles, and matching speakers are labeled without manual intervention. Configure the confidence threshold to balance between more matches (low threshold) and higher accuracy (high threshold). This feature requires WhisperX ASR with speaker embeddings enabled.+**Privacy-First Cleanup**: Voice profiles are automatically managed alongside recording retention policies. When all recordings containing a particular speaker are deleted, the speaker's voice profile is automatically removed during the next scheduled cleanup. This ensures biometric voice data is only retained when actively used, maintaining compliance with data minimization principles. The cleanup process is fully automatic and requires no manual intervention when auto-deletion is enabled.### Custom Promptsdiff --git a/docs/index.md b/docs/index.mdindex f58df755..1297a9e2 100644--- a/docs/index.md+++ b/docs/index.md@@ -6,12 +6,13 @@ Speakr is a powerful self-hosted transcription platform that helps you capture,<img src="assets/images/screenshots/Main view.png" alt="Main Interface" style="border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);"></div>-!!! info "Latest Release: v0.8.5.1 - Incognito Mode Enhancements"- **In-app recording support, default incognito option, and LLM compatibility fixes**+!!! info "Latest Release: v0.8.6 - Folders & Automation"+ **Organize recordings into folders with custom prompts, auto speaker labeling, and per-user auto-summarization**- - **Incognito Mode for In-App Recordings** - The incognito toggle now works for microphone recordings, not just uploads- - **Default Incognito Mode** - New `INCOGNITO_MODE_DEFAULT=true` option to start with incognito enabled- - **LLM Streaming Compatibility** - New `ENABLE_STREAM_OPTIONS=false` for LLM servers with limited OpenAI API support+ - **Folders Organization** - Group recordings into folders with custom prompts and ASR settings per folder+ - **Auto Speaker Labeling** - Automatic speaker identification using voice embedding matching+ - **Per-User Auto-Summarization** - User-configurable automatic summary generation+ - **Azure OpenAI Connector** - Experimental transcription connector (community testing welcome)See the [v0.8.0 release notes](#version-080) for the full connector architecture and REST API features.diff --git a/docs/user-guide/folders.md b/docs/user-guide/folders.mdnew file mode 100644index 00000000..f4734087--- /dev/null+++ b/docs/user-guide/folders.md@@ -0,0 +1,144 @@+# Folders++Folders provide a simple way to organize your recordings into logical groups. Unlike tags which can be applied multiple times to categorize content, each recording belongs to exactly one folder (or no folder). Think of folders like directories on your computer - a clean, hierarchical way to keep related recordings together.++## Enabling Folders++Folders are disabled by default. An administrator must enable the feature before users can create and use folders.++**For Administrators:**++1. Go to Admin Panel → System Settings+2. Find the `enable_folders` setting and set it to `true`+3. Save changes++Or set the environment variable:+```bash+ENABLE_FOLDERS=true+```++Once enabled, all users will see folder management options in their Account Settings and folder selectors throughout the interface.++## Creating Folders++Access folder management from **Account Settings → Folders** tab.++Click **Create Folder** to add a new folder. Each folder has:++- **Name** - A short, descriptive name (required)+- **Color** - Visual identifier shown on folder pills and in the sidebar++### Folder Settings++Each folder can have custom settings that apply to recordings placed in it:++| Setting | Description |+|---------|-------------|+| **Custom Prompt** | AI summarization instructions specific to this folder |+| **Default Language** | Transcription language for new recordings |+| **Min/Max Speakers** | Speaker count hints for ASR diarization |+| **Retention Days** | Override global retention for recordings in this folder |+| **Protection** | Exempt folder contents from auto-deletion |++These settings work like tag settings - when you add a recording to a folder, the folder's custom prompt and ASR settings are applied during processing.++## Using Folders++### Sidebar Folder Selector++The sidebar includes a folder dropdown at the top. Use it to:++- **Filter by folder** - Select a folder to show only recordings in that folder+- **View all recordings** - Select "All Folders" to see everything+- **View unfiled** - Select "No Folder" to see recordings not in any folder++### Moving Recordings to Folders++There are several ways to assign recordings to folders:++1. **During upload** - Select a folder before uploading+2. **From recording detail** - Use the folder selector in the recording header+3. **Bulk operations** - Select multiple recordings and use the folder action++### Folder Pills++Recordings display a small colored pill showing their folder name. This appears in:++- The sidebar recording list+- The recording detail header+- Search results++Click the pill to quickly filter to that folder.++### Title Bar Icon++When viewing a recording that's in a folder, a folder icon appears in the title bar next to the recording title. Click it to see folder details or change the folder assignment.++## Group Folders++If your organization uses groups, folders can be group-scoped:++- **Personal folders** - Visible only to you+- **Group folders** - Shared with all group members++Group folders work like group tags with auto-sharing:++| Setting | Description |+|---------|-------------|+| **Auto Share on Apply** | Automatically share recordings with group members when moved to this folder |+| **Share with Group Lead** | Also share with group administrators |++When you move a recording to a group folder with auto-share enabled, all group members receive access automatically.++## Folders vs Tags++Both folders and tags help organize recordings, but they serve different purposes:++| Aspect | Folders | Tags |+|--------|---------|------|+| **Assignment** | One folder per recording | Multiple tags per recording |+| **Purpose** | Primary organization | Categorization and filtering |+| **Hierarchy** | Flat list | Flat list |+| **Settings** | Custom prompt, ASR, retention | Custom prompt, ASR, retention |+| **Visual** | Pill badge, sidebar filter | Colored badges |++**Use folders for:** Project-based organization, client separation, meeting types++**Use tags for:** Cross-cutting concerns, status tracking, topic categorization++You can use both together - put a recording in the "Client A" folder and tag it with "Action Items" and "Follow-up Needed".++## Best Practices++### Naming Conventions++Choose clear, consistent folder names:++- **By project:** "Website Redesign", "Q1 Planning", "Product Launch"+- **By client:** "Acme Corp", "Beta Inc", "Gamma LLC"+- **By type:** "Team Standups", "Client Calls", "Interviews"++### Folder Prompts++Use folder-specific prompts for consistent summaries:++```+For client meetings, create a summary with:+- Discussion topics+- Client requests and concerns+- Commitments made+- Next steps with owners+```++### Retention Strategies++Set folder-level retention to match content needs:++- **Active projects:** No retention limit+- **Completed projects:** 90 days after project close+- **Routine meetings:** 30 days+- **Compliance recordings:** Use protection flag++---++Next: [Tags](settings.md#tag-management-tab) →diff --git a/docs/user-guide/index.md b/docs/user-guide/index.mdindex 654335da..d0303232 100644--- a/docs/user-guide/index.md+++ b/docs/user-guide/index.md@@ -53,6 +53,13 @@ Welcome to the Speakr User Guide! This documentation will help you master every<a href="groups" class="card-link">Collaborate with Groups →</a></div>+ <div class="guide-card">+ <div class="card-icon">📁</div>+ <h3>Folders</h3>+ <p>Organize recordings into folders with per-folder prompts, ASR settings, and retention policies.</p>+ <a href="folders" class="card-link">Organize with Folders →</a>+ </div>+<div class="guide-card"><div class="card-icon">⚙️</div><h3>Account Settings</h3>diff --git a/docs/user-guide/settings.md b/docs/user-guide/settings.mdindex 784fa0b8..5f3a775f 100644--- a/docs/user-guide/settings.md+++ b/docs/user-guide/settings.md@@ -24,6 +24,29 @@ The right side displays your recording metrics at a glance. You'll see your totaYour username and email address appear here as read-only fields. The email serves as your login credential and cannot be changed without administrator assistance.+### Processing Preferences++Control how your recordings are automatically processed:++#### Auto-Summarization++The **Auto-Summarization** toggle controls whether summaries are automatically generated after transcription completes. When enabled (the default), every recording receives an AI-generated summary using your custom prompt or the system default. Disable this if you prefer to manually trigger summarization or if you only need transcripts.++#### Auto Speaker Labeling++When you have speaker voice profiles with embeddings (from WhisperX ASR), the **Auto Speaker Labeling** feature can automatically identify and label speakers in new recordings.++- **Enable/Disable** - Toggle automatic speaker identification+- **Confidence Threshold** - Choose how strict the matching should be:+ - **Low** - More matches, but may have false positives+ - **Medium** - Balanced accuracy (recommended)+ - **High** - Fewer matches, but higher confidence++Auto speaker labeling works by comparing voice embeddings from the new recording against your saved speaker profiles. When a match exceeds your confidence threshold, the speaker is automatically labeled with the known name.++!!! tip "Building Voice Profiles"+ Auto speaker labeling requires voice profiles with embeddings. These are created when you identify speakers in recordings processed with WhisperX ASR (with `ASR_RETURN_SPEAKER_EMBEDDINGS=true`). The more recordings you identify a speaker in, the better the matching becomes.+### Account ActionsThe account actions section provides quick access to essential functions. The prominent "Go to Recordings" button takes you directly to your recording library. The "Change Password" button opens a secure dialog for updating your credentials. The "Manage Speakers" link provides a shortcut to speaker profile management, though this functionality is also accessible via its dedicated tab.diff --git a/mkdocs.yml b/mkdocs.ymlindex 00763d93..af748c8b 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -165,6 +165,7 @@ nav:- Transcript Templates: user-guide/transcript-templates.md- Inquire Mode: user-guide/inquire-mode.md- Sharing Recordings: user-guide/sharing.md+ - Folders: user-guide/folders.md- Account Settings: user-guide/settings.md- API Tokens: user-guide/api-tokens.md- API Reference: user-guide/api-reference.mddiff --git a/src/api/recordings.py b/src/api/recordings.pyindex 57ff492b..6df7b842 100644--- a/src/api/recordings.py+++ b/src/api/recordings.py@@ -2337,7 +2337,8 @@ def upload_incognito():current_app.logger.info(f"[Incognito] Temp file saved: {temp_filepath}")# Get optional parameters- language = request.form.get('language', '') or None+ # Note: Empty string '' means auto-detect, don't convert to None+ language = request.form.get('language', '')min_speakers = request.form.get('min_speakers')max_speakers = request.form.get('max_speakers')auto_summarize = request.form.get('auto_summarize', 'false').lower() == 'true'diff --git a/templates/account.html b/templates/account.htmlindex 7a9565b7..94539580 100644--- a/templates/account.html+++ b/templates/account.html@@ -531,8 +531,30 @@</div><div><label for="transcription_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.transcriptionLanguage">Transcription Language</label>- <input type="text" name="transcription_language" id="transcription_language" value="{{ current_user.transcription_language or '' }}" placeholder="e.g., en, es, zh (ISO 639-1 code)" class="mt-1 block w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">- <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="account.leaveBlankForAutoDetect">Leave blank for auto-detection by transcription service.</p>+ <select name="transcription_language" id="transcription_language" class="mt-1 block w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)]">+ <option value="" {% if not current_user.transcription_language %}selected{% endif %}>Auto-detect</option>+ <option value="en" {% if current_user.transcription_language == 'en' %}selected{% endif %}>English</option>+ <option value="es" {% if current_user.transcription_language == 'es' %}selected{% endif %}>Spanish</option>+ <option value="fr" {% if current_user.transcription_language == 'fr' %}selected{% endif %}>French</option>+ <option value="de" {% if current_user.transcription_language == 'de' %}selected{% endif %}>German</option>+ <option value="it" {% if current_user.transcription_language == 'it' %}selected{% endif %}>Italian</option>+ <option value="pt" {% if current_user.transcription_language == 'pt' %}selected{% endif %}>Portuguese</option>+ <option value="nl" {% if current_user.transcription_language == 'nl' %}selected{% endif %}>Dutch</option>+ <option value="ru" {% if current_user.transcription_language == 'ru' %}selected{% endif %}>Russian</option>+ <option value="zh" {% if current_user.transcription_language == 'zh' %}selected{% endif %}>Chinese</option>+ <option value="ja" {% if current_user.transcription_language == 'ja' %}selected{% endif %}>Japanese</option>+ <option value="ko" {% if current_user.transcription_language == 'ko' %}selected{% endif %}>Korean</option>+ <option value="ar" {% if current_user.transcription_language == 'ar' %}selected{% endif %}>Arabic</option>+ <option value="hi" {% if current_user.transcription_language == 'hi' %}selected{% endif %}>Hindi</option>+ <option value="pl" {% if current_user.transcription_language == 'pl' %}selected{% endif %}>Polish</option>+ <option value="uk" {% if current_user.transcription_language == 'uk' %}selected{% endif %}>Ukrainian</option>+ <option value="vi" {% if current_user.transcription_language == 'vi' %}selected{% endif %}>Vietnamese</option>+ <option value="th" {% if current_user.transcription_language == 'th' %}selected{% endif %}>Thai</option>+ <option value="tr" {% if current_user.transcription_language == 'tr' %}selected{% endif %}>Turkish</option>+ <option value="id" {% if current_user.transcription_language == 'id' %}selected{% endif %}>Indonesian</option>+ <option value="sv" {% if current_user.transcription_language == 'sv' %}selected{% endif %}>Swedish</option>+ </select>+ <p class="text-xs text-[var(--text-light)] mt-1" data-i18n="account.leaveBlankForAutoDetect">Select auto-detect to let the transcription service determine the language.</p></div><div><label for="output_language" class="block text-sm font-medium text-[var(--text-muted)]" data-i18n="account.preferredOutputLanguage">Preferred Output Language</label>