Package: artbox
ArtBoxArtBox is a tool set for handling multimedia files.Documentation:https://ggpedia.gamesLicense: BSD-3 ClauseFeaturesTBDSetupArtBox uses some dependencies that maybe would not work well in your machine. In
order to have everything well installed, create a conda/mamba environment and
installartboxthere.$mambacreate--nameartbox"python>=3.8.1,<3.12"pygobjectpip
$condaactivateartbox
$pipinstallartboxExamplesFor the following examples, create the a temporary folder for artbox:$mkdir/tmp/artboxConvert text to audioBy default, theartbox voiceusesedge-ttsengine, but if you can also
specifygttswith the flag--engine gtts.$echo"Are you ready to join Link and Zelda in fighting off this unprecedented threat to Hyrule?">/tmp/artbox/text.md
$artboxvoicetext-to-speech\--titleartbox\--text-path/tmp/artbox/text.md\--output-path/tmp/artbox/voice.mp3\--engineedge-ttsIf you need to generate the audio for different language, you can use the flag--lang:$echo"Bom dia, mundo!">/tmp/artbox/text.md
$artboxvoicetext-to-speech\--titleartbox\--text-path/tmp/artbox/text.md\--output-path/tmp/artbox/voice.mp3\--langptIf you are usingedge-ttsengine (the default one), you can also specify the
locale for that language, for example:$echo"Are you ready to join Link and Zelda in fighting off this unprecedented threat to Hyrule?">/tmp/artbox/text.md
$artboxvoicetext-to-speech\--titleartbox\--text-path/tmp/artbox/text.md\--output-path/tmp/artbox/voice.mp3\--engineedge-tts\--langen-INAdditionally, if you are using edge-tts, you can specify--rate,--volume,
and--pitch, for example:$echo"Do you want some coffee?">/tmp/artbox/text.md
$artboxvoicetext-to-speech\--titleartbox\--text-path/tmp/artbox/text.md\--output-path/tmp/artbox/voice.mp3\--engineedge-tts\--langen\--rate+10%\--volume-10%\--pitch-5HzDownload a youtube videoIf you want to download videos from the youtube, you can use the following
command:$artboxyoutubedownload\--urlhttps://www.youtube.com/watch?v=zw47_q9wbBE\--output-path/tmp/artbox/The command above downloads using a random resolution. If you want a specific
resolution, use the flat--resolution:$artboxyoutubedownload\--urlhttps://www.youtube.com/watch?v=zw47_q9wbBE\--output-path/tmp/artbox/\--resolution360pCreate a song based on the musical notes# json formatecho'["E", "D#", "E", "D#", "E", "B", "D", "C", "A"]'>/tmp/artbox/notes.txt
$artboxsoundnotes-to-audio\--input-path/tmp/artbox/notes.txt\--output-path/tmp/artbox/music.mp3\--duration2Remove the audio from a videoFirst, download the youtube videohttps://www.youtube.com/watch?v=zw47_q9wbBEas explained before.Next, run the following command:$artboxvideoremove-audio\--input-path"/tmp/artbox/The Legend of Zelda Breath of the Wild - Nintendo Switch Presentation 2017 Trailer.mp4"\--output-path/tmp/artbox/botw.mp4Extract the audio from a videoFirst, download the youtube videohttps://www.youtube.com/watch?v=zw47_q9wbBEas explained before.Next, run the following command:$artboxvideoextract-audio\--input-path"/tmp/artbox/The Legend of Zelda Breath of the Wild - Nintendo Switch Presentation 2017 Trailer.mp4"\--output-path/tmp/artbox/botw-audio.mp3Combine audio and video filesFirst, execute the previous steps:Download a youtube videoRemove the audio from a videoExtract the audio from a videoNext, run the following command:$artboxvideocombine-video-and-audio\--video-path/tmp/artbox/botw.mp4\--audio-path/tmp/artbox/botw-audio.mp3\--output-path/tmp/artbox/botw-combined.mp4Additional dependenciesIf you want to use Python to play your audio files, you can installplaysound:$pipwheel--use-pep517"playsound (==1.3.0)"TroubleshootAfter installing withpoetry install:Patchpytube(ref:https://github.com/pytube/pytube/issues/1773):sed -i 's/(r"^$\\w+\\W")/(r"^\\w+\\W")/' $CONDA_PREFIX/lib/python3.*/site-packages/pytube/cipher.py