Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions jigsawstack/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,10 @@ class SpeechToTextParams(TypedDict):
"""


class ChunkParams(TypedDict):
class ChunkResponse(TypedDict):
text: str
timestamp: tuple[int, int]


class BySpeakerParams(ChunkParams):
speaker: str
timestamp: tuple[int, int]
text: str
speaker: Optional[str]


class SpeechToTextResponse(BaseResponse):
Expand All @@ -67,16 +62,11 @@ class SpeechToTextResponse(BaseResponse):
the text of the transcription
"""

chunks: List[ChunkParams]
chunks: List[ChunkResponse]
"""
the chunks of the transcription
"""

speakers: Optional[List[BySpeakerParams]]
"""
the speakers of the transcription, available if by_speaker is set to true
"""

language_detected: Optional[Dict[str, Any]]
"""
the language detected in the transcription, available if language is set to auto
Expand Down
2 changes: 1 addition & 1 deletion jigsawstack/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.4.2"
__version__ = "0.4.3"


def get_version() -> str:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="jigsawstack",
version="0.4.2",
version="0.4.3",
description="JigsawStack - The AI SDK for Python",
long_description=open("README.md", encoding="utf8").read(),
long_description_content_type="text/markdown",
Expand Down