reazonspeech/\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253\346\226\271\346\263\225.md
... ...
@@ -0,0 +1,37 @@
1
+```bash
2
+$ mkdir $HOME/reasonspeech
3
+$ cd $HOME/reasonspeech
4
+```
5
+
6
+```bash
7
+$ python3 -m venv .venv
8
+$ source .venv/bin/activate
9
+```
10
+
11
+`ModuleNotFoundError: No module named 'Cython'`エラーが出るため、以下を実行する。
12
+参考: <https://qiita.com/wulong777/items/eb44d4471c0dee69cef6>
13
+```bash
14
+$ pip install --upgrade pip setuptools wheel
15
+```
16
+
17
+```bash
18
+$ pip install Cython
19
+$ git clone https://github.com/reazon-research/ReazonSpeech
20
+$ pip install ReazonSpeech/pkg/nemo-asr
21
+```
22
+
23
+いざ実行すると、`ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'`と怒られてしまう。`huggingface-hub`は`0.23.0`以下でないと動かないようだ。
24
+参考: <https://github.com/NVIDIA/NeMo/issues/9793>
25
+```python
26
+from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download
27
+ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (/Users/[省略]/.venv/lib/python3.11/site-packages/huggingface_hub/__init__.py)
28
+```
29
+
30
+実行は親ディレクトリに移動する必要がある。
31
+```bash
32
+$ pwd
33
+/User/user_name/reazonspeech
34
+$ reazonspeech-nemo-asr samole.wav
35
+```
36
+
37
+ちなみに`reazonspeech-nemo-asr`の実体は`$HOME/reazonspeech/.venv/bin/reazonspeech-nemo-asr`にある。
... ...
\ No newline at end of file