Get the latest tech news
Lost Chapter of Automate the Boring Stuff: Audio, Video, and Webcams in Python
(Lost Chapter from Automate the Boring Stuff) Posted by Al Sweigart in misc The third edition of Automate the Boring Stuff with Python is now available for purchase or to read for free online. It has updated content and several new chapters, but one chapter that was left on the cutting room floor was "Working with Audio, Video, and Webcams".
If playsound() raises exceptions (which happens if the filename contains odd characters such as an equal sign), try passing a Path object of the audio file instead of a string, as in the following example: Alternatively, the website https://ffmpeg.app/ features an interactive prompt system that reliably guides you to an ffmpeg command with arguments to carry out your intended actions. Python has several third-party modules for downloading, playing, and editing audio and video data, and this chapter provides small code examples you can embed in your own programs.
Or read this on Hacker News