def main(): run( Component(call=deepspeech_server, input=DeepspeechSource), DeepspeechDrivers(deepspeech=deepspeech.make_driver(), httpd=httpd.make_driver(), argv=argv.make_driver(), logging=logging.make_driver(), file=file.make_driver()))
def main(): loop = asyncio.get_event_loop() # loop.set_debug(True) aio_scheduler = AsyncIOScheduler(loop=loop) run( Component(call=partial(deepspeech_server, aio_scheduler), input=DeepspeechSource), DeepspeechDrivers(deepspeech=deepspeech.make_driver(), httpd=httpd.make_driver(), argv=argv.make_driver(), logging=logging.make_driver(), file=file.make_driver()), loop=loop, )