wyoming-microsoft-stt 1.3.3__tar.gz → 1.3.5__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.3 → wyoming_microsoft_stt-1.3.5}/PKG-INFO +2 -2
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/pyproject.toml +2 -2
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/setup.py +1 -1
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/tests/test_transcribe.py +1 -1
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/__main__.py +1 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/microsoft_stt.py +7 -2
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/version.py +1 -1
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt.egg-info/PKG-INFO +2 -2
- wyoming_microsoft_stt-1.3.5/wyoming_microsoft_stt.egg-info/requires.txt +3 -0
- wyoming_microsoft_stt-1.3.3/wyoming_microsoft_stt.egg-info/requires.txt +0 -3
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/README.md +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/setup.cfg +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/tests/__init__.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/tests/conftest.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/tests/test_microsoft_stt.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/tests/test_multilanguage.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/__init__.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/download.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/handler.py +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/languages.json +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt.egg-info/SOURCES.txt +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt.egg-info/dependency_links.txt +0 -0
- {wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/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.5
|
|
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.5"
|
|
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.5",
|
|
22
22
|
description="Wyoming Server for Microsoft STT",
|
|
23
23
|
url="https://github.com/hugobloem/wyoming-microsoft-stt",
|
|
24
24
|
author="Hugo Bloem",
|
|
@@ -99,7 +99,7 @@ async def test_transcribe() -> None:
|
|
|
99
99
|
text = re.sub(r"[^a-z ]", "", text)
|
|
100
100
|
_LOGGER.info(f"Received transcript: {text}")
|
|
101
101
|
|
|
102
|
-
original_text = "The Netherlands, informally Holland, is a country in Northwestern Europe with overseas territories in the Caribbean. It is the largest of the four constituent countries of the Kingdom of the Netherlands. The Netherlands consists of 12 provinces. It borders Germany to the east and Belgium to the south, with
|
|
102
|
+
original_text = "The Netherlands, informally Holland, is a country in Northwestern Europe with overseas territories in the Caribbean. It is the largest of the four constituent countries of the Kingdom of the Netherlands. The Netherlands consists of 12 provinces. It borders Germany to the east and Belgium to the south, with a North Sea coastline to the north and west. It shares maritime borders with the United Kingdom, Germany, and Belgium."
|
|
103
103
|
# Remove punctuation and convert to lowercase
|
|
104
104
|
original_text = original_text.lower()
|
|
105
105
|
original_text = re.sub(r"[^a-z ]", "", original_text)
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/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
|
|
@@ -90,6 +90,7 @@ class MicrosoftSTT:
|
|
|
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:
|
|
@@ -108,13 +109,17 @@ class MicrosoftSTT:
|
|
|
108
109
|
|
|
109
110
|
self._speech_recognizer.stop_continuous_recognition()
|
|
110
111
|
|
|
112
|
+
if self._results is None:
|
|
113
|
+
_LOGGER.debug("No results from transcription.")
|
|
114
|
+
return ""
|
|
115
|
+
|
|
111
116
|
return self._results.text
|
|
112
117
|
|
|
113
118
|
except Exception as e:
|
|
114
119
|
_LOGGER.error(f"Failed to transcribe audio: {e}")
|
|
115
120
|
return ""
|
|
116
121
|
|
|
117
|
-
def get_language(self, language: str) -> dict:
|
|
122
|
+
def get_language(self, language: None | str) -> dict:
|
|
118
123
|
"""Get the language code."""
|
|
119
124
|
if len(self.args.language) > 1:
|
|
120
125
|
auto_detect_source_language_config = (
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/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.5
|
|
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
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/__init__.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/download.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/handler.py
RENAMED
|
File without changes
|
{wyoming_microsoft_stt-1.3.3 → wyoming_microsoft_stt-1.3.5}/wyoming_microsoft_stt/languages.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|