iluvcapra / wavinfo

Probe WAVE Files for all metadata

Home Page:https://wavinfo.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'WavBextReader' object has no attribute 'originator_date'

shrutikshirsagar opened this issue · comments

Hi, I am trying to get the recorded date and time of my audio file (original date and time). I have installed the pip install wavinfo==1.0 on the condo virtual environment. I am trying the following code:

print(info.bext.description)
print("----------")
print("Originator:", info.bext.originator)
print("Originator Ref:", info.bext.originator_ref)
print("Originator Date:", info.bext.originator_date)
print("Originator Time:", info.bext.originator_time)
print("Time Reference:", info.bext.time_reference)
print(info.bext.coding_history)

my error is as follows:
AttributeError Traceback (most recent call last)
in
----> 1 print(info.bext.description)
2 print("----------")
3 print("Originator:", info.bext.originator)
4 print("Originator Ref:", info.bext.originator_ref)
5 print("Originator Date:", info.bext.originator_date)

AttributeError: 'WavBextReader' object has no attribute 'description'

Please let me know if I am missing something or else, how to fix this attribute error.

Thanks a lot!

Would you be able to post the file you're trying to read?

Also you shouldn't be pinning the 1.0 release, I'd just install the latest.

Would you be able to post the file you're trying to read?
Hi, thanks for your quick reply! I am not able to post my audio file here as this do not support .wav type file. I can share it on gmail.

Also you shouldn't be pinning the 1.0 release, I'd just install the latest.

Hey, I am trying to get the original date and time of audio file. In latest version, I did not see any option for that. Please let me know if I am missing something. Thanks!

The code you posted before should work in the latest version, none of the interface from 1.0 has changed.