OpenScienceLabs / opensciencelabs.github.io

Open Science Labs we page files
https://opensciencelabs.org
BSD 3-Clause "New" or "Revised" License
4 stars 16 forks source link

Fix: Verbose flag working by default on Artbox #155

Open investor-uyah opened 2 months ago

investor-uyah commented 2 months ago

The Artbox command line tool produces lengthy, unnecessary logs by default during runtime i.e. without the use of the --verbose flag. It looks like this at the moment.

(artbox) ✔ ~/artbox [main|✚ 1] 
01:09 # echo "Are you ready to join Link and Zelda in fighting off this unprecedented threat to Hyrule?" > /tmp/artbox/text.md
 artbox speech from-text \
    --title artbox \
    --input-path /tmp/artbox/text.md \
    --output-path /tmp/artbox/speech.mp3 \
    --engine edge-tts
WordBoundary: {'type': 'WordBoundary', 'offset': 1000000, 'duration': 1125000, 'text': 'Are'}
WordBoundary: {'type': 'WordBoundary', 'offset': 2625000, 'duration': 750000, 'text': 'you'}
WordBoundary: {'type': 'WordBoundary', 'offset': 3875000, 'duration': 2500000, 'text': 'ready'}
WordBoundary: {'type': 'WordBoundary', 'offset': 7000000, 'duration': 1000000, 'text': 'to'}
WordBoundary: {'type': 'WordBoundary', 'offset': 8625000, 'duration': 2625000, 'text': 'join'}
WordBoundary: {'type': 'WordBoundary', 'offset': 11250000, 'duration': 3125000, 'text': 'Link'}
WordBoundary: {'type': 'WordBoundary', 'offset': 14875000, 'duration': 1250000, 'text': 'and'}
WordBoundary: {'type': 'WordBoundary', 'offset': 16625000, 'duration': 3750000, 'text': 'Zelda'}
WordBoundary: {'type': 'WordBoundary', 'offset': 20750000, 'duration': 1250000, 'text': 'in'}
WordBoundary: {'type': 'WordBoundary', 'offset': 22250000, 'duration': 4500000, 'text': 'fighting'}
WordBoundary: {'type': 'WordBoundary', 'offset': 27250000, 'duration': 1625000, 'text': 'off'}
WordBoundary: {'type': 'WordBoundary', 'offset': 29625000, 'duration': 1875000, 'text': 'this'}
WordBoundary: {'type': 'WordBoundary', 'offset': 31875000, 'duration': 8250000, 'text': 'unprecedented'}
WordBoundary: {'type': 'WordBoundary', 'offset': 41000000, 'duration': 2250000, 'text': 'threat'}
WordBoundary: {'type': 'WordBoundary', 'offset': 44500000, 'duration': 875000, 'text': 'to'}
WordBoundary: {'type': 'WordBoundary', 'offset': 45375000, 'duration': 5250000, 'text': 'Hyrule'}

A fix should be implemented to have the tool operate normally. Logs should not be displayed except with the use of the --verbose flag. Also, logs should be designed to appear more helpful. For instance, a display message indicating the successful completion of the process and the name and location of the output file.