Command Line Interface
Once you have installed the blueprint, you can use it from the CLI.
You can either provide the path to a configuration file:
Or provide values to the arguments directly:
document-to-podcast \
--input_file "example_data/Mozilla-Trustworthy_AI.pdf" \
--output_folder "example_data"
--text_to_text_model "Qwen/Qwen2.5-1.5B-Instruct-GGUF/qwen2.5-1.5b-instruct-q8_0.gguf"
Note that you can also exit the podcast generation prematurely (before the whole podcast is created), by pressing Ctrl+C in the terminal. This will make the application stop the generation, but still save the result (script & audio) to disk up until that point.
document_to_podcast.cli.document_to_podcast(input_file=None, output_folder=None, text_to_text_model='bartowski/Qwen2.5-3B-Instruct-GGUF/Qwen2.5-3B-Instruct-f16.gguf', text_to_text_prompt=DEFAULT_PROMPT, text_to_speech_model='OuteAI/OuteTTS-0.2-500M-GGUF/OuteTTS-0.2-500M-FP16.gguf', speakers=None, outetts_language='en', from_config=None)
Generate a podcast from a document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_file
|
str
|
The path to the input file. Supported extensions:
|
None
|
output_folder
|
str
|
The path to the output folder. Two files will be created:
|
None
|
text_to_text_model
|
str
|
The text-to-text model_id. Need to be formatted as Need to be a gguf file. Defaults to |
'bartowski/Qwen2.5-3B-Instruct-GGUF/Qwen2.5-3B-Instruct-f16.gguf'
|
text_to_text_prompt
|
str
|
The prompt for the text-to-text model. Defaults to DEFAULT_PROMPT. |
DEFAULT_PROMPT
|
text_to_speech_model
|
str
|
The text-to-speech model_id.
Defaults to |
'OuteAI/OuteTTS-0.2-500M-GGUF/OuteTTS-0.2-500M-FP16.gguf'
|
speakers
|
list[Speaker] | None
|
The speakers for the podcast. Defaults to DEFAULT_SPEAKERS. |
None
|
outetts_language
|
str
|
For OuteTTS models we need to specify which language to use. Supported languages in 0.2-500M: en, zh, ja, ko. More info: https://github.com/edwko/OuteTTS |
'en'
|
from_config
|
str
|
The path to the config file. Defaults to None. If provided, all other arguments will be ignored. |
None
|
Source code in src/document_to_podcast/cli.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
document_to_podcast.config.Config
Bases: BaseModel