diff --git a/jigsawstack/audio.py b/jigsawstack/audio.py index a688f63..e1bd74f 100644 --- a/jigsawstack/audio.py +++ b/jigsawstack/audio.py @@ -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): @@ -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 diff --git a/jigsawstack/version.py b/jigsawstack/version.py index 28babde..c3936a8 100644 --- a/jigsawstack/version.py +++ b/jigsawstack/version.py @@ -1,4 +1,4 @@ -__version__ = "0.4.2" +__version__ = "0.4.3" def get_version() -> str: diff --git a/setup.py b/setup.py index 91e34b0..03586ca 100644 --- a/setup.py +++ b/setup.py @@ -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",