4 Commits

Author SHA1 Message Date
0fb0ae1e48
Refactor directory comment, update file opening command, and improve German MP3 creation comment in generate_mp3.sh:
- Refactored a directory comment in the script for clarity.
- Updated the file opening command to use the correct path (/sdcard/handout.html).
- Improved the comment explaining the creation of German MP3 files.
2024-02-06 17:38:20 +01:00
382e28c481
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.
2024-02-01 13:53:31 +01:00
2badabb616
Refactor script to generate MP3 files
In this commit, I made several improvements to the 'generate_mp3.sh' script:

1. Removed old complete files before processing to ensure a clean slate.
2. Modified the 'create_mp3_files' function to use '>>' instead of '>' when appending text to the complete files.
3. Updated the comments in the script for better clarity.

These changes help maintain a more organized and reliable MP3 generation process. The script now properly appends text to the 'de_complete.txt' and 'es_complete.txt' files, and it removes old complete files before starting the processing.

File Changes:
- Modified 'generate_mp3.sh' (see diff for details)

Note: Please review and test the changes to ensure they meet your requirements.
2024-01-29 13:31:29 +01:00
e2b06dab34
Initial commit
Added generate_mp3.sh script:
- Author: Michael Haider
- Created on: 26.01.2024
- Description: This script generates MP3 files from text files in German and Spanish using gtts-cli (Google Text-to-Speech).
- The script exports the path to the programs, defines language and category order, sets directories, and includes a function to create MP3 files.
- The generated MP3 files are created with gtts-cli in German or Spanish slow mode based on the file content.
- The script then sets the media volume and loops through categories and languages to play the generated MP3 files at normal or half speed, based on the language indication.
2024-01-26 23:49:50 +01:00