Python入門トップページ


目次

  1. 仮想環境を構築し,watchdog をインストールする
  2. Watchdog でフォルダを監視する
  3. 新しいファイルを検知する
  4. 検知した新しいファイルを待ち行列フォルダに移動する
  5. 文字起こし処理用のワーカープログラムのひな形を作成する
  6. ワーカープログラムを常駐化する
  7. フォルダ監視とワーカープログラムでパイプライン処理する
  8. 処理用フォルダを設置してそこで処理を行う
  9. ファイルサイズの変化を監視する
  10. サイズの大きなファイルのコピーに対応する
  11. タイムスタンプを表示する
  12. Subprocess で外部コマンドを起動する
  13. WhisperX の設定を行う
  14. ワーカープログラムで音声データからの文字起こしを実行する
  15. 文字起こし結果を完了用フォルダに移動する
  16. ログを保存し例外を処理する
  17. サブフォルダに結果を格納する
  18. Ollama をインストールする
  19. Python から Ollama にプロンプトを送る
  20. Ollama 処理を関数化する
  21. 文字起こしデータから議事録を作成する
  22. サイズの大きなテキストファイルにも対応する
  23. ワーカープログラムで文字起こし結果から議事録を生成する
  24. 議事録をマークダウンファイルに出力する
  25. 文字コードを強制的に指定する

フォルダ監視により,音声ファイルから文字起こしと議事録生成を自動化しよう

WhisperX の設定を行う

このページでは NVIDIA の GPU が搭載された Windows PC に WhisperX をインストールする手順を概観します.なお,WhisperX のインストールの詳細についてはこちらを参照してください.

まず,次のコマンドで GPU の情報を確認します.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> nvidia-smi ⏎
Mon Nov  2 17:06:31 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 610.91                 KMD Version: 610.91        CUDA UMD Version: 13.3     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060 ...  WDDM  |   00000000:01:00.0 Off |                  N/A |
| N/A   44C    P0             18W /  135W |       0MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog

次に WhisperX をインストールします.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip install whisperx --no-deps ⏎
Collecting whisperx
  Using cached whisperx-3.8.6-py3-none-any.whl.metadata (16 kB)
Using cached whisperx-3.8.6-py3-none-any.whl (16.5 MB)
Installing collected packages: whisperx
Successfully installed whisperx-3.8.6
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

話者分離を行うために huggingface-hub をインストールします.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip install "huggingface-hub<1.0" ⏎
Collecting huggingface-hub<1.0
  Using cached huggingface_hub-0.36.2-py3-none-any.whl.metadata (15 kB)
Collecting filelock (from huggingface-hub<1.0)
  Downloading filelock-4.2.6-py3-none-any.whl.metadata (2.0 kB)
Collecting fsspec>=2023.5.0 (from huggingface-hub<1.0)
  Downloading fsspec-2026.9.0-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: packaging>=20.9 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from huggingface-hub<1.0) (26.3)
Collecting pyyaml>=5.1 (from huggingface-hub<1.0)
  Downloading pyyaml-6.0.3-cp313-cp313-win_amd64.whl.metadata (2.4 kB)
Collecting requests (from huggingface-hub<1.0)
  Using cached requests-2.34.2-py3-none-any.whl.metadata (4.8 kB)
Collecting tqdm>=4.42.1 (from huggingface-hub<1.0)
  Downloading tqdm-4.70.1-py3-none-any.whl.metadata (57 kB)
Collecting typing-extensions>=3.7.4.3 (from huggingface-hub<1.0)
  Downloading typing_extensions-4.16.0-py3-none-any.whl.metadata (3.3 kB)
Collecting colorama (from tqdm>=4.42.1->huggingface-hub<1.0)
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting charset_normalizer<4,>=2 (from requests->huggingface-hub<1.0)
  Downloading charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl.metadata (47 kB)
Collecting idna<4,>=2.5 (from requests->huggingface-hub<1.0)
  Downloading idna-3.20-py3-none-any.whl.metadata (7.2 kB)
Collecting urllib3<3,>=1.26 (from requests->huggingface-hub<1.0)
  Downloading urllib3-2.8.0-py3-none-any.whl.metadata (7.4 kB)
Collecting certifi>=2023.5.7 (from requests->huggingface-hub<1.0)
  Downloading certifi-2026.10.23-py3-none-any.whl.metadata (2.5 kB)
Using cached huggingface_hub-0.36.2-py3-none-any.whl (566 kB)
Downloading fsspec-2026.9.0-py3-none-any.whl (221 kB)
Downloading pyyaml-6.0.3-cp313-cp313-win_amd64.whl (154 kB)
Downloading tqdm-4.70.1-py3-none-any.whl (80 kB)
Downloading typing_extensions-4.16.0-py3-none-any.whl (45 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Downloading filelock-4.2.6-py3-none-any.whl (164 kB)
Using cached requests-2.34.2-py3-none-any.whl (73 kB)
Downloading charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl (206 kB)
Downloading idna-3.20-py3-none-any.whl (69 kB)
Downloading urllib3-2.8.0-py3-none-any.whl (135 kB)
Downloading certifi-2026.10.23-py3-none-any.whl (135 kB)
Installing collected packages: urllib3, typing-extensions, pyyaml, idna, fsspec, filelock, colorama, charset_normalizer, certifi, tqdm, requests, huggingface-hub
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
whisperx 3.8.6 requires ctranslate2>=4.5.0, which is not installed.
whisperx 3.8.6 requires faster-whisper>=1.2.0, which is not installed.
whisperx 3.8.6 requires nltk>=3.9.1, which is not installed.
whisperx 3.8.6 requires numpy>=2.1.0, which is not installed.
whisperx 3.8.6 requires omegaconf>=2.3.0, which is not installed.
whisperx 3.8.6 requires pandas>=2.2.3, which is not installed.
whisperx 3.8.6 requires pyannote-audio>=4.0.0, which is not installed.
whisperx 3.8.6 requires torch~=2.8.0, which is not installed.
whisperx 3.8.6 requires torchaudio~=2.8.0, which is not installed.
whisperx 3.8.6 requires torchcodec<0.8.0,>=0.6.0; (sys_platform == "linux" and platform_machine == "x86_64") or sys_platform == "darwin" or sys_platform == "win32", which is not installed.
whisperx 3.8.6 requires torchvision~=0.23.0, which is not installed.
whisperx 3.8.6 requires transformers>=4.48.0, which is not installed.
Successfully installed certifi-2026.10.23 charset_normalizer-3.5.2 colorama-0.4.6 filelock-4.2.6 fsspec-2026.9.0 huggingface-hub-0.36.2 idna-3.20 pyyaml-6.0.3 requests-2.34.2 tqdm-4.70.1 typing-extensions-4.16.0 urllib3-2.8.0
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

続いて,torch 以外の関連パッケージをインストールします.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip install ctranslate2 faster-whisper transformers pandas nltk omegaconf pyannote-audio torchcodec ⏎
Collecting ctranslate2
  Downloading ctranslate2-4.8.4-cp313-cp313-win_amd64.whl.metadata (11 kB)
Collecting faster-whisper
  Using cached faster_whisper-1.2.1-py3-none-any.whl.metadata (16 kB)
Collecting transformers
  Downloading transformers-5.22.1-py3-none-any.whl.metadata (31 kB)
Collecting pandas
  Downloading pandas-3.1.0-cp313-cp313-win_amd64.whl.metadata (18 kB)
Collecting nltk
  Downloading nltk-3.10.4-py3-none-any.whl.metadata (5.0 kB)
Collecting omegaconf
  Downloading omegaconf-2.4.0-py3-none-any.whl.metadata (4.9 kB)
Collecting pyannote-audio
  Downloading pyannote_audio-4.0.7-py3-none-any.whl.metadata (13 kB)
Collecting torchcodec
  Downloading torchcodec-0.17.0-cp313-cp313-win_amd64.whl.metadata (9.9 kB)
Collecting numpy (from ctranslate2)
  Downloading numpy-2.5.4-cp313-cp313-win_amd64.whl.metadata (6.6 kB)
Requirement already satisfied: pyyaml<7,>=5.3 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from ctranslate2) (6.0.3)
Requirement already satisfied: huggingface-hub>=0.21 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from faster-whisper) (0.36.2)
Collecting tokenizers<1,>=0.13 (from faster-whisper)
  Downloading tokenizers-0.23.3-cp310-abi3-win_amd64.whl.metadata (10 kB)
Collecting onnxruntime<2,>=1.14 (from faster-whisper)
  Downloading onnxruntime-1.31.1-cp313-cp313-win_amd64.whl.metadata (6.1 kB)
Collecting av>=11 (from faster-whisper)
  Downloading av-19.0.2-cp312-abi3-win_amd64.whl.metadata (5.1 kB)
Requirement already satisfied: tqdm in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from faster-whisper) (4.70.1)
Collecting flatbuffers (from onnxruntime<2,>=1.14->faster-whisper)
  Using cached flatbuffers-25.12.19-py2.py3-none-any.whl.metadata (1.0 kB)
Requirement already satisfied: packaging in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from onnxruntime<2,>=1.14->faster-whisper) (26.3)
Collecting protobuf>=4.25.8 (from onnxruntime<2,>=1.14->faster-whisper)
  Downloading protobuf-7.36.2-cp310-abi3-win_amd64.whl.metadata (595 bytes)
Requirement already satisfied: filelock in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from huggingface-hub>=0.21->faster-whisper) (4.2.6)
Requirement already satisfied: fsspec>=2023.5.0 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from huggingface-hub>=0.21->faster-whisper) (2026.9.0)
Requirement already satisfied: requests in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from huggingface-hub>=0.21->faster-whisper) (2.34.2)
Requirement already satisfied: typing-extensions>=3.7.4.3 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from huggingface-hub>=0.21->faster-whisper) (4.16.0)
Collecting huggingface-hub>=0.21 (from faster-whisper)
  Downloading huggingface_hub-2.4.0-py3-none-any.whl.metadata (16 kB)
Collecting regex>=2025.10.22 (from transformers)
  Downloading regex-2026.9.29-cp313-cp313-win_amd64.whl.metadata (41 kB)
Collecting typer (from transformers)
  Downloading typer-0.27.3-py3-none-any.whl.metadata (16 kB)
Collecting safetensors>=0.8.0 (from transformers)
  Downloading safetensors-0.8.0-cp310-abi3-win_amd64.whl.metadata (4.2 kB)
Collecting click<9.0.0,>=8.4.2 (from huggingface-hub>=0.21->faster-whisper)
  Downloading click-8.5.0-py3-none-any.whl.metadata (2.6 kB)
Collecting hf-xet<2.0.0,>=1.6.0 (from huggingface-hub>=0.21->faster-whisper)
  Downloading hf_xet-1.8.0-cp38-abi3-win_amd64.whl.metadata (4.9 kB)
Collecting httpx2<3,>=2.0.0 (from huggingface-hub>=0.21->faster-whisper)
  Downloading httpx2-2.16.0-py3-none-any.whl.metadata (10 kB)
Collecting anyio>=4.10 (from httpx2<3,>=2.0.0->huggingface-hub>=0.21->faster-whisper)
  Downloading anyio-4.16.0-py3-none-any.whl.metadata (4.7 kB)
Collecting httpcore2==2.16.0 (from httpx2<3,>=2.0.0->huggingface-hub>=0.21->faster-whisper)
  Downloading httpcore2-2.16.0-py3-none-any.whl.metadata (27 kB)
Requirement already satisfied: idna>=3.18 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from httpx2<3,>=2.0.0->huggingface-hub>=0.21->faster-whisper) (3.20)
Collecting truststore>=0.10 (from httpx2<3,>=2.0.0->huggingface-hub>=0.21->faster-whisper)
  Downloading truststore-0.10.5-py3-none-any.whl.metadata (4.5 kB)
Collecting h11>=0.16 (from httpcore2==2.16.0->httpx2<3,>=2.0.0->huggingface-hub>=0.21->faster-whisper)
  Using cached h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
Collecting python-dateutil>=2.9.0 (from pandas)
  Downloading python_dateutil-4.0.0-py3-none-any.whl.metadata (7.3 kB)
Collecting tzdata (from pandas)
  Downloading tzdata-2026.6-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting defusedxml (from nltk)
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl.metadata (32 kB)
Collecting joblib (from nltk)
  Downloading joblib-1.6.0-py3-none-any.whl.metadata (6.5 kB)
Collecting asteroid-filterbanks>=0.4.0 (from pyannote-audio)
  Using cached asteroid_filterbanks-0.4.0-py3-none-any.whl.metadata (3.3 kB)
Collecting einops>=0.8.1 (from pyannote-audio)
  Using cached einops-0.8.2-py3-none-any.whl.metadata (13 kB)
Collecting lightning>=2.4 (from pyannote-audio)
  Downloading lightning-2.6.6-py3-none-any.whl.metadata (45 kB)
Collecting matplotlib>=3.10.0 (from pyannote-audio)
  Downloading matplotlib-3.11.2-cp313-cp313-win_amd64.whl.metadata (80 kB)
Collecting opentelemetry-api>=1.34.0 (from pyannote-audio)
  Downloading opentelemetry_api-1.45.2-py3-none-any.whl.metadata (1.4 kB)
Collecting opentelemetry-exporter-otlp>=1.34.0 (from pyannote-audio)
  Downloading opentelemetry_exporter_otlp-1.45.2-py3-none-any.whl.metadata (2.4 kB)
Collecting opentelemetry-sdk>=1.34.0 (from pyannote-audio)
  Downloading opentelemetry_sdk-1.45.2-py3-none-any.whl.metadata (1.6 kB)
Collecting pyannote-core>=6.0.1 (from pyannote-audio)
  Downloading pyannote_core-6.1.0-py3-none-any.whl.metadata (2.1 kB)
Collecting pyannote-database>=6.1.1 (from pyannote-audio)
  Using cached pyannote_database-6.1.1-py3-none-any.whl.metadata (30 kB)
Collecting pyannote-metrics>=4.0.0 (from pyannote-audio)
  Downloading pyannote_metrics-4.2.0-py3-none-any.whl.metadata (2.5 kB)
Collecting pyannote-pipeline>=4.0.0 (from pyannote-audio)
  Downloading pyannote_pipeline-4.1.0-py3-none-any.whl.metadata (6.4 kB)
Collecting pyannoteai-sdk>=0.3.0 (from pyannote-audio)
  Using cached pyannoteai_sdk-0.4.0-py3-none-any.whl.metadata (2.4 kB)
Collecting pytorch-metric-learning>=2.8.1 (from pyannote-audio)
  Downloading pytorch_metric_learning-3.0.1-py3-none-any.whl.metadata (5.7 kB)
Collecting rich>=13.9.4 (from pyannote-audio)
  Using cached rich-15.0.0-py3-none-any.whl.metadata (18 kB)
Collecting torch-audiomentations>=0.12.0 (from pyannote-audio)
  Using cached torch_audiomentations-0.12.0-py3-none-any.whl.metadata (15 kB)
Collecting torch>=2.8.0 (from pyannote-audio)
  Downloading torch-2.15.0-cp313-cp313-win_amd64.whl.metadata (36 kB)
Collecting torchaudio>=2.8.0 (from pyannote-audio)
  Downloading torchaudio-2.11.1-py3-none-win_amd64.whl.metadata (7.5 kB)
Collecting torchmetrics>=1.6.1 (from pyannote-audio)
  Using cached torchmetrics-1.9.0-py3-none-any.whl.metadata (23 kB)
Collecting lightning-utilities<2.0,>=0.10.0 (from lightning>=2.4->pyannote-audio)
  Using cached lightning_utilities-0.15.3-py3-none-any.whl.metadata (5.5 kB)
Collecting pytorch-lightning (from lightning>=2.4->pyannote-audio)
  Downloading pytorch_lightning-2.6.6-py3-none-any.whl.metadata (21 kB)
Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading aiohttp-3.14.5-cp313-cp313-win_amd64.whl.metadata (8.5 kB)
Requirement already satisfied: setuptools>=77.0.3 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from torch>=2.8.0->pyannote-audio) (84.2.1)
Collecting sympy>=1.13.3 (from torch>=2.8.0->pyannote-audio)
  Using cached sympy-1.14.0-py3-none-any.whl.metadata (12 kB)
Collecting networkx>=2.5.1 (from torch>=2.8.0->pyannote-audio)
  Downloading networkx-3.7-py3-none-any.whl.metadata (6.7 kB)
Collecting jinja2 (from torch>=2.8.0->pyannote-audio)
  Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Requirement already satisfied: colorama in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from tqdm->faster-whisper) (0.4.6)
Collecting aiohappyeyeballs>=2.5.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading aiohappyeyeballs-2.7.1-py3-none-any.whl.metadata (5.9 kB)
Collecting aiosignal>=1.4.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Using cached aiosignal-1.4.0-py3-none-any.whl.metadata (3.7 kB)
Collecting attrs>=17.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Using cached attrs-26.1.0-py3-none-any.whl.metadata (8.8 kB)
Collecting frozenlist>=1.1.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading frozenlist-1.8.0-cp313-cp313-win_amd64.whl.metadata (21 kB)
Collecting multidict<8.0,>=4.5 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading multidict-7.2.1-cp313-cp313-win_amd64.whl.metadata (6.3 kB)
Collecting propcache>=0.2.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading propcache-0.5.4-cp313-cp313-win_amd64.whl.metadata (25 kB)
Collecting yarl<2.0,>=1.25.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]<2028.0,>=2022.5.0->lightning>=2.4->pyannote-audio)
  Downloading yarl-1.25.1-cp313-cp313-win_amd64.whl.metadata (115 kB)
Collecting contourpy>=1.0.1 (from matplotlib>=3.10.0->pyannote-audio)
  Downloading contourpy-1.4.0-cp313-cp313-win_amd64.whl.metadata (3.8 kB)
Collecting cycler>=0.10 (from matplotlib>=3.10.0->pyannote-audio)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.28.2 (from matplotlib>=3.10.0->pyannote-audio)
  Downloading fonttools-4.68.0-cp313-cp313-win_amd64.whl.metadata (142 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib>=3.10.0->pyannote-audio)
  Downloading kiwisolver-1.5.1-cp313-cp313-win_amd64.whl.metadata (5.2 kB)
Collecting pillow>=9 (from matplotlib>=3.10.0->pyannote-audio)
  Downloading pillow-13.0.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting pyparsing>=3 (from matplotlib>=3.10.0->pyannote-audio)
  Downloading pyparsing-3.3.3-py3-none-any.whl.metadata (5.9 kB)
Collecting opentelemetry-exporter-otlp-proto-grpc==1.45.2 (from opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_exporter_otlp_proto_grpc-1.45.2-py3-none-any.whl.metadata (2.6 kB)
Collecting opentelemetry-exporter-otlp-proto-http==1.45.2 (from opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_exporter_otlp_proto_http-1.45.2-py3-none-any.whl.metadata (3.0 kB)
Collecting googleapis-common-protos~=1.57 (from opentelemetry-exporter-otlp-proto-grpc==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading googleapis_common_protos-1.76.0-py3-none-any.whl.metadata (8.5 kB)
Collecting grpcio<2.0.0,>=1.66.2 (from opentelemetry-exporter-otlp-proto-grpc==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading grpcio-1.85.1-cp313-cp313-win_amd64.whl.metadata (3.9 kB)
Collecting opentelemetry-exporter-otlp-common==0.66b2 (from opentelemetry-exporter-otlp-proto-grpc==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_exporter_otlp_common-0.66b2-py3-none-any.whl.metadata (1.9 kB)
Collecting opentelemetry-exporter-otlp-proto-common==1.45.2 (from opentelemetry-exporter-otlp-proto-grpc==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_exporter_otlp_proto_common-1.45.2-py3-none-any.whl.metadata (1.8 kB)
Collecting opentelemetry-proto==1.45.2 (from opentelemetry-exporter-otlp-proto-grpc==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_proto-1.45.2-py3-none-any.whl.metadata (2.3 kB)
Collecting opentelemetry-exporter-http-transport==0.66b2 (from opentelemetry-exporter-http-transport[requests]==0.66b2->opentelemetry-exporter-otlp-proto-http==1.45.2->opentelemetry-exporter-otlp>=1.34.0->pyannote-audio)
  Downloading opentelemetry_exporter_http_transport-0.66b2-py3-none-any.whl.metadata (2.3 kB)
Collecting opentelemetry-semantic-conventions==0.66b2 (from opentelemetry-sdk>=1.34.0->pyannote-audio)
  Downloading opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl.metadata (2.4 kB)
Requirement already satisfied: charset_normalizer<4,>=2 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from requests->huggingface-hub>=0.21->faster-whisper) (3.5.2)
Requirement already satisfied: urllib3<3,>=1.26 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from requests->huggingface-hub>=0.21->faster-whisper) (2.8.0)
Requirement already satisfied: certifi>=2023.5.7 in C:\Users\rinsaka\anaconda3\envs\py313watchdog\Lib\site-packages (from requests->huggingface-hub>=0.21->faster-whisper) (2026.10.23)
Collecting sortedcontainers>=2.4.0 (from pyannote-core>=6.0.1->pyannote-audio)
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Collecting scikit-learn>=1.6.1 (from pyannote-metrics>=4.0.0->pyannote-audio)
  Downloading scikit_learn-1.9.1-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting scipy>=1.15.1 (from pyannote-metrics>=4.0.0->pyannote-audio)
  Downloading scipy-1.18.1-cp313-cp313-win_amd64.whl.metadata (61 kB)
Collecting optuna>=5.0.0 (from pyannote-pipeline>=4.0.0->pyannote-audio)
  Downloading optuna-5.0.0-py3-none-any.whl.metadata (14 kB)
Collecting alembic>=1.5.0 (from optuna>=5.0.0->pyannote-pipeline>=4.0.0->pyannote-audio)
  Downloading alembic-1.20.1-py3-none-any.whl.metadata (7.3 kB)
Collecting colorlog (from optuna>=5.0.0->pyannote-pipeline>=4.0.0->pyannote-audio)
  Downloading colorlog-6.12.0-py3-none-any.whl.metadata (11 kB)
Collecting sqlalchemy>=1.4.2 (from optuna>=5.0.0->pyannote-pipeline>=4.0.0->pyannote-audio)
  Downloading sqlalchemy-2.1.6-cp313-cp313-win_amd64.whl.metadata (9.9 kB)
Collecting Mako (from alembic>=1.5.0->optuna>=5.0.0->pyannote-pipeline>=4.0.0->pyannote-audio)
  Downloading mako-1.4.3-py3-none-any.whl.metadata (2.9 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=13.9.4->pyannote-audio)
  Using cached markdown_it_py-4.2.0-py3-none-any.whl.metadata (7.4 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich>=13.9.4->pyannote-audio)
  Downloading pygments-2.21.0-py3-none-any.whl.metadata (2.5 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=13.9.4->pyannote-audio)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting narwhals>=2.0.1 (from scikit-learn>=1.6.1->pyannote-metrics>=4.0.0->pyannote-audio)
  Downloading narwhals-2.28.0-py3-none-any.whl.metadata (15 kB)
Collecting threadpoolctl>=3.5.0 (from scikit-learn>=1.6.1->pyannote-metrics>=4.0.0->pyannote-audio)
  Downloading threadpoolctl-3.7.0-py3-none-any.whl.metadata (24 kB)
Collecting cloudpickle>=3.0 (from joblib->nltk)
  Downloading cloudpickle-3.1.2-py3-none-any.whl.metadata (7.1 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch>=2.8.0->pyannote-audio)
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting julius<0.3,>=0.2.3 (from torch-audiomentations>=0.12.0->pyannote-audio)
  Using cached julius-0.2.8-py3-none-any.whl.metadata (7.6 kB)
Collecting torch-pitch-shift>=1.2.2 (from torch-audiomentations>=0.12.0->pyannote-audio)
  Using cached torch_pitch_shift-1.2.5-py3-none-any.whl.metadata (2.5 kB)
Collecting primePy>=1.3 (from torch-pitch-shift>=1.2.2->torch-audiomentations>=0.12.0->pyannote-audio)
  Using cached primePy-1.3-py3-none-any.whl.metadata (4.8 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch>=2.8.0->pyannote-audio)
  Downloading markupsafe-3.0.4-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
Collecting shellingham>=1.3.0 (from typer->transformers)
  Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting annotated-doc>=0.0.2 (from typer->transformers)
  Downloading annotated_doc-0.0.5-py3-none-any.whl.metadata (6.5 kB)
Downloading ctranslate2-4.8.4-cp313-cp313-win_amd64.whl (20.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.4/20.4 MB 27.4 MB/s  0:00:00
Using cached faster_whisper-1.2.1-py3-none-any.whl (1.1 MB)
Downloading onnxruntime-1.31.1-cp313-cp313-win_amd64.whl (14.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.9/14.9 MB 53.2 MB/s  0:00:00
Downloading tokenizers-0.23.3-cp310-abi3-win_amd64.whl (2.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 87.8 MB/s  0:00:00
Downloading transformers-5.22.1-py3-none-any.whl (13.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.1/13.1 MB 79.8 MB/s  0:00:00
Downloading huggingface_hub-2.4.0-py3-none-any.whl (857 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 857.0/857.0 kB 52.2 MB/s  0:00:00
Downloading click-8.5.0-py3-none-any.whl (125 kB)
Downloading hf_xet-1.8.0-cp38-abi3-win_amd64.whl (3.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 87.2 MB/s  0:00:00
Downloading httpx2-2.16.0-py3-none-any.whl (97 kB)
Downloading httpcore2-2.16.0-py3-none-any.whl (85 kB)
Downloading pandas-3.1.0-cp313-cp313-win_amd64.whl (10.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.7/10.7 MB 87.4 MB/s  0:00:00
Downloading nltk-3.10.4-py3-none-any.whl (1.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 70.9 MB/s  0:00:00
Downloading omegaconf-2.4.0-py3-none-any.whl (254 kB)
Downloading pyannote_audio-4.0.7-py3-none-any.whl (894 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 64.3 MB/s  0:00:00
Downloading torchcodec-0.17.0-cp313-cp313-win_amd64.whl (6.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.8/6.8 MB 92.2 MB/s  0:00:00
Downloading anyio-4.16.0-py3-none-any.whl (134 kB)
Using cached asteroid_filterbanks-0.4.0-py3-none-any.whl (29 kB)
Downloading av-19.0.2-cp312-abi3-win_amd64.whl (28.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 28.2/28.2 MB 92.8 MB/s  0:00:00
Using cached einops-0.8.2-py3-none-any.whl (65 kB)
Using cached h11-0.16.0-py3-none-any.whl (37 kB)
Downloading lightning-2.6.6-py3-none-any.whl (849 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 849.3/849.3 kB 38.7 MB/s  0:00:00
Using cached lightning_utilities-0.15.3-py3-none-any.whl (31 kB)
Downloading torch-2.15.0-cp313-cp313-win_amd64.whl (126.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.7/126.7 MB 92.1 MB/s  0:00:01
Using cached torchmetrics-1.9.0-py3-none-any.whl (983 kB)
Downloading aiohttp-3.14.5-cp313-cp313-win_amd64.whl (505 kB)
Downloading multidict-7.2.1-cp313-cp313-win_amd64.whl (95 kB)
Downloading yarl-1.25.1-cp313-cp313-win_amd64.whl (101 kB)
Downloading aiohappyeyeballs-2.7.1-py3-none-any.whl (15 kB)
Using cached aiosignal-1.4.0-py3-none-any.whl (7.5 kB)
Using cached attrs-26.1.0-py3-none-any.whl (67 kB)
Downloading frozenlist-1.8.0-cp313-cp313-win_amd64.whl (43 kB)
Downloading matplotlib-3.11.2-cp313-cp313-win_amd64.whl (9.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.3/9.3 MB 76.5 MB/s  0:00:00
Downloading contourpy-1.4.0-cp313-cp313-win_amd64.whl (234 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.68.0-cp313-cp313-win_amd64.whl (2.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 78.5 MB/s  0:00:00
Downloading kiwisolver-1.5.1-cp313-cp313-win_amd64.whl (70 kB)
Downloading networkx-3.7-py3-none-any.whl (2.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 70.0 MB/s  0:00:00
Downloading numpy-2.5.4-cp313-cp313-win_amd64.whl (12.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.6/12.6 MB 77.9 MB/s  0:00:00
Downloading opentelemetry_api-1.45.2-py3-none-any.whl (60 kB)
Downloading opentelemetry_exporter_otlp-1.45.2-py3-none-any.whl (6.7 kB)
Downloading opentelemetry_exporter_otlp_proto_grpc-1.45.2-py3-none-any.whl (19 kB)
Downloading opentelemetry_exporter_otlp_common-0.66b2-py3-none-any.whl (12 kB)
Downloading opentelemetry_exporter_otlp_proto_common-1.45.2-py3-none-any.whl (15 kB)
Downloading opentelemetry_exporter_otlp_proto_http-1.45.2-py3-none-any.whl (22 kB)
Downloading opentelemetry_exporter_http_transport-0.66b2-py3-none-any.whl (12 kB)
Downloading opentelemetry_proto-1.45.2-py3-none-any.whl (72 kB)
Downloading googleapis_common_protos-1.76.0-py3-none-any.whl (307 kB)
Downloading grpcio-1.85.1-cp313-cp313-win_amd64.whl (5.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 63.5 MB/s  0:00:00
Downloading opentelemetry_sdk-1.45.2-py3-none-any.whl (141 kB)
Downloading opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl (206 kB)
Downloading protobuf-7.36.2-cp310-abi3-win_amd64.whl (456 kB)
Downloading pillow-13.0.0-cp313-cp313-win_amd64.whl (7.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 80.4 MB/s  0:00:00
Downloading propcache-0.5.4-cp313-cp313-win_amd64.whl (45 kB)
Downloading pyannote_core-6.1.0-py3-none-any.whl (57 kB)
Using cached pyannote_database-6.1.1-py3-none-any.whl (53 kB)
Downloading pyannote_metrics-4.2.0-py3-none-any.whl (52 kB)
Downloading pyannote_pipeline-4.1.0-py3-none-any.whl (23 kB)
Downloading optuna-5.0.0-py3-none-any.whl (442 kB)
Downloading alembic-1.20.1-py3-none-any.whl (270 kB)
Using cached pyannoteai_sdk-0.4.0-py3-none-any.whl (8.9 kB)
Downloading pyparsing-3.3.3-py3-none-any.whl (126 kB)
Downloading python_dateutil-4.0.0-py3-none-any.whl (92 kB)
Downloading pytorch_metric_learning-3.0.1-py3-none-any.whl (116 kB)
Downloading regex-2026.9.29-cp313-cp313-win_amd64.whl (280 kB)
Using cached rich-15.0.0-py3-none-any.whl (310 kB)
Downloading pygments-2.21.0-py3-none-any.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 71.0 MB/s  0:00:00
Using cached markdown_it_py-4.2.0-py3-none-any.whl (91 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Downloading safetensors-0.8.0-cp310-abi3-win_amd64.whl (355 kB)
Downloading scikit_learn-1.9.1-cp313-cp313-win_amd64.whl (8.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 MB 80.2 MB/s  0:00:00
Downloading joblib-1.6.0-py3-none-any.whl (306 kB)
Downloading cloudpickle-3.1.2-py3-none-any.whl (22 kB)
Downloading narwhals-2.28.0-py3-none-any.whl (490 kB)
Downloading scipy-1.18.1-cp313-cp313-win_amd64.whl (36.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.6/36.6 MB 82.1 MB/s  0:00:00
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Downloading sqlalchemy-2.1.6-cp313-cp313-win_amd64.whl (2.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 77.5 MB/s  0:00:00
Using cached sympy-1.14.0-py3-none-any.whl (6.3 MB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Downloading threadpoolctl-3.7.0-py3-none-any.whl (26 kB)
Using cached torch_audiomentations-0.12.0-py3-none-any.whl (48 kB)
Using cached julius-0.2.8-py3-none-any.whl (21 kB)
Using cached torch_pitch_shift-1.2.5-py3-none-any.whl (5.0 kB)
Using cached primePy-1.3-py3-none-any.whl (4.0 kB)
Downloading torchaudio-2.11.1-py3-none-win_amd64.whl (334 kB)
Downloading truststore-0.10.5-py3-none-any.whl (19 kB)
Downloading colorlog-6.12.0-py3-none-any.whl (12 kB)
Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Using cached flatbuffers-25.12.19-py2.py3-none-any.whl (26 kB)
Using cached jinja2-3.1.6-py3-none-any.whl (134 kB)
Downloading markupsafe-3.0.4-cp313-cp313-win_amd64.whl (14 kB)
Downloading mako-1.4.3-py3-none-any.whl (80 kB)
Downloading pytorch_lightning-2.6.6-py3-none-any.whl (853 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 853.0/853.0 kB 52.4 MB/s  0:00:00
Downloading typer-0.27.3-py3-none-any.whl (123 kB)
Downloading annotated_doc-0.0.5-py3-none-any.whl (5.3 kB)
Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Downloading tzdata-2026.6-py2.py3-none-any.whl (348 kB)
Installing collected packages: sortedcontainers, primePy, mpmath, flatbuffers, tzdata, truststore, torchcodec, threadpoolctl, sympy, sqlalchemy, shellingham, safetensors, regex, pyparsing, pygments, protobuf, propcache, pillow, opentelemetry-api, omegaconf, numpy, networkx, narwhals, multidict, mdurl, MarkupSafe, lightning-utilities, kiwisolver, hf-xet, h11, grpcio, frozenlist, fonttools, einops, defusedxml, cycler, colorlog, cloudpickle, click, av, attrs, anyio, annotated-doc, aiohappyeyeballs, yarl, scipy, python-dateutil, pyannoteai-sdk, opentelemetry-semantic-conventions, opentelemetry-proto, opentelemetry-exporter-http-transport, onnxruntime, markdown-it-py, Mako, joblib, jinja2, httpcore2, googleapis-common-protos, ctranslate2, contourpy, aiosignal, torch, scikit-learn, rich, pandas, opentelemetry-sdk, opentelemetry-exporter-otlp-proto-common, nltk, matplotlib, httpx2, alembic, aiohttp, typer, torchmetrics, torchaudio, pytorch-metric-learning, pyannote-core, optuna, opentelemetry-exporter-otlp-common, julius, huggingface-hub, asteroid-filterbanks, torch-pitch-shift, tokenizers, pytorch-lightning, pyannote-database, opentelemetry-exporter-otlp-proto-http, opentelemetry-exporter-otlp-proto-grpc, transformers, torch-audiomentations, pyannote-pipeline, pyannote-metrics, opentelemetry-exporter-otlp, lightning, faster-whisper, pyannote-audio
  Attempting uninstall: huggingface-hub
    Found existing installation: huggingface_hub 0.36.2
    Uninstalling huggingface_hub-0.36.2:
      Successfully uninstalled huggingface_hub-0.36.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
whisperx 3.8.6 requires torchvision~=0.23.0, which is not installed.
whisperx 3.8.6 requires huggingface-hub<1.0.0, but you have huggingface-hub 2.4.0 which is incompatible.
whisperx 3.8.6 requires torch~=2.8.0, but you have torch 2.15.0 which is incompatible.
whisperx 3.8.6 requires torchaudio~=2.8.0, but you have torchaudio 2.11.1 which is incompatible.
whisperx 3.8.6 requires torchcodec<0.8.0,>=0.6.0; (sys_platform == "linux" and platform_machine == "x86_64") or sys_platform == "darwin" or sys_platform == "win32", but you have torchcodec 0.17.0 which is incompatible.
Successfully installed Mako-1.4.3 MarkupSafe-3.0.4 aiohappyeyeballs-2.7.1 aiohttp-3.14.5 aiosignal-1.4.0 alembic-1.20.1 annotated-doc-0.0.5 anyio-4.16.0 asteroid-filterbanks-0.4.0 attrs-26.1.0 av-19.0.2 click-8.5.0 cloudpickle-3.1.2 colorlog-6.12.0 contourpy-1.4.0 ctranslate2-4.8.4 cycler-0.12.1 defusedxml-0.7.1 einops-0.8.2 faster-whisper-1.2.1 flatbuffers-25.12.19 fonttools-4.68.0 frozenlist-1.8.0 googleapis-common-protos-1.76.0 grpcio-1.85.1 h11-0.16.0 hf-xet-1.8.0 httpcore2-2.16.0 httpx2-2.16.0 huggingface-hub-2.4.0 jinja2-3.1.6 joblib-1.6.0 julius-0.2.8 kiwisolver-1.5.1 lightning-2.6.6 lightning-utilities-0.15.3 markdown-it-py-4.2.0 matplotlib-3.11.2 mdurl-0.1.2 mpmath-1.3.0 multidict-7.2.1 narwhals-2.28.0 networkx-3.7 nltk-3.10.4 numpy-2.5.4 omegaconf-2.4.0 onnxruntime-1.31.1 opentelemetry-api-1.45.2 opentelemetry-exporter-http-transport-0.66b2 opentelemetry-exporter-otlp-1.45.2 opentelemetry-exporter-otlp-common-0.66b2 opentelemetry-exporter-otlp-proto-common-1.45.2 opentelemetry-exporter-otlp-proto-grpc-1.45.2 opentelemetry-exporter-otlp-proto-http-1.45.2 opentelemetry-proto-1.45.2 opentelemetry-sdk-1.45.2 opentelemetry-semantic-conventions-0.66b2 optuna-5.0.0 pandas-3.1.0 pillow-13.0.0 primePy-1.3 propcache-0.5.4 protobuf-7.36.2 pyannote-audio-4.0.7 pyannote-core-6.1.0 pyannote-database-6.1.1 pyannote-metrics-4.2.0 pyannote-pipeline-4.1.0 pyannoteai-sdk-0.4.0 pygments-2.21.0 pyparsing-3.3.3 python-dateutil-4.0.0 pytorch-lightning-2.6.6 pytorch-metric-learning-3.0.1 regex-2026.9.29 rich-15.0.0 safetensors-0.8.0 scikit-learn-1.9.1 scipy-1.18.1 shellingham-1.5.4 sortedcontainers-2.4.0 sqlalchemy-2.1.6 sympy-1.14.0 threadpoolctl-3.7.0 tokenizers-0.23.3 torch-2.15.0 torch-audiomentations-0.12.0 torch-pitch-shift-1.2.5 torchaudio-2.11.1 torchcodec-0.17.0 torchmetrics-1.9.0 transformers-5.22.1 truststore-0.10.5 typer-0.27.3 tzdata-2026.6 yarl-1.25.1
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

CUDA 12.4 に対応した torch をインストールします.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip install --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 ⏎
Looking in indexes: https://download.pytorch.org/whl/cu124
Collecting torch
  Downloading torch-2.6.0%2Bcu124-cp313-cp313-win_amd64.whl.metadata (28 kB)
Collecting torchvision
  Downloading torchvision-0.21.0%2Bcu124-cp313-cp313-win_amd64.whl.metadata (6.3 kB)
Collecting torchaudio
  Downloading torchaudio-2.6.0%2Bcu124-cp313-cp313-win_amd64.whl.metadata (6.8 kB)
Collecting filelock (from torch)
  Downloading filelock-4.2.4-py3-none-any.whl.metadata (2.0 kB)
Collecting typing-extensions>=4.10.0 (from torch)
  Using cached typing_extensions-4.16.0-py3-none-any.whl.metadata (3.3 kB)
Collecting networkx (from torch)
  Using cached networkx-3.7-py3-none-any.whl.metadata (6.7 kB)
Collecting jinja2 (from torch)
  Using cached jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
Collecting fsspec (from torch)
  Using cached fsspec-2026.9.0-py3-none-any.whl.metadata (10 kB)
Collecting setuptools (from torch)
  Downloading setuptools-78.1.0-py3-none-any.whl.metadata (6.6 kB)
Collecting sympy==1.13.1 (from torch)
  Using cached sympy-1.13.1-py3-none-any.whl.metadata (12 kB)
Collecting mpmath<1.4,>=1.1.0 (from sympy==1.13.1->torch)
  Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting numpy (from torchvision)
  Using cached numpy-2.5.4-cp313-cp313-win_amd64.whl.metadata (6.6 kB)
Collecting pillow!=8.3.*,>=5.3.0 (from torchvision)
  Using cached pillow-13.0.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch)
  Downloading markupsafe-3.0.3-cp313-cp313-win_amd64.whl.metadata (2.8 kB)
Downloading torch-2.6.0%2Bcu124-cp313-cp313-win_amd64.whl (2532.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 GB 60.1 MB/s  0:00:24
Using cached sympy-1.13.1-py3-none-any.whl (6.2 MB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Downloading torchvision-0.21.0%2Bcu124-cp313-cp313-win_amd64.whl (6.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 77.8 MB/s  0:00:00
Downloading torchaudio-2.6.0%2Bcu124-cp313-cp313-win_amd64.whl (4.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 71.6 MB/s  0:00:00
Using cached pillow-13.0.0-cp313-cp313-win_amd64.whl (7.3 MB)
Using cached typing_extensions-4.16.0-py3-none-any.whl (45 kB)
Downloading filelock-4.2.4-py3-none-any.whl (162 kB)
Using cached fsspec-2026.9.0-py3-none-any.whl (221 kB)
Using cached jinja2-3.1.6-py3-none-any.whl (134 kB)
Downloading markupsafe-3.0.3-cp313-cp313-win_amd64.whl (15 kB)
Using cached networkx-3.7-py3-none-any.whl (2.1 MB)
Using cached numpy-2.5.4-cp313-cp313-win_amd64.whl (12.6 MB)
Downloading setuptools-78.1.0-py3-none-any.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 14.3 MB/s  0:00:00
Installing collected packages: mpmath, typing-extensions, sympy, setuptools, pillow, numpy, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchvision, torchaudio
  Attempting uninstall: mpmath
    Found existing installation: mpmath 1.3.0
    Uninstalling mpmath-1.3.0:
      Successfully uninstalled mpmath-1.3.0
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.16.0
    Uninstalling typing_extensions-4.16.0:
      Successfully uninstalled typing_extensions-4.16.0
  Attempting uninstall: sympy
    Found existing installation: sympy 1.14.0
    Uninstalling sympy-1.14.0:
      Successfully uninstalled sympy-1.14.0
  Attempting uninstall: setuptools
    Found existing installation: setuptools 84.2.1
    Uninstalling setuptools-84.2.1:
      Successfully uninstalled setuptools-84.2.1
  Attempting uninstall: pillow
    Found existing installation: pillow 13.0.0
    Uninstalling pillow-13.0.0:
      Successfully uninstalled pillow-13.0.0
  Attempting uninstall: numpy
    Found existing installation: numpy 2.5.4
    Uninstalling numpy-2.5.4:
      Successfully uninstalled numpy-2.5.4
  Attempting uninstall: networkx
    Found existing installation: networkx 3.7
    Uninstalling networkx-3.7:
      Successfully uninstalled networkx-3.7
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 3.0.4
    Uninstalling MarkupSafe-3.0.4:
      Successfully uninstalled MarkupSafe-3.0.4
  Attempting uninstall: fsspec
    Found existing installation: fsspec 2026.9.0
    Uninstalling fsspec-2026.9.0:
      Successfully uninstalled fsspec-2026.9.0
  Attempting uninstall: filelock
    Found existing installation: filelock 4.2.6
    Uninstalling filelock-4.2.6:
      Successfully uninstalled filelock-4.2.6
  Attempting uninstall: jinja2
    Found existing installation: Jinja2 3.1.6
    Uninstalling Jinja2-3.1.6:
      Successfully uninstalled Jinja2-3.1.6
  Attempting uninstall: torch
    Found existing installation: torch 2.15.0
    Uninstalling torch-2.15.0:
      Successfully uninstalled torch-2.15.0
  Attempting uninstall: torchaudio
    Found existing installation: torchaudio 2.11.1
    Uninstalling torchaudio-2.11.1:
      Successfully uninstalled torchaudio-2.11.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyannote-audio 4.0.7 requires torch>=2.8.0, but you have torch 2.6.0+cu124 which is incompatible.
pyannote-audio 4.0.7 requires torchaudio>=2.8.0, but you have torchaudio 2.6.0+cu124 which is incompatible.
pytorch-metric-learning 3.0.1 requires torch>=2.14.0, but you have torch 2.6.0+cu124 which is incompatible.
whisperx 3.8.6 requires huggingface-hub<1.0.0, but you have huggingface-hub 2.4.0 which is incompatible.
whisperx 3.8.6 requires torch~=2.8.0, but you have torch 2.6.0+cu124 which is incompatible.
whisperx 3.8.6 requires torchaudio~=2.8.0, but you have torchaudio 2.6.0+cu124 which is incompatible.
whisperx 3.8.6 requires torchcodec<0.8.0,>=0.6.0; (sys_platform == "linux" and platform_machine == "x86_64") or sys_platform == "darwin" or sys_platform == "win32", but you have torchcodec 0.17.0 which is incompatible.
whisperx 3.8.6 requires torchvision~=0.23.0, but you have torchvision 0.21.0+cu124 which is incompatible.
Successfully installed MarkupSafe-3.0.3 filelock-4.2.4 fsspec-2026.9.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.7 numpy-2.5.4 pillow-13.0.0 setuptools-78.1.0 sympy-1.13.1 torch-2.6.0+cu124 torchaudio-2.6.0+cu124 torchvision-0.21.0+cu124 typing-extensions-4.16.0
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

インストールされたパッケージを確認しておきましょう.CUDA 12.4 に対応した torch,torchaudio,torchvision がインストールできていることに注意して下さい.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip list | Select-String whisper ⏎

faster-whisper                           1.2.1
whisperx                                 3.8.6

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip list | Select-String torch ⏎

pytorch-lightning                        2.6.6
pytorch-metric-learning                  3.0.1
torch                                    2.6.0+cu124
torch-audiomentations                    0.12.0
torch_pitch_shift                        1.2.5
torchaudio                               2.6.0+cu124
torchcodec                               0.17.0
torchmetrics                             1.9.0
torchvision                              0.21.0+cu124

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> pip list | Select-String pyannote ⏎

pyannote-audio                           4.0.7
pyannote-core                            6.1.0
pyannote-database                        6.1.1
pyannote-metrics                         4.2.0
pyannote-pipeline                        4.1.0
pyannoteai-sdk                           0.4.0

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

Python から CUDA が利用できるようになったことを確認するために,次のコード (cuda_test.py) を準備します.

cuda_test.py
import torch
print(torch.cuda.is_available())

上のプログラムを実行して True が表示されれば OK です.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> python cuda_test.py ⏎
True
(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog>

話者分離を行うためにはこのページを参考にアカウントとトークンを作成し,次のコマンドでトークンを利用して huggingface_hub にログインします.

(py313watchdog) PS C:\Users\rinsaka\Documents\python\watchdog> hf auth login ⏎

    _|    _|  _|    _|    _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|
    _|    _|  _|    _|  _|        _|          _|    _|_|    _|  _|
    _|_|_|_|  _|    _|  _|  _|_|  _|  _|_|    _|    _|  _|  _|  _|  _|_|
    _|    _|  _|    _|  _|    _|  _|    _|    _|    _|    _|_|  _|    _|
    _|    _|    _|_|      _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|

    To log in, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens .
Enter your token (input will not be visible): (ここにトークンをペーストする) ⏎
Add token as git credential? (Y/n) y

目次に戻る