Skip to content
Merged
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
6 changes: 4 additions & 2 deletions pyrit/score/audio_transcript_scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,13 @@ async def _score_audio_async(
expectation (ScoringExpectation | None): Criteria forwarded to the transcript scorer.

Returns:
List of scores for the transcribed audio.
List of scores for the transcribed audio, or an empty list when the
transcript is empty (there is no text to score).

Raises:
FileNotFoundError: If the audio file does not exist.
ValueError: If transcription fails or returns empty text.
Exception: Whatever the transcription step raises when it fails; the
original exception is re-raised as-is (see ``_transcribe_audio_async``).
"""
audio_path = message_piece.converted_value

Expand Down
Loading