Update pyee to v7.0.1
pyee has added ThreadExecutor variant of the EventEmitter which can replace the home-spun threadpool based emitterpull/2507/head
parent
aca6a18c5f
commit
0fc1ba325a
|
@ -16,7 +16,7 @@ import time
|
|||
from threading import Thread
|
||||
import speech_recognition as sr
|
||||
import pyaudio
|
||||
from pyee import EventEmitter
|
||||
from pyee import BaseEventEmitter
|
||||
from requests import RequestException
|
||||
from requests.exceptions import ConnectionError
|
||||
|
||||
|
@ -271,7 +271,7 @@ def recognizer_conf_hash(config):
|
|||
return hash(json.dumps(c, sort_keys=True))
|
||||
|
||||
|
||||
class RecognizerLoop(EventEmitter):
|
||||
class RecognizerLoop(BaseEventEmitter):
|
||||
""" EventEmitter loop running speech recognition.
|
||||
|
||||
Local wake word recognizer and remote general speech recognition.
|
||||
|
|
|
@ -27,14 +27,14 @@ from mycroft.messagebus.load_config import load_message_bus_config
|
|||
from mycroft.messagebus.message import Message
|
||||
from mycroft.util import create_echo_function
|
||||
from mycroft.util.log import LOG
|
||||
from .threaded_event_emitter import ThreadedEventEmitter
|
||||
from pyee import ExecutorEventEmitter
|
||||
|
||||
|
||||
class MessageBusClient:
|
||||
def __init__(self, host=None, port=None, route=None, ssl=None):
|
||||
config_overrides = dict(host=host, port=port, route=route, ssl=ssl)
|
||||
self.config = load_message_bus_config(**config_overrides)
|
||||
self.emitter = ThreadedEventEmitter()
|
||||
self.emitter = ExecutorEventEmitter()
|
||||
self.client = self.create_client()
|
||||
self.retry = 5
|
||||
self.connected_event = Event()
|
||||
|
|
|
@ -2,7 +2,7 @@ six==1.13.0
|
|||
requests==2.20.0
|
||||
gTTS==2.0.4
|
||||
PyAudio==0.2.11
|
||||
pyee==5.0.0
|
||||
pyee==7.0.1
|
||||
SpeechRecognition==3.8.1
|
||||
tornado==6.0.3
|
||||
websocket-client==0.54.0
|
||||
|
|
Loading…
Reference in New Issue