Swiftube is an innovative project that utilizes OpenAI and Remotion to transform content in text format, into polished explainer videos. It uses Google's text-to-speech feature to provide the voice for the video.
This project is built with a create-t3-app
for frontend and an Express server for the backend (another repo).
To get started, follow these steps:
.env
file to the root of the project and include the necessary environment variables.Swiftube works by taking text input (prompt) from the user and utilizing OpenAI's APIs to generate talking points for the video. The script is then passed to Remotion, which generates the actual video with the help of Google's text-to-speech feature. The resulting video is then displayed to the user.
import { env } from '@/env.mjs';
import OpenAI from 'openai';
export const openai = new OpenAI({
apiKey: env.OPENAI_API_KEY,
});
Contributions are welcome and encouraged. If you would like to contribute, please follow these steps:
The source code in this repository is licensed under the MIT license. Remotion, a dependency of this project, uses the Remotion license. Note that for some entities a company license is needed. Read the terms here.