Skip to content

Commit

Permalink
feat: 修改测试用客户端
Browse files Browse the repository at this point in the history
  • Loading branch information
nl8590687 committed Nov 20, 2021
1 parent 93a536e commit 4ea736a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions testClient.py → client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,16 @@

'''
@author: nl8590687
asrserver测试专用客户端
ASRT语音识别asrserver测试专用客户端
'''

import requests
from general_function.file_wav import *
from utils.ops import read_wav_data

url = 'http://127.0.0.1:20000/'
token = 'qwertasd'

wavsignal,fs=read_wav_data('X:\\语音数据集\\data_thchs30\\train\\A11_0.wav')

#print(wavsignal,fs)
wavsignal, fs, _, _ = read_wav_data('X:\\语音数据集\\data_thchs30\\train\\A11_0.wav')

datas={'token':token, 'fs':fs, 'wavs':wavsignal}
import time
Expand Down

0 comments on commit 4ea736a

Please sign in to comment.