Skip to content

Commit

Permalink
Add voice default + change prod public URL
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Aug 6, 2024
1 parent 14355f3 commit dcc2416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/utils/piperTTS/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ export default class PiperTTSClient {
type: "init",
text: String(textToSpeak),
voiceId: voiceId ?? this.voiceId,
baseUrl: `${window.location.origin}/public`,
baseUrl: import.meta.env.DEV
? `${window.location.origin}/public`
: `${window.location.origin}/`,
});

const blobURL = await this.waitForBlobResponse();
Expand Down
2 changes: 1 addition & 1 deletion server/models/systemSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const SystemSettings = {
TTSElevenLabsKey: !!process.env.TTS_ELEVEN_LABS_KEY,
TTSElevenLabsVoiceModel: process.env.TTS_ELEVEN_LABS_VOICE_MODEL,
// Piper TTS
TTSPiperTTSVoiceModel: process.env.TTS_PIPER_VOICE_MODEL,
TTSPiperTTSVoiceModel: process.env.TTS_PIPER_VOICE_MODEL ?? 'en_US-hfc_female-medium',

// --------------------------------------------------------
// Agent Settings & Configs
Expand Down

0 comments on commit dcc2416

Please sign in to comment.