Thanks. read_audio works fine, the files are OK, but converting them to mfcc gives me a memory error (see below).
I tried a few audio books - each one is one very long file (6-12 hours) and they all get the same problem, when I try shorter audio files, they work fine.
are you aware of a limit to the length of and audio book file?
[INFO] Converting audio file to mono...
[INFO] Converting audio file to mono... done
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "D:\My Data\Downloads\aenas\aeneas-master\aeneas\tools\extract_mfcc.py", line 107, in <module>
main()
File "D:\My Data\Downloads\aenas\aeneas-master\aeneas\tools\extract_mfcc.py", line 104, in main
ExtractMFCCCLI().run(arguments=sys.argv)
File "aeneas\tools\abstract_cli_program.py", line 300, in run
exit_code = self.perform_command()
File "D:\My Data\Downloads\aenas\aeneas-master\aeneas\tools\extract_mfcc.py", line 83, in perform_command
audiofile.load_data()
File "aeneas\audiofile.py", line 285, in load_data
self.audio_sample_rate, self.audio_data = scipywavread(self.file_path)
File "aeneas\wavfile.py", line 180, in read
data = _read_data_chunk(fid, comp, noc, bits, mmap=mmap)
File "aeneas\wavfile.py", line 78, in _read_data_chunk
data = numpy.fromstring(fid.read(size), dtype=dtype)
MemoryError
|