Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encoding Issue in eyed3
#1
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 failed
How 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
Reply
#2
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
Reply
#3
(Jul-20-2022, 08:58 PM)Larz60+ Wrote: 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

Quote:Got it. Thanks for the help looking into it now.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,350 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  Issue with text encoding ans smtplib.SMTP.sendmail() JustSomeUsername383 1 4,157 Jul-23-2019, 03:15 PM
Last Post: JustSomeUsername383
  Encoding issue for the console output ted_chou12 4 3,468 Sep-08-2017, 09:11 AM
Last Post: ted_chou12
  Encoding issue while running Sysinternals Autorunsc via Python subprocess JChris 0 3,453 Jun-13-2017, 12:01 AM
Last Post: JChris
  Issue on text decoding and encoding problem desul 1 3,094 Mar-02-2017, 08:38 AM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020