Skip to content

Commit b49194f

Browse files
Fix audio format types
1 parent 2474cfe commit b49194f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/lib/client.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Valid audio formats
3-
* @typedef {"pcm16"|"g711-ulaw"|"g711-alaw"} AudioFormatType
3+
* @typedef {"pcm16"|"g711_ulaw"|"g711_alaw"} AudioFormatType
44
*/
55
/**
66
* @typedef {Object} AudioTranscriptionType
@@ -312,7 +312,7 @@ export class RealtimeClient extends RealtimeEventHandler {
312312
/**
313313
* Valid audio formats
314314
*/
315-
export type AudioFormatType = "pcm16" | "g711-ulaw" | "g711-alaw";
315+
export type AudioFormatType = "pcm16" | "g711_ulaw" | "g711_alaw";
316316
export type AudioTranscriptionType = {
317317
enabled?: boolean;
318318
model: "whisper-1";

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { RealtimeUtils } from './utils.js';
55

66
/**
77
* Valid audio formats
8-
* @typedef {"pcm16"|"g711-ulaw"|"g711-alaw"} AudioFormatType
8+
* @typedef {"pcm16"|"g711_ulaw"|"g711_alaw"} AudioFormatType
99
*/
1010

1111
/**

0 commit comments

Comments
 (0)