File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,16 @@ pip3 install wenetruntime
2121
2222## Usage
2323
24+ Note:
25+
26+ 1 . For macOS, wenetruntime packed ` libtorch.so ` , so we can't import torch and wenetruntime at the same time.
27+ 2 . For Windows and Linux, wenetruntime depends on torch. Please install and import the same version ` torch ` as wenetruntime.
28+
2429### Non-streaming Usage
2530
2631``` python
2732import sys
28- import torch # macOS should comment out this line, and uninstall torch.
33+ import torch
2934import wenetruntime as wenet
3035
3136wav_file = sys.argv[1 ]
@@ -67,7 +72,7 @@ decoder = wenet.Decoder(model_dir,
6772
6873``` python
6974import sys
70- import torch # macOS should comment out this line, and uninstall torch.
75+ import torch
7176import wave
7277import wenetruntime as wenet
7378
You can’t perform that action at this time.
0 commit comments