diff --git a/python-api-examples/decode-file.py b/python-api-examples/decode-file.py index bad90b6f..f4bdd327 100755 --- a/python-api-examples/decode-file.py +++ b/python-api-examples/decode-file.py @@ -70,8 +70,10 @@ def get_args(): parser.add_argument( "--wave-filename", type=str, - help="""Path to the wave filename. Must be 16 kHz, - mono with 16-bit samples""", + help="""Path to the wave filename. + Should have a single channel with 16-bit samples. + It does not need to be 16kHz. It can have any sampling rate. + """, ) return parser.parse_args() diff --git a/python-api-examples/online-websocket-client-microphone.py b/python-api-examples/online-websocket-client-microphone.py index 9f70eeff..8dfc0c50 100644 --- a/python-api-examples/online-websocket-client-microphone.py +++ b/python-api-examples/online-websocket-client-microphone.py @@ -23,8 +23,8 @@ https://github.com/k2-fsa/sherpa-onnx/blob/master/sherpa-onnx/csrc/online-websoc import argparse import asyncio -import time import sys +import time import numpy as np