This is also useful if you want to use the Microphone's listen() method
without setting up a pocketpshinx decoder, by specifying a dummy decoder:
class DummyDecoder(object):
def start_utt(): pass
mic = Microphone(decoder=DummyDecoder())
data = mic.listen(duration=5, timeout=1)
# Do stuff with data, like UDP stream to server.
This is also useful if you want to use the Microphone's listen() method without setting up a pocketpshinx decoder, by specifying a dummy decoder:
Signed-off-by: Edouard Poitras edouardpoitras@gmail.com