eyeD3 - Python的音頻文件處理庫
eyeD3 是一個Python工具用于處理音頻文件,特別是包含ID3元數據的mp3文件。提供了讀寫 ID3 標簽(v1.x 和 v2.3/v2.4)的功能。同時可檢測 MP3 文件的頭信息,包括比特率、采樣頻率和播放時間等。特性:
- Python package for writing application and/or plugins.
- Command-line tool driver script that supports plugins. viewer/editor interface.
- Easy editing/viewing of audio metadata from the command-line, using the ‘classic’ plugin.
- Support for ID3 versions 1.x, 2.2 (read-only), 2.3, and 2.4.
- Support for the MP3 audio format exposing details such as play time, bit rate, sampling frequency, etc.
- Abstract design allowing future support for different audio formats and metadata containers. </ul>
import eyed3audiofile = eyed3.load("song.mp3") audiofile.tag.artist = u"Nobunny" audiofile.tag.album = u"Love Visions" audiofile.tag.title = u"I Am a Girlfriend" audiofile.tag.track_num = 4
audiofile.tag.save()</pre>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!