Skip to content

Commit

Permalink
Improve exception msg for audio_read
Browse files Browse the repository at this point in the history
  • Loading branch information
boeddeker committed Nov 28, 2023
1 parent 3aa0078 commit 994a3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paderbox/io/audioread.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def load_audio(
if expected_sample_rate is not None:
if expected_sample_rate != sample_rate:
raise ValueError(
f'Requested sampling rate is {expected_sample_rate} but the '
f'audiofile has {sample_rate}'
f'Requested sampling rate is {expected_sample_rate!r} but the '
f'audiofile has {sample_rate!r}'
)

# When signal is multichannel, then soundfile returns (samples, channels)
Expand Down

0 comments on commit 994a3e3

Please sign in to comment.