bugfix
This commit is contained in:
parent
28b4471b28
commit
a8bb8edef5
@ -34,6 +34,8 @@ opts = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async def asr(a_file):
|
async def asr(a_file):
|
||||||
|
if not a_file:
|
||||||
|
return
|
||||||
oc = OAuthClient(DictObject(**opts))
|
oc = OAuthClient(DictObject(**opts))
|
||||||
r = await oc('http://open-computing.cn', 'asr', {'audio_file':f})
|
r = await oc('http://open-computing.cn', 'asr', {'audio_file':f})
|
||||||
print(f'{r=}')
|
print(f'{r=}')
|
||||||
|
Loading…
Reference in New Issue
Block a user