Unverified Commit 98d0d593 authored by Maja Bojarska's avatar Maja Bojarska Committed by GitHub
Browse files

Add AudioMetaData.__str__ override (#1339)

parent 2209da27
...@@ -38,3 +38,14 @@ class AudioMetaData: ...@@ -38,3 +38,14 @@ class AudioMetaData:
self.num_channels = num_channels self.num_channels = num_channels
self.bits_per_sample = bits_per_sample self.bits_per_sample = bits_per_sample
self.encoding = encoding self.encoding = encoding
def __str__(self):
return (
f"AudioMetaData("
f"sample_rate={self.sample_rate}, "
f"num_frames={self.num_frames}, "
f"num_channels={self.num_channels}, "
f"bits_per_sample={self.bits_per_sample}, "
f"encoding={self.encoding}"
f")"
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment