Skip to content

Commit 07988dc

Browse files
committed
Fix build errors
1 parent ad9734f commit 07988dc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/elevenlabs/realtime/scribe.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import subprocess
44
import typing
55
from enum import Enum
6-
from typing import Required, overload
6+
from typing import overload
7+
8+
from typing_extensions import Required
79

810
try:
911
from websockets.asyncio.client import connect as websocket_connect
@@ -247,13 +249,12 @@ async def _connect_url(self, options: RealtimeUrlOptions) -> RealtimeConnection:
247249

248250
# Default to 16kHz for URL streaming
249251
sample_rate = 16000
250-
encoding = "pcm_16000"
252+
audio_format = "pcm_16000"
251253

252254
# Build WebSocket URL
253255
ws_url = self._build_websocket_url(
254256
model_id=model_id,
255-
encoding=encoding,
256-
sample_rate=sample_rate,
257+
audio_format=audio_format,
257258
commit_strategy=commit_strategy.value,
258259
vad_silence_threshold_secs=vad_silence_threshold_secs,
259260
vad_threshold=vad_threshold,

0 commit comments

Comments
 (0)