Skip to content

🎥 Make videos programmatically with React

rename gtts slug to google-tts

Jonny Burger7b5fec2671a6
diff --git a/packages/create-video/src/templates.tsx b/packages/create-video/src/templates.tsx
index 9acaea7c65..51880d374b 100644
--- a/packages/create-video/src/templates.tsx
+++ b/packages/create-video/src/templates.tsx
@@ -33,7 +33,7 @@ export type Template = {
| 'three'
| 'still'
| 'tts'
- | 'gtts'
+ | 'google-tts'
| 'audiogram'
| 'skia'
| 'tailwind'
@@ -202,7 +202,7 @@ export const FEATURED_TEMPLATES: Template[] = [
width: 1920,
height: 1080,
},
- cliId: 'gtts' as const,
+ cliId: 'google-tts' as const,
type: 'video' as const,
defaultBranch: 'master',
},
diff --git a/packages/docs/docs/4-0-migration.md b/packages/docs/docs/4-0-migration.md
index b960be9956..83bde8d564 100644
--- a/packages/docs/docs/4-0-migration.md
+++ b/packages/docs/docs/4-0-migration.md
@@ -318,5 +318,5 @@ If you register a composition with a component that requires some props, you now
- All packages: ESLint has been upgraded to `8.42.0`
- All packages: TypeScript ESLint has been upgraded to `5.59.9`
- For contributors: Updated `pnpm` to `8.5.1`
-- [New Google TTS template!](/templates/gtts)
+- [New Google TTS template!](/templates/google-tts)
- [Recommended Docker file](/docs/docker) does not install `ffmpeg` anymore
diff --git a/packages/docs/out/template-google-tts.png b/packages/docs/out/template-google-tts.png
new file mode 100644
index 0000000000..4c8ac89cfd
Binary files /dev/null and b/packages/docs/out/template-google-tts.png differ
diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsx
index eebfc75f0d..8a322e0305 100644
--- a/packages/docs/src/components/IconForTemplate.tsx
+++ b/packages/docs/src/components/IconForTemplate.tsx
@@ -88,7 +88,7 @@ export const IconForTemplate: React.FC<{
);
}
- if (template.cliId === "gtts") {
+ if (template.cliId === "google-tts") {
return (
<TTSIcon
style={{
diff --git a/packages/docs/static/generated/template-gtts.png b/packages/docs/static/generated/template-gtts.png
deleted file mode 100644
index d9fd8b3ec4..0000000000
Binary files a/packages/docs/static/generated/template-gtts.png and /dev/null differ