-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
86 lines (78 loc) · 1.88 KB
/
settings.js
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import dotenv from "dotenv"
dotenv.config()
const googleSearchEngineId = process.env.GOOGLE_SEARCH_ENGINE_ID
const awsSecretAccessKey = process.env.AWS_SECRET_ACCESS_KEY
const awsAccessKeyId = process.env.AWS_ACCESS_KEY_ID
const awsRegion = process.env.AWS_REGION
const runningIn = process.env.RUNNING_IN
const apiKeys = {
openai: process.env.OPENAI_KEY,
rapidapi: process.env.RAPIDAPI_KEY,
googleSearch: process.env.GOOGLE_SEARCH_KEY
}
const languagesSettings = {
pt: {
language: "portuguese",
regionCode: "BR"
},
en: {
language: "english",
regionCode: "US"
},
es: {
language: "spanish",
regionCode: "ES"
}
}
const languages = Object.keys(languagesSettings)
const contentProviders = ["Wikipedia", "ChatGPT"]
const text2speechProviders = ["AWS-Polly", "Google-TTS"]
const openaiModel = "text-davinci-003"
const translations = {
pt: {
credits: "Créditos",
prefixes: {
"The history of": "A história de",
"Who is": "Quem é",
"What is": "O que é"
}
},
en: {
credits: "Credits",
prefixes: {
"The history of": "The history of",
"Who is": "Who is",
"What is": "What is"
}
},
es: {
credits: "Creditos",
prefixes: {
"The history of": "La historia de",
"Who is": "Quién es",
"What is": "Qué es"
}
}
}
const defaultSettings = {
text2speechProvider: "google-tts",
contentProvider: "wikipedia",
maximumSentences: 7,
language: "pt",
dynamicCaption: false
}
export {
apiKeys,
languages,
runningIn,
awsRegion,
openaiModel,
translations,
awsAccessKeyId,
defaultSettings,
contentProviders,
languagesSettings,
awsSecretAccessKey,
text2speechProviders,
googleSearchEngineId
}