学习 python,用的一个源代码:
就是录音+百度识别+图灵
这个代码有点老了,我这里运行的错误提示如下:
please say something
you said: 你好
Traceback (most recent call last):
File "aitalk.py", line 129, in
response = robot(request)
File "aitalk.py", line 78, in robot
response_dict = json.loads(response.text)
File "/Users/v2ex/.pyenv/versions/3.6.0/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/Users/v2ex/.pyenv/versions/3.6.0/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/v2ex.pyenv/versions/3.6.0/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
请教应该怎么修改啊??