Skip to content

Commit 4790530

Browse files
committed
alright
1 parent 78db848 commit 4790530

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type {HeadersFunction} from '@remix-run/node';
21
import App from '~/components/transcribe/App';
32

43
const Main = () => {
@@ -7,12 +6,9 @@ const Main = () => {
76

87
export default Main;
98

10-
export const headers: HeadersFunction = ({
11-
actionHeaders,
12-
errorHeaders,
13-
loaderHeaders,
14-
parentHeaders,
15-
}) => ({
9+
/* comment this out for development
10+
export const headers: HeadersFunction = ({}) => ({
1611
'Cross-Origin-Embedder-Policy': 'require-corp',
1712
'Cross-Origin-Opener-Policy': 'same-origin',
1813
});
14+
*/

packages/convert/app/seo.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export type RouteAction =
5757
}
5858
| {
5959
type: 'generic-probe';
60+
}
61+
| {
62+
type: 'transcribe';
6063
};
6164

6265
export const getHeaderTitle = (routeAction: RouteAction) => {
@@ -100,6 +103,10 @@ export const getHeaderTitle = (routeAction: RouteAction) => {
100103
return `Report bad videos to Remotion`;
101104
}
102105

106+
if (routeAction.type === 'transcribe') {
107+
return 'Fast video and audio transcription in the browser';
108+
}
109+
103110
throw new Error(`Invalid route action ${routeAction satisfies never}`);
104111
};
105112

@@ -144,6 +151,10 @@ export const getPageTitle = (routeAction: RouteAction) => {
144151
return `Report bad videos to Remotion`;
145152
}
146153

154+
if (routeAction.type === 'transcribe') {
155+
return `Online Audio and Video Transcriber - Remotion Convert`;
156+
}
157+
147158
throw new Error(`Invalid route action ${routeAction satisfies never}`);
148159
};
149160

@@ -194,6 +205,10 @@ export const getDescription = (routeAction: RouteAction) => {
194205
return `Report bad videos to Remotion. We will investigate and fix them.`;
195206
}
196207

208+
if (routeAction.type === 'transcribe') {
209+
return `A free and local online audio and video transcriber, powered by Whisper. No upload required, no watermarks, no limits.`;
210+
}
211+
197212
throw new Error(`Invalid route action ${routeAction satisfies never}`);
198213
};
199214

@@ -238,5 +253,9 @@ export const makeSlug = (routeAction: RouteAction) => {
238253
return `/resize/${routeAction.format}`;
239254
}
240255

256+
if (routeAction.type === 'transcribe') {
257+
return '/transcribe';
258+
}
259+
241260
throw new Error(`Invalid route action ${routeAction satisfies never}`);
242261
};

packages/docs/copy-convert.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ extraPages.push({
9090
type: 'report',
9191
});
9292

93+
extraPages.push({
94+
type: 'transcribe',
95+
});
96+
9397
for (const page of extraPages) {
9498
const slug = seo.makeSlug(page);
9599
const pageTitle = seo.getPageTitle(page);

packages/docs/vercel.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
1515
}
1616
]
17+
},
18+
{
19+
"source": "/convert",
20+
"headers": [
21+
{
22+
"key": "Cross-Origin-Embedder-Policy",
23+
"value": "require-corp"
24+
},
25+
{
26+
"key": "Cross-Origin-Opener-Policy",
27+
"value": "same-origin"
28+
}
29+
]
1730
}
1831
],
1932
"redirects": [

0 commit comments

Comments
 (0)