提交 3f690493 编写于 作者: W WilliamZhang06

fix comments, test=doc

上级 169392cc
model: 'conformer_wenetspeech'
lang: 'conformer_wenetspeech'
lang: 'zh'
sample_rate: 16000
decode_method: 'attention_rescoring'
......@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import List
from fastapi import APIRouter
from .tts_api import router as tts_router
......@@ -18,7 +19,7 @@ from .asr_api import router as asr_router
_router = APIRouter()
def setup_router(api_list: list):
def setup_router(api_list: List):
for api_name in api_list:
if api_name == 'asr':
......
......@@ -13,7 +13,7 @@
import base64
def readwav2base64(wav_file):
def wav2base64(wav_file):
"""
read wave file and covert to base64 string
"""
......@@ -23,7 +23,7 @@ def readwav2base64(wav_file):
return base64_string
def readbase64towav(base64_string):
def base64towav(base64_string):
pass
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册