Update generate_mp3.sh script

The generate_mp3.sh script has been updated with the following changes:

- Added a comment to specify the directory for MP3 files.
- Implemented a command to open the handout.md file using the 'am start' command.
- The 'am start' command opens the file in VIEW mode with the 'text/plain' MIME type.
- This enhancement provides a convenient way to access the handout.md file directly.

The commit aims to improve the functionality and user experience of the generate_mp3.sh script by enabling easy access to the handout file.
This commit is contained in:
Ratatoskr 2024-02-01 13:53:31 +01:00
parent a8a923d16b
commit 382e28c481
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -23,6 +23,9 @@ mp3_dir="/data/scripts/.mp3"
# remove old files # remove old files
rm -f "$txt_dir"/*complete.txt rm -f "$txt_dir"/*complete.txt
# open handout.md file
am start --user 0 -a android.intent.action.VIEW -d file:///data/local/tmp/file.txt -t text/plain
# Function to create MP3 files # Function to create MP3 files
create_mp3_files() { create_mp3_files() {