yarn install
create .env file with your OpenAI key
OPENAI_API_KEY={your OpenAI key}
GOOGLE_PROJECT_ID={your Google Project ID}
- Feed some source text (ideas, news, press releases) to your favarite LLM.
- Ask the LLM to write a podcast script in JSON (use the contents of "./prompt.md").
- Create a json file with that generated JSON (such as ./scripts/elon.json)
- Run
yarn run gen {path to the script file}
. - The output will be generated in the ./output folder.
- Claudeを使って台本(PodcastScript)を作成
- 各セリフにimagePromptを追加(src/imagep.tsを使用)
- セリフの分割(src/split.tsを使用、オプション)
- セリフの修正(src/fixtext.tsを使用、オプション)
- Youtubeライブ向けの縦動画であれば、その指示を追加(手作業)
- 音声ファイルの作成(src/main.tsを使って自動作成)
- 画像ファイルの作成(src/images.tsを使って自動生成)
- 映像ファイルの作成(src/movie.tsを使って自動生成)
{
"title": "title of the podcast",
"description": "The description of the podcast.",
"reference": "URL to the source data", // optional
"tts": "openAI", // or "nijivoice", default is "openAI"
"voices": ["nova", "onyx"], // TTS-specific voice identifiers (host and others), optional.
"script": [
{
"speaker": "Host",
"text": "words from the host."
},
{
"speaker": "Guest",
"text": "words from the guest."
},
...
]
}
Run yarn run ja {path to the script file}
Run yarn run mov {path to the script file}