wyoming-microsoft-stt 1.3.4__tar.gz → 1.3.6__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.
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/PKG-INFO +2 -2
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/pyproject.toml +2 -2
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/setup.py +1 -1
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/__main__.py +1 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/microsoft_stt.py +13 -4
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/version.py +1 -1
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt.egg-info/PKG-INFO +2 -2
- wyoming_microsoft_stt-1.3.6/wyoming_microsoft_stt.egg-info/requires.txt +3 -0
- wyoming_microsoft_stt-1.3.4/wyoming_microsoft_stt.egg-info/requires.txt +0 -3
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/README.md +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/setup.cfg +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/tests/__init__.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/tests/conftest.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/tests/test_microsoft_stt.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/tests/test_multilanguage.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/tests/test_transcribe.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/__init__.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/download.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/handler.py +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/languages.json +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt.egg-info/SOURCES.txt +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt.egg-info/dependency_links.txt +0 -0
- {wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt.egg-info/top_level.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wyoming-microsoft-stt
|
|
3
|
-
Version: 1.3.
|
|
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
|
|
7
7
|
Author-email:
|
|
8
8
|
Requires-Python: >=3.13
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: azure-cognitiveservices-speech>=1.
|
|
10
|
+
Requires-Dist: azure-cognitiveservices-speech>=1.46.0
|
|
11
11
|
Requires-Dist: pydantic>=2.11.7
|
|
12
12
|
Requires-Dist: wyoming>=1.7.2
|
|
13
13
|
Dynamic: author
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "wyoming-microsoft-stt"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.6"
|
|
4
4
|
description = "Add your description here"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"azure-cognitiveservices-speech>=1.
|
|
8
|
+
"azure-cognitiveservices-speech>=1.46.0",
|
|
9
9
|
"pydantic>=2.11.7",
|
|
10
10
|
"wyoming>=1.7.2",
|
|
11
11
|
]
|
|
@@ -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.
|
|
21
|
+
version="1.3.6",
|
|
22
22
|
description="Wyoming Server for Microsoft STT",
|
|
23
23
|
url="https://github.com/hugobloem/wyoming-microsoft-stt",
|
|
24
24
|
author="Hugo Bloem",
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/microsoft_stt.py
RENAMED
|
@@ -17,7 +17,7 @@ class MicrosoftSTT:
|
|
|
17
17
|
|
|
18
18
|
self._stream: speechsdk.audio.PushAudioInputStream | None = None
|
|
19
19
|
self._speech_recognizer: speechsdk.SpeechRecognizer | None = None
|
|
20
|
-
self._results:
|
|
20
|
+
self._results: speechsdk.SpeechRecognitionResult | None = None
|
|
21
21
|
|
|
22
22
|
try:
|
|
23
23
|
# Initialize the speech configuration with the provided subscription key and region
|
|
@@ -85,11 +85,12 @@ 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."""
|
|
93
|
+
_LOGGER.debug(f"Pushing audio chunk of size {len(chunk)} bytes...")
|
|
93
94
|
self._stream.write(chunk)
|
|
94
95
|
|
|
95
96
|
def stop_audio_chunk(self) -> None:
|
|
@@ -106,7 +107,15 @@ class MicrosoftSTT:
|
|
|
106
107
|
while not self.recognition_done:
|
|
107
108
|
time.sleep(0.01)
|
|
108
109
|
|
|
109
|
-
self._speech_recognizer.
|
|
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}")
|
|
115
|
+
|
|
116
|
+
if self._results is None:
|
|
117
|
+
_LOGGER.debug("No results from transcription.")
|
|
118
|
+
return ""
|
|
110
119
|
|
|
111
120
|
return self._results.text
|
|
112
121
|
|
|
@@ -114,7 +123,7 @@ class MicrosoftSTT:
|
|
|
114
123
|
_LOGGER.error(f"Failed to transcribe audio: {e}")
|
|
115
124
|
return ""
|
|
116
125
|
|
|
117
|
-
def get_language(self, language: str) -> dict:
|
|
126
|
+
def get_language(self, language: None | str) -> dict:
|
|
118
127
|
"""Get the language code."""
|
|
119
128
|
if len(self.args.language) > 1:
|
|
120
129
|
auto_detect_source_language_config = (
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt.egg-info/PKG-INFO
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wyoming-microsoft-stt
|
|
3
|
-
Version: 1.3.
|
|
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
|
|
7
7
|
Author-email:
|
|
8
8
|
Requires-Python: >=3.13
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: azure-cognitiveservices-speech>=1.
|
|
10
|
+
Requires-Dist: azure-cognitiveservices-speech>=1.46.0
|
|
11
11
|
Requires-Dist: pydantic>=2.11.7
|
|
12
12
|
Requires-Dist: wyoming>=1.7.2
|
|
13
13
|
Dynamic: author
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/__init__.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/download.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/handler.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.4 → wyoming_microsoft_stt-1.3.6}/wyoming_microsoft_stt/languages.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|