From d4d02394fb13ff6f5ff8357618ae9d04548dbdb9 Mon Sep 17 00:00:00 2001 From: htsuruo Date: Tue, 5 Nov 2024 16:04:30 +0900 Subject: [PATCH 1/2] feat: Support new 5 voices --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index be37288..3b6f130 100644 --- a/lib/client.js +++ b/lib/client.js @@ -35,7 +35,7 @@ import { RealtimeUtils } from './utils.js'; * @property {string} [model] * @property {string[]} [modalities] * @property {string} [instructions] - * @property {"alloy"|"shimmer"|"echo"} [voice] + * @property {"alloy"|"ash"|"ballad"|"coral"|"echo"|"sage"|"shimmer"|"verse"} [voice] * @property {AudioFormatType} [input_audio_format] * @property {AudioFormatType} [output_audio_format] * @property {AudioTranscriptionType|null} [input_audio_transcription] From 8d6135ab666a9fe244b19522c5622da370722cdc Mon Sep 17 00:00:00 2001 From: htsuruo Date: Tue, 5 Nov 2024 16:52:32 +0900 Subject: [PATCH 2/2] chore: Support five new voices for types --- dist/lib/client.d.ts | 4 ++-- dist/lib/client.d.ts.map | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/lib/client.d.ts b/dist/lib/client.d.ts index 2783270..c091208 100644 --- a/dist/lib/client.d.ts +++ b/dist/lib/client.d.ts @@ -26,7 +26,7 @@ * @property {string} [model] * @property {string[]} [modalities] * @property {string} [instructions] - * @property {"alloy"|"shimmer"|"echo"} [voice] + * @property {"alloy"|"ash"|"ballad"|"coral"|"echo"|"sage"|"shimmer"|"verse"} [voice] * @property {AudioFormatType} [input_audio_format] * @property {AudioFormatType} [output_audio_format] * @property {AudioTranscriptionType|null} [input_audio_transcription] @@ -336,7 +336,7 @@ export type SessionResourceType = { model?: string; modalities?: string[]; instructions?: string; - voice?: "alloy" | "shimmer" | "echo"; + voice?: "alloy" | "ash" | "ballad" | "coral" | "echo" | "sage" | "shimmer" | "verse"; input_audio_format?: AudioFormatType; output_audio_format?: AudioFormatType; input_audio_transcription?: AudioTranscriptionType | null; diff --git a/dist/lib/client.d.ts.map b/dist/lib/client.d.ts.map index 10e52f3..d249412 100644 --- a/dist/lib/client.d.ts.map +++ b/dist/lib/client.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../lib/client.js"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;GAEG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AACH;IACE;;;OAGG;IACH,sEAFW;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,+BAA+B,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,EAsCrG;IAlCC;;;;;;;;;;;;MAYC;IACD,kBAAuB;IACvB;;QAIC;IACD;;;;;MAKC;IACD,sBAKE;IACF,mCAA8C;IAKhD;;;;OAIG;IACH,qBAMC;IALC,wBAA2B;IAC3B,UAAe;IAEf,sBAAyC;IAI3C;;;;OAIG;IACH,6BAkHC;IAED;;;OAGG;IACH,eAFa,OAAO,CAInB;IAED;;;OAGG;IACH,SAFa,IAAI,CAShB;IAED;;;;OAIG;IACH,WAFa,OAAO,CAAC,IAAI,CAAC,CASzB;IAED;;;OAGG;IACH,yBAFa,OAAO,CAAC,IAAI,CAAC,CAUzB;IAED;;OAEG;IACH,mBAIC;IAED;;;OA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