This Network plugin adds an export option to Pressbooks that allows you to export Pressbooks books as audio files. It uses OpenAI to generate the audio.
- OpenAI API key
- Pressbooks >= 6.5
- Clone this repository into your
wp-content/plugins
directory or the folder where you have your Pressbooks plugins. - Run
composer install
in the plugin directory.
- Activate the plugin in your Pressbooks network plugin section.
- Set up your OpenAI API key in the Pressbooks network settings or in the book > OpenAI Settings page. The key defined in the network settings will be used by default if present.
- You can pick one of the voices available in OpenAI in the OpenAI Settings page of your book.
- Go to the export page of your book.
- Select the "MP3 Audio (AI)" option.
- Click the "Export Your Book" button.
- Wait for the audio to be generated.
This plugin is licensed under the GPLv2 or later.