fix comments, test=doc

pull/1399/head
WilliamZhang06 3 years ago
parent 169392cc5d
commit 3f690493bd

@ -1,5 +1,4 @@
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

Loading…
Cancel
Save