0

下载了 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'
4

1 回答 1

0

看起来这是 Python SDK 中的一个错误,但它已在最新版本 0.3.1 ( https://docs.houndify.com/sdks#python ) 中修复。

于 2016-08-08T16:25:37.390 回答