add streaming models to elevenlabs provider

This commit is contained in:
leonardotrapani
2026-02-01 00:49:37 +01:00
parent b6807d674f
commit 80b263a682
4 changed files with 104 additions and 2 deletions
+27 -1
View File
@@ -23,13 +23,16 @@ func (p *ElevenLabsProvider) IsLocal() bool {
}
func (p *ElevenLabsProvider) Models() []Model {
// ElevenLabs Scribe supports 90+ languages, including all 57 from our master list
// See: https://elevenlabs.io/speech-to-text
allLangs := language.AllLanguageCodes()
return []Model{
// batch models
{
ID: "scribe_v1",
Name: "Scribe v1",
Description: "99 languages, best accuracy",
Description: "90+ languages, best accuracy",
Type: Transcription,
Streaming: false,
Local: false,
@@ -48,6 +51,29 @@ func (p *ElevenLabsProvider) Models() []Model {
SupportedLanguages: allLangs,
Endpoint: &EndpointConfig{BaseURL: "https://api.elevenlabs.io", Path: "/v1/speech-to-text"},
},
// streaming models
{
ID: "scribe_v1-streaming",
Name: "Scribe v1 Streaming",
Description: "Real-time transcription, 90+ languages",
Type: Transcription,
Streaming: true,
Local: false,
AdapterType: "elevenlabs-streaming",
SupportedLanguages: allLangs,
Endpoint: &EndpointConfig{BaseURL: "wss://api.elevenlabs.io", Path: "/v1/speech-to-text/realtime"},
},
{
ID: "scribe_v2-streaming",
Name: "Scribe v2 Streaming",
Description: "Real-time with <150ms latency",
Type: Transcription,
Streaming: true,
Local: false,
AdapterType: "elevenlabs-streaming",
SupportedLanguages: allLangs,
Endpoint: &EndpointConfig{BaseURL: "wss://api.elevenlabs.io", Path: "/v1/speech-to-text/realtime"},
},
}
}