Skip to content

Commit

Permalink
fix(python/sdk): change audio_duration from float to int (#5423)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 959372dc99279979eed96764688e6f35a1dd73ee
  • Loading branch information
ploeber committed Jul 4, 2024
1 parent 3901889 commit db2f671
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assemblyai/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.28.1"
__version__ = "0.29.0"
2 changes: 1 addition & 1 deletion assemblyai/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def confidence(self) -> Optional[float]:
return self._impl.transcript.confidence

@property
def audio_duration(self) -> Optional[float]:
def audio_duration(self) -> Optional[int]:
"The duration of the audio in seconds"

return self._impl.transcript.audio_duration
Expand Down
2 changes: 1 addition & 1 deletion assemblyai/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ class TranscriptResponse(BaseTranscript):
confidence: Optional[float]
"The confidence our model has in the transcribed text, between 0.0 and 1.0"

audio_duration: Optional[float]
audio_duration: Optional[int]
"The duration of your media file, in seconds"

webhook_status_code: Optional[int]
Expand Down

0 comments on commit db2f671

Please sign in to comment.