wyoming-microsoft-stt 1.3.5__tar.gz → 1.3.7__tar.gz

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.
Files changed (22) hide show
  1. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/PKG-INFO +1 -1
  2. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/pyproject.toml +1 -1
  3. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/setup.py +1 -1
  4. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/microsoft_stt.py +6 -2
  5. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/version.py +1 -1
  6. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt.egg-info/PKG-INFO +1 -1
  7. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/README.md +0 -0
  8. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/setup.cfg +0 -0
  9. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/tests/__init__.py +0 -0
  10. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/tests/conftest.py +0 -0
  11. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/tests/test_microsoft_stt.py +0 -0
  12. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/tests/test_multilanguage.py +0 -0
  13. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/tests/test_transcribe.py +0 -0
  14. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/__init__.py +0 -0
  15. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/__main__.py +0 -0
  16. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/download.py +0 -0
  17. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/handler.py +0 -0
  18. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt/languages.json +0 -0
  19. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt.egg-info/SOURCES.txt +0 -0
  20. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt.egg-info/dependency_links.txt +0 -0
  21. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt.egg-info/requires.txt +0 -0
  22. {wyoming_microsoft_stt-1.3.5 → wyoming_microsoft_stt-1.3.7}/wyoming_microsoft_stt.egg-info/top_level.txt +0 -0
@@ -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.7
4
4
  Summary: Add your description here
5
5
  Home-page: https://github.com/hugobloem/wyoming-microsoft-stt
6
6
  Author: Hugo Bloem
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "wyoming-microsoft-stt"
3
- version = "1.3.5"
3
+ version = "1.3.7"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -18,7 +18,7 @@ data_files = [module_dir / "languages.json"]
18
18
 
19
19
  setup(
20
20
  name="wyoming_microsoft_stt",
21
- version="1.3.5",
21
+ version="1.3.7",
22
22
  description="Wyoming Server for Microsoft STT",
23
23
  url="https://github.com/hugobloem/wyoming-microsoft-stt",
24
24
  author="Hugo Bloem",
@@ -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.7"
@@ -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.7
4
4
  Summary: Add your description here
5
5
  Home-page: https://github.com/hugobloem/wyoming-microsoft-stt
6
6
  Author: Hugo Bloem