-
Notifications
You must be signed in to change notification settings - Fork 4
/
liqvid.config.ts
71 lines (65 loc) · 2 KB
/
liqvid.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// liqvid.config.ts
import type {LiqvidConfig} from "@liqvid/cli";
const os = require("os");
const port = process.env.PORT || 3000;
const scripts = {
"katex": {
"crossorigin": "anonymous",
"defer": true,
"integrity": "sha384-0fdwu/T/EQMsQlrHCCHoH10pkPLlKA1jL5dFyUOvB3lfeT2540/2g6YgSi2BL14p",
"development": "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.js",
"production": "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
},
"mathjax": {
"defer": true,
"development": "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js",
"production": "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
},
"three": {
"development": "https://unpkg.com/[email protected]/build/three.js",
"production": "https://unpkg.com/[email protected]/build/three.min.js"
}
};
const styles = {
"katex": {
"crossorigin": "anonymous",
"integrity": "sha384-KiWOvVjnN8qwAZbuQyWDIbfCLFhLXNETzBQjA/92pIowpC0d2O3nppDGQVgwd2nB",
"development": "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.css",
"production": "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
}
};
const config: LiqvidConfig = {
audio: {
transcribe: {
"input": "./dist/audio/audio.webm",
"captions": "./dist/captions.vtt",
"transcript": "./dist/transcript.json",
"apiKey": "ho6IutFyHawhFGGID3vU2PEz7_46-WKHTr6zhPNDU7e_",
"apiUrl": "https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/ad816af7-c138-4671-8c42-7e4e7fdd5151"
}
},
build: {
scripts,
styles
},
render: {
audioFile: "./dist/audio/audio.webm",
concurrency: os.cpus().length,
imageFormat: "png"
},
thumbs: {
url: `http://localhost:${port}/dist`,
browserHeight: 800,
browserWidth: 1280,
concurrency: os.cpus().length,
frequency: 1,
imageFormat: "png",
// make sure the output pattern matches the imageFormat
output: "./dist/thumbs/%s.png"
},
serve: {
port,
scripts, styles
}
};
module.exports = config;