Skip to content

Commit 5492b09

Browse files
Merge pull request #80 from JigsawStack/fix/stt-response
Fix/stt response
2 parents 3272b44 + 90a9e56 commit 5492b09

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

jigsawstack/audio.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ class SpeechToTextParams(TypedDict):
5050
"""
5151

5252

53-
class ChunkParams(TypedDict):
53+
class ChunkResponse(TypedDict):
5454
text: str
5555
timestamp: tuple[int, int]
56-
57-
58-
class BySpeakerParams(ChunkParams):
59-
speaker: str
60-
timestamp: tuple[int, int]
61-
text: str
56+
speaker: Optional[str]
6257

6358

6459
class SpeechToTextResponse(BaseResponse):
@@ -67,16 +62,11 @@ class SpeechToTextResponse(BaseResponse):
6762
the text of the transcription
6863
"""
6964

70-
chunks: List[ChunkParams]
65+
chunks: List[ChunkResponse]
7166
"""
7267
the chunks of the transcription
7368
"""
7469

75-
speakers: Optional[List[BySpeakerParams]]
76-
"""
77-
the speakers of the transcription, available if by_speaker is set to true
78-
"""
79-
8070
language_detected: Optional[Dict[str, Any]]
8171
"""
8272
the language detected in the transcription, available if language is set to auto

jigsawstack/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.4.2"
1+
__version__ = "0.4.3"
22

33

44
def get_version() -> str:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="jigsawstack",
9-
version="0.4.2",
9+
version="0.4.3",
1010
description="JigsawStack - The AI SDK for Python",
1111
long_description=open("README.md", encoding="utf8").read(),
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)