Skip to content

Commit d23840f

Browse files
authored
fix(openai): default withAzure voice to marin, matching RealtimeModel (#2002)
1 parent 6dbf08f commit d23840f

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents-plugin-openai': patch
3+
---
4+
5+
Change the default voice in `RealtimeModel.withAzure` from `alloy` to `marin`, matching the `RealtimeModel` constructor and the Python plugin.

plugins/openai/src/realtime/realtime_model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class RealtimeModel extends llm.RealtimeModel {
248248
* @param apiKey - Azure OpenAI API key. If undefined, will attempt to read from the environment variable AZURE_OPENAI_API_KEY.
249249
* @param entraToken - Azure Entra authentication token. Required if not using API key authentication.
250250
* @param baseURL - Base URL for the API endpoint. If undefined, constructed from the azure_endpoint.
251-
* @param voice - Voice setting for audio outputs. Defaults to "alloy".
251+
* @param voice - Voice setting for audio outputs. Defaults to "marin".
252252
* @param inputAudioTranscription - Options for transcribing input audio. Defaults to @see DEFAULT_INPUT_AUDIO_TRANSCRIPTION.
253253
* @param inputAudioNoiseReduction - Options for noise reduction. Defaults to undefined.
254254
* @param turnDetection - Options for server-based voice activity detection (VAD). Defaults to @see DEFAULT_SERVER_VAD_OPTIONS.
@@ -266,7 +266,7 @@ export class RealtimeModel extends llm.RealtimeModel {
266266
apiKey,
267267
entraToken,
268268
baseURL,
269-
voice = 'alloy',
269+
voice = 'marin',
270270
temperature, // eslint-disable-line @typescript-eslint/no-unused-vars
271271
inputAudioTranscription = AZURE_DEFAULT_INPUT_AUDIO_TRANSCRIPTION,
272272
inputAudioNoiseReduction,

0 commit comments

Comments
 (0)