fix: fix default voice of cartesia tts

This commit is contained in:
Abhishek Kumar 2026-02-23 21:32:03 +05:30
parent 7e2de092ae
commit f1f4830012
4 changed files with 14 additions and 4 deletions

View file

@ -286,7 +286,7 @@ class CartesiaTTSConfiguration(BaseTTSConfiguration):
model: str = Field(
default="sonic-3", json_schema_extra={"examples": CARTESIA_TTS_MODELS}
)
voice: str = Field(default="a167e0f3-df7e-4d52-a9c3-f949145571bd")
voice: str = Field(default="3faa81ae-d3d8-4ab1-9e44-e50e46d33c30")
api_key: str

View file

@ -44,7 +44,7 @@ Deploy Dograh AI on a remote server to make it accessible from anywhere using yo
### Prerequisites
- A server with Docker and Docker Compose installed. It should have minimum of 8 GB RAM and 2 vCPUs.
- A server with Docker and Docker Compose installed. It should have minimum of 8 GB RAM and 4 vCPUs.
- Public IP address for your server
- TCP Ports 80, 443, 3478, 5349 and UDP Ports 3478, 5349 and 49152:49200 reachable from Internet (Port 80 and 443 to access the UI and rest of the ports for WebRTC Signaling)

View file

@ -1,8 +1,10 @@
import { NextResponse } from 'next/server';
import { getAuthProvider } from '@/lib/auth/config';
import logger from '@/lib/logger';
export async function GET() {
const provider = await getAuthProvider();
logger.debug(`Got provider ${provider} from getAuthProvider`)
return NextResponse.json({ provider });
}

View file

@ -3,6 +3,8 @@
import { Loader2 } from 'lucide-react';
import React, { createContext, lazy, Suspense, useContext, useEffect, useState } from 'react';
import logger from '@/lib/logger';
import type { AuthUser } from '../types';
// Shared context type for both Stack and Local providers
@ -46,8 +48,14 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
useEffect(() => {
fetch('/api/config/auth')
.then((res) => res.json())
.then((data) => setAuthProvider(data.provider || 'stack'))
.catch(() => setAuthProvider('local'));
.then((data) => {
logger.debug(`Setting auth provider as ${data.provider}`)
setAuthProvider(data.provider || 'stack')
})
.catch((e) => {
logger.error(`Got error ${e} while setting auth provider`)
setAuthProvider('local')
});
}, []);
if (!authProvider) {