forked from SociallyIneptWeeb/LanguageLeapAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
100 lines (69 loc) · 2.81 KB
/
.env.sample
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
### LOGGING ###
# Prints useful debugging information to console
# set LOGGING=False to disable logging
LOGGING=True
### SERVICES URLS ###
# Change urls or port number if services is running in another server or port
# Especially when running Whisper and Voicevox on Google Colab with ngrok
WHISPER_BASE_URL=http://localhost:9000
VOICEVOX_BASE_URL=http://localhost:50021
### TRANSLATOR ###
# Set True to use DeepL translator or False to use Google Translate
USE_DEEPL=True
### DEEPL AUTHENTICATION KEY ###
# Sign up for the free plan at https://www.deepl.com/pro-api?cta=header-pro-api/
# Then go to https://www.deepl.com/account/summary , scroll down and copy your auth key
# Only required if USE_DEEPL is set to True
DEEPL_AUTH_KEY=
### PUSH TO TALK KEY ###
# Key to hold down when speaking, e.g v, e
MIC_RECORD_KEY=f
# If this is set, the script will hold down this key while playing audio.
# For apps like Valorant with no Open Mic functionality, must be different from MIC_RECORD_KEY
INGAME_PUSH_TO_TALK_KEY=
### AUDIO DEVICE IDS ###
# run src/modules/get_audio_device_ids.py in order to obtain the id for your audio devices
# The mic you will be speaking into
MICROPHONE_ID=
# VoiceMeeter Input (VB-Audio VoiceMeeter VAIO)
# Plays Text-to-Speech audio into your speakers/headphones for you to hear
VOICEMEETER_INPUT_ID=
# CABLE Input (VB-Audio Virtual Cable)
# Plays Text-to-Speech audio into the mic input of your application
CABLE_INPUT_ID=
# VoiceMeeter Aux Output (VB-Audio VoiceMeeter AUX VAIO)
# Where your application audio (voice-chat) will play from
AUX_OUTPUT_ID=
### VOICEVOX SETTINGS ###
# Which speaker to use based on ID
VOICE_ID=15
# Type: float
SPEED_SCALE=1.7
VOLUME_SCALE=4.0
INTONATION_SCALE=1.5
PRE_PHONEME_LENGTH=1.0
POST_PHONEME_LENGTH=1.0
### SUBTITLE SETTINGS ###
# Max seconds to record for before returning the audio chunk
RECORD_TIMEOUT=3
# Max seconds between subtitles before starting a new one
PHRASE_TIMEOUT=2
# Max seconds to wait for subtitle from Whisper before dropping the request
# Useful if you do not want old subtitles to suddenly appear and overwrite current ones
REQUEST_TIMEOUT=4
# Language to translate from or for tts to speak in
# Use this website to select the correct language code according to ISO 639-1 https://www.andiamo.co.uk/resources/iso-language-codes/
TARGET_LANGUAGE_CODE=ja
# Position of Subtitle, offset from bottom middle of screen
OFFSET_X=0
OFFSET_Y=-200
# The font size of subtitle text
SUBTITLE_FONT_SIZE=35
# The color of subtitle text
SUBTITLE_COLOR=white
# The background color of your subtitles
SUBTITLE_BG_COLOR=black
# The color that will be considered transparent
# Put the same value as SUBTITLE_BG_COLOR so background of subtitles will be transparent as well
# Putting the same value as SUBTITLE_COLOR will cause your subtitles to be invisible
SACRIFICIAL_COLOR=black