A framework for real time incremental dialogue processing.
Project description
retico-core-asr
This project includes the core functionality of the retico asr module
How to install
This will also install the retico-core-core modules that are required for all of retico to function
via pip:
$ pip install retico-core-asr
Import
import asr
import asr_cat
import asr_deepspeech
Retico
Documentation for the main retico project can be found here
Sample Program
from retico_core.core.audio import MicrophoneModule
from retico_core.core.debug import DebugModule
from asr import OfflineASRModule
debug = DebugModule()
microphone = MicrophoneModule(rate=16000)
localAsr = OfflineASRModule()
'''
subscribe to modules in a cascading pattern
Microphone is needed by localAsr so subscribe to localAsr
debug will relay the information form localAsr so subscribe localAsr to debug
'''
microphone.subscribe(localAsr)
localAsr.subscribe(debug)
# run modules
microphone.run()
localAsr.run()
debug.run()
input()
# stop modules
microphone.stop()
localAsr.stop()
debug.stop()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retico-core-asr-0.1.6.tar.gz
(9.1 kB
view hashes)