Jul-20-2022, 06:21 PM
Hello everyone,
I am seeking help with encoding using eyed3. I converted text to audio using:
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