From dc9121b0b6fdbb3b11d07aca4a4df0da7e4595d2 Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Wed, 7 Aug 2024 19:59:45 +0300 Subject: [PATCH] Adding note on PaErrorCode-9999 (#874) --- buzz/widgets/recording_transcriber_widget.py | 1 + docs/docs/faq.md | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/buzz/widgets/recording_transcriber_widget.py b/buzz/widgets/recording_transcriber_widget.py index 68bb7d4e..59dbd1f4 100644 --- a/buzz/widgets/recording_transcriber_widget.py +++ b/buzz/widgets/recording_transcriber_widget.py @@ -230,6 +230,7 @@ class RecordingTranscriberWidget(QWidget): self.device_sample_rate = RecordingTranscriber.get_device_sample_rate( self.selected_device_id ) + logging.debug(f"Device sample rate: {self.device_sample_rate}") self.recording_amplitude_listener = RecordingAmplitudeListener( input_device_index=self.selected_device_id, parent=self diff --git a/docs/docs/faq.md b/docs/docs/faq.md index d2a346f2..793f199d 100644 --- a/docs/docs/faq.md +++ b/docs/docs/faq.md @@ -29,8 +29,16 @@ sidebar_position: 5 When choosing among large models consider the following. "Large" is the first released older model, "Large-V2" is later updated model with better accuracy, for some languages considered the most robust and stable. "Large-V3" is the latest model with the best accuracy in many cases, but some times can hallucinate or invent words that were never in the audio. The only sure way to know what model best suits your needs is to test them all in your language. -4. **How to get GPU acceleration for faster transcription?** +5. **How to get GPU acceleration for faster transcription?** On Linux GPU acceleration is supported out of the box on Nvidia GPUs. If you still get any issues install [CUDA 12](https://developer.nvidia.com/cuda-downloads), [cuBLASS](https://developer.nvidia.com/cublas) and [cuDNN](https://developer.nvidia.com/cudnn). - On Windows see [this note](https://github.com/chidiwilliams/buzz/blob/main/CONTRIBUTING.md#gpu-support) on enabling CUDA GPU support. \ No newline at end of file + On Windows see [this note](https://github.com/chidiwilliams/buzz/blob/main/CONTRIBUTING.md#gpu-support) on enabling CUDA GPU support. + +6. **How to fix `Unanticipated host error[PaErrorCode-9999]`?** + + Check if there are any system settings preventing apps from accessing the microphone. + + On Windows, see if Buzz has permission to use the microphone in Settings -> Privacy -> Microphone. + See method 1 in this video https://www.youtube.com/watch?v=eRcCYgOuSYQ + For method 2 there is no need to uninstall the antivirus, but see if you can temporarily disable it or if there are settings that may prevent Buzz from accessing the microphone. \ No newline at end of file