@@ -144,16 +144,13 @@ export default defineAgent({
144144 const session = new voice .AgentSession ({
145145 // Speech-to-text (STT) is your agent's ears, turning the user's speech into text that the LLM can understand
146146 // See all available models at https://docs.livekit.io/agents/models/stt/
147- // stt: new inference.STT({ model: 'assemblyai/universal-streaming:en', language: 'en' }),
148- stt: ' assemblyai/universal-streaming:en' ,
147+ stt: new inference .STT ({ model: ' deepgram/flux-general' , language: ' en' }),
149148 // A Large Language Model (LLM) is your agent's brain, processing user input and generating a response
150149 // See all available models at https://docs.livekit.io/agents/models/llm/
151- // llm: new inference.LLM({ model: 'openai/gpt-4.1-mini' }),
152- llm: ' openai/gpt-4.1-mini' ,
150+ llm: new inference .LLM ({ model: ' openai/gpt-4.1-mini' }),
153151 // Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear
154152 // See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/
155- // tts: new inference.TTS({ model: 'cartesia/sonic-2:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc', voice: '9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' }),
156- tts: ' cartesia/sonic-2:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' ,
153+ tts: new inference .TTS ({ model: ' cartesia/sonic-3' , voice: ' 9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' }),
157154 // VAD and turn detection are used to determine when the user is speaking and when the agent should respond
158155 // See more at https://docs.livekit.io/agents/build/turns
159156 vad: ctx .proc .userData .vad ! as silero .VAD ,
@@ -250,9 +247,9 @@ export default defineAgent({
250247
251248 const session = new voice .AgentSession ({
252249 vad: ctx .proc .userData .vad ! as silero .VAD ,
253- stt: new deepgram .STT (),
254- llm: new openai .LLM (),
255- tts: new elevenlabs .TTS (),
250+ stt: new inference .STT ({ model: ' deepgram/flux-general ' , language: ' en ' } ),
251+ llm: new inference .LLM ({ model: ' openai/gpt-4.1-mini ' } ),
252+ tts: new inference .TTS ({ model: ' cartesia/sonic-3 ' , voice: ' 9626c31c-bec5-4cca-baa8-f8ba9e84c8bc ' } ),
256253 userData: userdata ,
257254 });
258255
0 commit comments