Encoding Issue in eyed3 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Encoding Issue in eyed3 (/thread-37775.html) |
Encoding Issue in eyed3 - giddyhead - Jul-20-2022 Hello everyone, I am seeking help with encoding using eyed3. I converted text to audio using: engine = pyttsx3.init() text = contents engine.setProperty("rate", 100) # 100 engine.runAndWait() # saving speech audio into a file engine.save_to_file(text, f'{frzz}.mp3') engine.runAndWait() print('Changing bitrate of', f'{frzz}.mp3') sound = AudioSegment.from_file(f'{frzz}.mp3') time.sleep(3)and ffmpeg to decrese the audio size: sound.export(f'{frzz} NASB.mp3', format="mp3", bitrate="32k")and the following to encode the meta data: audiofile = eyed3.load(os.path.join(sl2+' NASB.mp3')) if not audiofile.tag: audiofile.initTag() #print('This file ',sl2+' .mp3') else: audiofile.tag.artist = data[6] #sl2 audiofile.tag.album = data[2] #audiofile.tag.album_artist = "Various Artists" audiofile.tag.title = sl2 audiofile.tag.track_num = data[1] audiofile.tag.genre = '38'#"Gospel" audiofile.tag.comments.set =data[6] audiofile.tag.save(version=eyed3.id3.ID3_V2_3)When ran on currently 4 mp3 files, only three of them contains the meta data and the following error message is displayed in the IDE: Lame tag CRC check failedHow can I go about solving the info_tag crc issue or how might I go about it, so it supplies all the meta data to all mp3s. Thanks RE: Encoding Issue in eyed3 - Larz60+ - Jul-20-2022 This is the PiPi page for eyed3. The author's email address is posted there. PyPi hasn't seen an update for this package since 2020, there may be something more recent. I can find no other eyed3 threads on this forum, so emailing the author is probably best. for other mp3 packages, see: https://pypi.org/search/?q=mp3 RE: Encoding Issue in eyed3 - giddyhead - Jul-22-2022 (Jul-20-2022, 08:58 PM)Larz60+ Wrote: This is the PiPi page for eyed3. Quote:Got it. Thanks for the help looking into it now. |