Documentation
¶
Overview ¶
Package elevenlabs provides OmniVoice provider implementations using the ElevenLabs API.
This package implements the OmniVoice interfaces (tts.Provider, stt.Provider, agent.Provider) using the go-elevenlabs SDK as the underlying client.
Installation ¶
go get github.com/agentplexus/omnivoice-elevenlabs
Quick Start ¶
import (
"github.com/agentplexus/omnivoice/tts"
eleventts "github.com/agentplexus/omnivoice-elevenlabs/tts"
)
// Create provider
provider, err := eleventts.New()
if err != nil {
log.Fatal(err)
}
// Use with OmniVoice client
client := tts.NewClient(provider)
result, err := client.Synthesize(ctx, "Hello world", tts.SynthesisConfig{
VoiceID: "21m00Tcm4TlvDq8ikWAM",
})
Environment Variables ¶
The providers use the ELEVENLABS_API_KEY environment variable for authentication by default. You can also provide the API key explicitly using WithAPIKey.
Index ¶
Constants ¶
View Source
const ProviderName = "elevenlabs"
ProviderName is the name used to identify this provider in OmniVoice.
View Source
const Version = "0.1.0"
Version is the SDK version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent provides an OmniVoice Agent provider implementation using ElevenLabs.
|
Package agent provides an OmniVoice Agent provider implementation using ElevenLabs. |
|
internal
|
|
|
convert
Package convert provides type conversion utilities between OmniVoice and ElevenLabs types.
|
Package convert provides type conversion utilities between OmniVoice and ElevenLabs types. |
|
Package stt provides an OmniVoice STT provider implementation using ElevenLabs.
|
Package stt provides an OmniVoice STT provider implementation using ElevenLabs. |
|
Package tts provides an OmniVoice TTS provider implementation using ElevenLabs.
|
Package tts provides an OmniVoice TTS provider implementation using ElevenLabs. |
Click to show internal directories.
Click to hide internal directories.