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
9 changes: 9 additions & 0 deletions .changeset/wild-regions-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@voltagent/voice": minor
---

feat(voice): add scribe_v2 to eleventlabs models and change to default

Added scribe_v2 elevenlabs model

Resolves #1004
2 changes: 1 addition & 1 deletion examples/with-voice-elevenlabs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const voiceProvider = new ElevenLabsVoiceProvider({
apiKey: process.env.ELEVENLABS_API_KEY || "",
voice: "Adam", // Default voice, you can change to any available voice
ttsModel: "eleven_multilingual_v2",
speechModel: "scribe_v1",
speechModel: "scribe_v2",
options: {
stability: 0.5,
similarityBoost: 0.75,
Expand Down
2 changes: 1 addition & 1 deletion packages/voice/src/providers/elevenlabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ElevenLabsVoiceProvider extends BaseVoiceProvider {

constructor(options: ElevenLabsVoiceOptions) {
super(options);
this.speechModel = options.speechModel || "scribe_v1";
this.speechModel = options.speechModel || "scribe_v2";
this.ttsModel = options.ttsModel || "eleven_multilingual_v2";
this.voice = options.voice || "Callum";
this.voiceSettings = {
Expand Down
3 changes: 2 additions & 1 deletion packages/voice/src/providers/elevenlabs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const ELEVENLABS_MODELS = [
"eleven_multilingual_sts_v2",
"eleven_english_sts_v2",
"scribe_v1",
"scribe_v2",
] as const;

export type ElevenLabsModel = (typeof ELEVENLABS_MODELS)[number];
Expand All @@ -22,7 +23,7 @@ export type ElevenLabsVoiceOptions = BaseVoiceProviderOptions & {

/**
* Model to use for speech recognition
* @default "scribe_v1"
* @default "scribe_v2"
*/
speechModel?: ElevenLabsModel;

Expand Down