feat: add tts_elevenlabs_token
This commit is contained in:
@@ -85,7 +85,6 @@ export class ElevenLabsTTS implements TTSModule {
|
||||
path: `/v1/text-to-speech/${voiceData.voice_id}/stream`,
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'xi-api-key': config.tts_elevenlabs_key,
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface Config {
|
||||
tts_default_voice: string | undefined;
|
||||
|
||||
tts_elevenlabs_key: string | undefined;
|
||||
tts_elevenlabs_token: string | undefined;
|
||||
tts_tiktok_sessionid: string | undefined;
|
||||
|
||||
steam_webapi_key: string | undefined;
|
||||
@@ -30,6 +31,7 @@ function loadConfig(): Config {
|
||||
tts_default_mode: process.env.DEFAULT_TTS_MODE,
|
||||
tts_default_voice: process.env.DEFAULT_TTS_VOICE,
|
||||
tts_elevenlabs_key: process.env.TTS_ELEVENLABS_KEY,
|
||||
tts_elevenlabs_token: process.env.TTS_ELEVENLABS_TOKEN,
|
||||
steam_webapi_key: process.env.STEAM_WEBAPI_KEY,
|
||||
aws_access_id: process.env.AWS_ACCESS_ID,
|
||||
aws_access_key: process.env.AWS_ACCESS_KEY,
|
||||
|
||||
Reference in New Issue
Block a user