Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@


async def entrypoint(ctx: JobContext):
stt = elevenlabs.STTv2(
model_id="scribe_v2_realtime",
vad_silence_threshold_secs=0.5,
vad_threshold=0.5,
min_speech_duration_ms=100,
min_silence_duration_ms=300,
stt = elevenlabs.STT(
use_realtime=True,
server_vad={
"vad_silence_threshold_secs": 0.5,
"vad_threshold": 0.5,
"min_speech_duration_ms": 100,
"min_silence_duration_ms": 300,
},
)

session = AgentSession(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,20 @@
See https://docs.livekit.io/agents/integrations/tts/elevenlabs/ for more information.
"""

from .models import STTAudioFormat, STTModels, TTSEncoding, TTSModels
from .stt import STT
from .stt_v2 import SpeechStreamv2, STTv2
from .models import STTRealtimeSampleRates, TTSEncoding, TTSModels
from .stt import STT, SpeechStream
from .tts import DEFAULT_VOICE_ID, TTS, Voice, VoiceSettings
from .version import __version__

__all__ = [
"STT",
"STTv2",
"SpeechStreamv2",
"SpeechStream",
"TTS",
"Voice",
"VoiceSettings",
"TTSEncoding",
"TTSModels",
"STTModels",
"STTAudioFormat",
"STTRealtimeSampleRates",
"DEFAULT_VOICE_ID",
"__version__",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
"mp3_44100_192",
]

STTModels = Literal["scribe_v2_realtime",]

STTAudioFormat = Literal[
"pcm_8000",
"pcm_16000",
"pcm_22050",
"pcm_24000",
"pcm_44100",
"pcm_48000",
STTRealtimeSampleRates = Literal[
8000,
16000,
22050,
24000,
44100,
48000,
]
Loading
Loading