Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Add documentation for common issues: Mac deployment, speaker diarization, Chinese transcription
Murtaza Nasircdd4e18981cd
diff --git a/docs/faq.md b/docs/faq.mdindex 8b2690b5..e932aaf2 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -34,6 +34,28 @@ Basic Docker knowledge helps but isn't essential. The [quick start guide](gettinYes, Speakr can run on a Raspberry Pi 4 or newer with at least 4GB of RAM. Performance won't match a full server, especially for transcription processing, but it's perfectly usable for personal use. The ARM-compatible Docker images work out of the box. Just be patient with longer processing times for large recordings.+### Can I use the ASR webservice for speaker diarization on Mac?++The optional ASR webservice (`onerahmet/openai-whisper-asr-webservice`) that provides [speaker diarization](features.md#speaker-diarization) has specific requirements on macOS:++**GPU limitation**: GPU passthrough doesn't work on macOS because Docker runs containers within a Linux VM. This is a fundamental Docker limitation on Mac.++**Solution**: Use the standard CPU image instead of the GPU version:+- Use `onerahmet/openai-whisper-asr-webservice:latest` (NOT `:latest-gpu`)+- The `:latest` tag provides both amd64 (Intel) and arm64 (Apple Silicon) architectures+- Processing will be slower without GPU acceleration but fully functional++Example configuration for Mac:+```bash+docker run -d -p 9000:9000 \+ -e ASR_MODEL=base \+ -e ASR_ENGINE=whisperx \+ -e HF_TOKEN=your_huggingface_token \+ onerahmet/openai-whisper-asr-webservice:latest+```++Note: If you don't need speaker identification in your transcriptions, you can use Speakr with the standard Whisper API instead, which doesn't require this additional container.+### How do I backup my Speakr data?Your Speakr data consists of three essential components: the SQLite database in the `instance/` directory, audio files and transcriptions in the `uploads/` directory, and your configuration in the `.env` file. To create a complete backup, stop the container first to ensure database consistency, then backup all three directories:@@ -56,10 +78,14 @@ Transcription accuracy depends on several factors - audio quality, speaker clariWhisper API provides basic transcription - converting speech to text without speaker identification. The [recommended ASR container](getting-started.md#option-b-custom-asr-endpoint-configuration) (`onerahmet/openai-whisper-asr-webservice`) offers advanced features like [speaker diarization](features.md#speaker-diarization), which identifies and labels different speakers in the conversation. Learn to [manage speakers](user-guide/transcripts.md#speaker-identification) after transcription. Diarization is essential for meetings with multiple participants, while Whisper API works fine for single-speaker recordings like dictations or podcasts.+**Note on ASR engines**: For speaker diarization to work properly with the ASR webservice, you must use `ASR_ENGINE=whisperx`, not `faster_whisper`. While faster_whisper provides transcription, it doesn't support speaker identification.+### Can Speakr transcribe languages other than English?Yes, Speakr supports multiple languages through its transcription services. Whisper models handle dozens of languages with varying accuracy - major languages like Spanish, French, German, and Chinese work well, while less common languages may have reduced accuracy. Set your preferred language in [account settings](user-guide/settings.md#language-preferences) or leave it blank for automatic detection. See [language support details](features.md#language-support).+**Important for Chinese transcription**: When using ASR endpoints for Chinese audio, avoid using distil models (e.g., distil-large-v3) as they may incorrectly recognize Chinese as English. Use the full large-v3 model or similar non-distilled models for accurate Chinese transcription.+### How long can my recordings be?There's no hard limit on recording length, but practical considerations apply. Very long recordings (over 2-3 hours) take longer to process, use more API credits, and can make the interface sluggish. The file upload limit defaults to 300MB, which accommodates several hours of compressed audio. For very long content like all-day workshops, consider splitting into logical segments.@@ -114,6 +140,18 @@ Several factors affect transcription speed - file size, API service load, networThis usually means the background processor has stopped or encountered an error. Check the Docker logs for error messages. See the [troubleshooting guide](troubleshooting.md#transcription-never-starts) for details. Monitor processing in [vector store](admin-guide/vector-store.md). Common causes include invalid API keys, exceeded API quotas, or network connectivity issues. Restarting the container often resolves temporary issues. Check your API provider's dashboard for usage limits or billing problems.+### Why are all speakers showing as "UNKNOWN_SPEAKER"?++This is a common issue when speaker diarization isn't configured correctly. Here's how to fix it:++1. **Check ASR_ENGINE**: Ensure you're using `ASR_ENGINE=whisperx` in your ASR container, not `faster_whisper`+2. **Verify ASR_DIARIZE**: While this is set to `true` by default when `USE_ASR_ENDPOINT=true`, explicitly set `ASR_DIARIZE=true` in your .env file+3. **HuggingFace Token**: The ASR container needs a valid `HF_TOKEN` environment variable for downloading diarization models+4. **Docker networking**: If containers are in the same docker-compose, use the container name (e.g., `http://whisper-asr:9000`), not localhost or external IPs+5. **Check logs**: Look for pyannote/VAD messages in your ASR container logs to confirm diarization is active++The ASR service should return speaker labels like "SPEAKER_00", "SPEAKER_01" in the transcription. You can then [identify these speakers](user-guide/transcripts.md#speaker-identification) with real names.+### Why can't I share recordings?[Sharing](user-guide/sharing.md) requires your Speakr instance to be accessible from the internet with HTTPS/SSL encryption. Check [sharing requirements](user-guide/sharing.md#requirements-for-sharing) and [troubleshooting](troubleshooting.md#sharing-links-dont-work). Local installations or non-HTTPS setups cannot generate working share links. The system disables sharing features when these requirements aren't met. To enable sharing, deploy Speakr on a public server with a domain name and SSL certificate.diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.mdindex fa537ab0..6966052b 100644--- a/docs/getting-started/installation.md+++ b/docs/getting-started/installation.md@@ -272,6 +272,8 @@ networks:driver: bridge```+> **Note for Mac users:** GPU passthrough doesn't work on macOS due to Docker's architecture. Use `onerahmet/openai-whisper-asr-webservice:latest` (CPU version) instead of `:latest-gpu` and remove the `deploy` section. The ASR service will use CPU processing, which is slower but fully functional. See the [FAQ](../faq.md#can-i-use-the-asr-webservice-for-speaker-diarization-on-mac) for Mac-specific configuration examples.+When running both services in the same Docker Compose file, containers communicate using service names. In your `.env` file, set `ASR_BASE_URL=http://whisper-asr:9000` using the service name, not localhost or an IP address. This is a common source of confusion but is how Docker networking works.#### Running Services in Separate Docker Compose Filesdiff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex 361017f5..63834d49 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -52,7 +52,9 @@ For recordings with multiple speakers, using the [ASR endpoint with speaker diar### Chinese Transcription Issues-For [Chinese language transcription](features.md#language-support), model selection is critical. See the [FAQ on language support](faq.md#can-speakr-transcribe-languages-other-than-english) for more details. The large-v3 model works best with Chinese content. Smaller models like distil-large-v3 may not output Chinese characters correctly even when the language is set to "zh". If you're getting romanized output instead of Chinese characters, upgrade to the large-v3 model.+For [Chinese language transcription](features.md#language-support), model selection is critical. See the [FAQ on language support](faq.md#can-speakr-transcribe-languages-other-than-english) for more details.++**Important**: Distil models (like distil-large-v3) do not support Chinese transcription properly. Even when you set the language to "zh", these models may recognize Chinese audio as English and produce incorrect output. Always use the full large-v3 model or similar non-distilled models for Chinese content. If you're getting English transcription for Chinese audio or romanized output instead of Chinese characters, switch from a distil model to large-v3.### Summary Language Doesn't Match Preference@@ -101,7 +103,27 @@ After transcription, speakers appear as generic labels (SPEAKER_01, etc.). You m### WhisperX Shows UNKNOWN_SPEAKER-If WhisperX only shows "UNKNOWN_SPEAKER" instead of numbered speakers, ensure you're using the correct ASR_ENGINE setting. Set `ASR_ENGINE=whisperx` in your Docker environment. Also verify that your HF_TOKEN (Hugging Face token) is valid, as it's required for the speaker diarization models.+If WhisperX only shows "UNKNOWN_SPEAKER" instead of numbered speakers (SPEAKER_00, SPEAKER_01, etc.), check these common issues:++1. **Wrong ASR_ENGINE**: You must use `ASR_ENGINE=whisperx` in your ASR container's Docker environment. The `faster_whisper` engine does NOT support speaker diarization, even though it can transcribe audio.++2. **Missing or invalid HF_TOKEN**: The ASR container needs a valid HuggingFace token to download the diarization models. Ensure your `HF_TOKEN` environment variable is set in the ASR container configuration.++3. **ASR_DIARIZE not enabled**: While this should be automatic when `USE_ASR_ENDPOINT=true`, explicitly set `ASR_DIARIZE=true` in your Speakr .env file if speakers aren't being detected.++4. **Docker networking issues**: If using the Speakr and ASR webservice containers in the same docker-compose, containers must communicate via service names (e.g., `http://whisper-asr:9000`), not localhost or external IPs.++Check your ASR container logs for pyannote/VAD messages to confirm diarization models are loading correctly.++### ASR Service on Mac Shows GPU Errors++If you're running the ASR webservice on macOS and getting GPU-related errors or "no matching manifest" errors:++- **Use the CPU image**: Replace `onerahmet/openai-whisper-asr-webservice:latest-gpu` with `onerahmet/openai-whisper-asr-webservice:latest`+- **Remove GPU configuration**: Delete the entire `deploy` section with GPU device reservations from your docker-compose.yml+- **Expect slower processing**: CPU-based transcription works but is significantly slower than GPU acceleration++This is a Docker limitation on macOS - GPU passthrough isn't supported because Docker runs in a Linux VM. See the [FAQ](faq.md#can-i-use-the-asr-webservice-for-speaker-diarization-on-mac) for complete Mac configuration.### Sharing Links Don't Work