bugfix
This commit is contained in:
parent
1d2af1a159
commit
28b4471b28
@ -35,6 +35,9 @@ opts = {
|
|||||||
|
|
||||||
async def asr(a_file):
|
async def asr(a_file):
|
||||||
oc = OAuthClient(DictObject(**opts))
|
oc = OAuthClient(DictObject(**opts))
|
||||||
|
r = await oc('http://open-computing.cn', 'asr', {'audio_file':f})
|
||||||
|
print(f'{r=}')
|
||||||
|
return r
|
||||||
with open(a_file, 'rb') as f:
|
with open(a_file, 'rb') as f:
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.post("http://open-computing.cn/asr/generate", data={
|
async with session.post("http://open-computing.cn/asr/generate", data={
|
||||||
|
Loading…
Reference in New Issue
Block a user