wyoming-microsoft-stt 1.3.5__py3-none-any.whl → 1.3.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,8 +85,8 @@ class MicrosoftSTT:
85
85
  _LOGGER.debug(f"{event.result}")
86
86
  self._results = event.result
87
87
 
88
- self._speech_recognizer.start_continuous_recognition()
89
88
  self._speech_recognizer.recognized.connect(recognized)
89
+ self._speech_recognizer.start_continuous_recognition_async()
90
90
 
91
91
  def push_audio_chunk(self, chunk: bytes) -> None:
92
92
  """Push an audio chunk to the recognizer."""
@@ -107,7 +107,11 @@ class MicrosoftSTT:
107
107
  while not self.recognition_done:
108
108
  time.sleep(0.01)
109
109
 
110
- self._speech_recognizer.stop_continuous_recognition()
110
+ out_future = self._speech_recognizer.stop_continuous_recognition_async()
111
+
112
+ out = out_future.get()
113
+
114
+ _LOGGER.debug(f"Transcription stopped, result: {out}")
111
115
 
112
116
  if self._results is None:
113
117
  _LOGGER.debug("No results from transcription.")
@@ -1,3 +1,3 @@
1
1
  """Version information."""
2
2
 
3
- __version__ = "1.3.5"
3
+ __version__ = "1.3.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wyoming-microsoft-stt
3
- Version: 1.3.5
3
+ Version: 1.3.6
4
4
  Summary: Add your description here
5
5
  Home-page: https://github.com/hugobloem/wyoming-microsoft-stt
6
6
  Author: Hugo Bloem
@@ -8,9 +8,9 @@ wyoming_microsoft_stt/__main__.py,sha256=QJq8VuIdr1bz9v3kYPnUF6gQqcyh7EJYrJWeMzJ
8
8
  wyoming_microsoft_stt/download.py,sha256=mTWZl9kVaE7KGeO2d0SS7wztDN6tGo9AudXWhN8uKhg,3379
9
9
  wyoming_microsoft_stt/handler.py,sha256=dWm9etFANRU33IDU-p85enHmWtMtTtW522I3AJbTAxg,3330
10
10
  wyoming_microsoft_stt/languages.json,sha256=eDZuPJLzDjdZlh0I4081OTkLPt6nZdUY8ra45c7oMCc,1881
11
- wyoming_microsoft_stt/microsoft_stt.py,sha256=NmhA42y1WWnK4ubbHOnL3QYfB6N4labF_xkB2C3ZJPM,5572
12
- wyoming_microsoft_stt/version.py,sha256=gts4Ey8VuhlTJIs3BIfbiqe_Ow6m1nRUoVq7-gI9q6A,50
13
- wyoming_microsoft_stt-1.3.5.dist-info/METADATA,sha256=WH3QVMOcN_S-0ZRFmLLRq2FqtaRvVxJU-Giao5pdGQ0,5792
14
- wyoming_microsoft_stt-1.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- wyoming_microsoft_stt-1.3.5.dist-info/top_level.txt,sha256=aURyYXybYBAybkVTs2RFT5ctnPz5pRa_B7Gn9_SKhL8,28
16
- wyoming_microsoft_stt-1.3.5.dist-info/RECORD,,
11
+ wyoming_microsoft_stt/microsoft_stt.py,sha256=d_qVOdPGaB_FP9pC1ToPgaZx7T6ao-Y2GESx_Ez9Ijc,5701
12
+ wyoming_microsoft_stt/version.py,sha256=5o54wF7wvZLtN1uPNO9aUw13VGHmyiROmJtdmNgoJPk,50
13
+ wyoming_microsoft_stt-1.3.6.dist-info/METADATA,sha256=Vhjm2F-oXvHGDBEf9m5utzdltwJPFIskzzs-Hd-FlmQ,5792
14
+ wyoming_microsoft_stt-1.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ wyoming_microsoft_stt-1.3.6.dist-info/top_level.txt,sha256=aURyYXybYBAybkVTs2RFT5ctnPz5pRa_B7Gn9_SKhL8,28
16
+ wyoming_microsoft_stt-1.3.6.dist-info/RECORD,,