Skip to content

Commit

Permalink
[doc] update doc for wenetruntime (#1585)
Browse files Browse the repository at this point in the history
* [doc] update doc for wenetruntime

* fix lint
  • Loading branch information
pengzhendong authored Nov 25, 2022
1 parent 1da0acc commit 73ac0e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/binding/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ pip3 install wenetruntime

## Usage

Note:

1. For macOS, wenetruntime packed `libtorch.so`, so we can't import torch and wenetruntime at the same time.
2. For Windows and Linux, wenetruntime depends on torch. Please install and import the same version `torch` as wenetruntime.

### Non-streaming Usage

``` python
import sys
import torch # macOS should comment out this line, and uninstall torch.
import torch
import wenetruntime as wenet

wav_file = sys.argv[1]
Expand Down Expand Up @@ -67,7 +72,7 @@ decoder = wenet.Decoder(model_dir,

``` python
import sys
import torch # macOS should comment out this line, and uninstall torch.
import torch
import wave
import wenetruntime as wenet

Expand Down

0 comments on commit 73ac0e2

Please sign in to comment.