add streaming models to elevenlabs provider
This commit is contained in:
@@ -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"},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user