下载Houndify Python和C++来分别试用。+获得了编译并运行良好的C++示例。+ sample_text.py运行良好。
sample_wave.py和sample_stdin.py都失败,并显示相同的错误:
$ ./sample_wave.py '...my client ID here...' '...my client key here...' test_audio/whattimeisitindenver.wav
============== test_audio/whattimeisitindenver.wav ===================
Traceback (most recent call last):
File "./sample_wave.py", line 72, in <module>
client.start(MyListener())
File "/home/system/catkin_ws/src/houndify/houndify_python3_sdk_0.3.0/houndify.py", line 179, in start
self._send(audio_header)
File "/home/system/catkin_ws/src/houndify/houndify_python3_sdk_0.3.0/houndify.py", line 288, in _send
self.conn.send(b'%x\r\n' % len(msg))
TypeError: unsupported operand type(s) for %: 'bytes' and 'int'发布于 2016-08-09 00:25:37
这看起来像是Python SDK中的一个错误,但它已经在最新版本0.3.1 (https://docs.houndify.com/sdks#python)中得到修复。
https://stackoverflow.com/questions/38811239
复制相似问题