How this Script works : User just need to download the file and run the mp4_to_mp3_converter.py on their local system. Now on the main window of the application user needs to select the mp4 file from the local system using SELECT button which he/she wants to convert to audio. After selecting the mp4 file, user will be able to see the filename# saving speech audio into a file engine.save_to_file(text, "python.mp3") engine.runAndWait() A new MP3 file will appear in the current directory; check it out! Speech Synthesis using OpenAI API. In this section, we'll be using the newly released OpenAI audio models. Before we get started, make sure to update openai library to the latest version:
Using Popen is good if you want to run multiple programs. The program given below runs multiple instances of ffmpeg in parallel to convert lots of videos (e.g. from a camera or phone) to MP4 format. #!/usr/bin/env python3 # vim:fileencoding=utf-8:ft=python # # Author: R.F. Smith # Last modified: 2015-09-22 21:41:17 +0200