Convert the story in the given directory to an M4A audio file.
Steps
- •Find the story
.mdfile in$ARGUMENTS/(the file that is notstory-prompt.md,image-prompt.md,preamble.md, orLICENSE-*). - •Run the conversion script, outputting the M4A file alongside the story:
The script defaults the output to the same path as the input with ancode
bash scripts/story_to_audio.sh -f <story-file>
.m4aextension. - •Report the output file path and size when done.
Options
If the user specifies a voice or speech rate, pass them through:
- •Voice:
-v <voice-name> - •Rate:
-r <words-per-minute>
Example with options:
code
bash scripts/story_to_audio.sh -f gambit/the_confabulators_gambit.md -v Samantha -r 180
To list available voices, run:
code
bash scripts/story_to_audio.sh -l