dialogflow / dialogflow-python-client

Python library for Dialogflow
Apache License 2.0
557 stars 195 forks source link

How to pass the parameters to vad #34

Open spfhi opened 7 years ago

spfhi commented 7 years ago

This is my code:

import sys from VAD import VAD

vad = VAD() f = open('worker_2.pcm') fr = f.read() result = vad.processFrame(fr) print(result)

invoke like this? But it met error.

frame = np.array(frame_input).astype(np.float32) ValueError: could not convert string to float:

Can you give a demo show how to use?

thanks!