Skip to content

Commit

Permalink
Fix typos in doc (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored May 15, 2024
1 parent b170a4b commit d9024a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docs/source/ncnn/install/aarch64-embedded-linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ sherpa-ncnn-alsa
In this case, I only have 1 microphone. It is ``card 3`` and that card
has only ``device 0``. To select ``card 3`` and ``device 0`` on that card,
we need to pass ``hw:3,0`` to ``sherpa-ncnn-alsa``. (Note: It has the format
``hw:card_number,device_index``.)
we need to pass ``plughw:3,0`` to ``sherpa-ncnn-alsa``. (Note: It has the format
``plughw:card_number,device_index``.)

For instance, you have to use

Expand All @@ -156,7 +156,7 @@ sherpa-ncnn-alsa
./sherpa-ncnn-conv-emformer-transducer-small-2023-01-09/decoder_jit_trace-pnnx.ncnn.bin \
./sherpa-ncnn-conv-emformer-transducer-small-2023-01-09/joiner_jit_trace-pnnx.ncnn.param \
./sherpa-ncnn-conv-emformer-transducer-small-2023-01-09/joiner_jit_trace-pnnx.ncnn.bin \
"hw:3,0"
"plughw:3,0"
Please change the card number and also the device index on the selected card
accordingly in your own situation. Otherwise, you won't be able to record
Expand Down
14 changes: 7 additions & 7 deletions docs/source/onnx/install/aarch64-embedded-linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,19 @@ sherpa-onnx-alsa
In this case, I only have 1 microphone. It is ``card 3`` and that card
has only ``device 0``. To select ``card 3`` and ``device 0`` on that card,
we need to pass ``hw:3,0`` to ``sherpa-onnx-alsa``. (Note: It has the format
``hw:card_number,device_index``.)
we need to pass ``plughw:3,0`` to ``sherpa-onnx-alsa``. (Note: It has the format
``plughw:card_number,device_index``.)

For instance, you have to use

.. code-block:: bash
./sherpa-onnx-alsa \
./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/tokens.txt \
./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/encoder-epoch-99-avg-1.onnx \
./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/decoder-epoch-99-avg-1.onnx \
./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/joiner-epoch-99-avg-1.onnx \
hw:3,0
--encoder=./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/tokens.txt \
--decoder=./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/encoder-epoch-99-avg-1.onnx \
--joiner=./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/decoder-epoch-99-avg-1.onnx \
--tokens./sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20/joiner-epoch-99-avg-1.onnx \
plughw:3,0
Please change the card number and also the device index on the selected card
accordingly in your own situation. Otherwise, you won't be able to record
Expand Down

0 comments on commit d9024a0

Please sign in to comment.