https://github.com/felippechemello/remotion-tts-example
https://github.com/felippechemello/remotion-tts-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felippechemello/remotion-tts-example
- Owner: FelippeChemello
- Created: 2021-06-03T23:08:39.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-06T07:03:23.000Z (3 months ago)
- Last Synced: 2025-02-06T08:22:08.362Z (3 months ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remotion video
Welcome to your TTS Remotion project!
## Get Started
- Create Azure Account
- Create TTS service on Azure, set `AZURE_TTS_KEY` and `AZURE_TTS_REGION`.
> It may take some time until the subscription is active, in the meanwhile you might get "1006" errors even if the token is valid.
- Create AWS Account
- Setup S3 Bucket with public access
- Configure bucket policy
```json
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::/*"
}
]
}
```
- Configure bucket CORS
- Use it only as a template, we recommend you to edit "AllowedOrigins" entering your origin
```json
[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["HEAD", "GET", "PUT", "POST", "DELETE"],
"AllowedOrigins": ["*"],
"ExposeHeaders": ["ETag", "x-amz-meta-custom-header"]
}
]
```
- Copy `.env.example` to `.env` entering your secrets
- ⚠️ Ensure your AWS credentials only allow reading and uploading to a specific S3 bucket `s3:GetObject` and `s3:PutObject` to not compromise your credentials if you deploy your Remotion project
- Use method `synthesizeSpeech` from `src/TextToSpeech/tts.ts` to convert Text to Audio. Using `createS3Url()` you can create a source for the `` component.## Example
[](http://www.youtube.com/watch?v=gbIno38xdhQ "Remotion TTS example")
## Commands
**Install Dependencies**
```console
npm install
```**Start Preview**
```console
npm run dev
```**Render video**
```console
npx remotion render
```See [docs for server-side rendering](https://www.remotion.dev/docs/ssr) here.
**Upgrade Remotion**
```console
npx remotion upgrade
```## Docs
Get started with Remotion by reading the [fundamentals page](https://www.remotion.dev/docs/the-fundamentals).
## Issues
Found an issue with Remotion? [File an issue here](https://github.com/JonnyBurger/remotion/issues/new).
## License
Note that for some entities a company license is needed. Read [the terms here](https://github.com/JonnyBurger/remotion/blob/main/LICENSE.md).