@@ -5,7 +5,7 @@ import type { ElevenLabsBlockResponse } from '@/tools/elevenlabs/types'
55export const ElevenLabsBlock : BlockConfig < ElevenLabsBlockResponse > = {
66 type : 'elevenlabs' ,
77 name : 'ElevenLabs' ,
8- description : 'Convert TTS using ElevenLabs' ,
8+ description : 'Convert text to speech with ElevenLabs' ,
99 authMode : AuthMode . ApiKey ,
1010 longDescription : 'Integrate ElevenLabs into the workflow. Can convert text to speech.' ,
1111 docsLink : 'https://docs.sim.ai/tools/elevenlabs' ,
@@ -42,6 +42,21 @@ export const ElevenLabsBlock: BlockConfig<ElevenLabsBlockResponse> = {
4242 { label : 'eleven_flash_v2_5' , id : 'eleven_flash_v2_5' } ,
4343 { label : 'eleven_v3' , id : 'eleven_v3' } ,
4444 ] ,
45+ value : ( ) => 'eleven_monolingual_v1' ,
46+ } ,
47+ {
48+ id : 'stability' ,
49+ title : 'Stability' ,
50+ type : 'short-input' ,
51+ placeholder : '0.0 to 1.0 (e.g., 0.5)' ,
52+ mode : 'advanced' ,
53+ } ,
54+ {
55+ id : 'similarityBoost' ,
56+ title : 'Similarity Boost' ,
57+ type : 'short-input' ,
58+ placeholder : '0.0 to 1.0 (e.g., 0.75)' ,
59+ mode : 'advanced' ,
4560 } ,
4661 {
4762 id : 'apiKey' ,
@@ -62,6 +77,14 @@ export const ElevenLabsBlock: BlockConfig<ElevenLabsBlockResponse> = {
6277 text : params . text ,
6378 voiceId : params . voiceId ,
6479 modelId : params . modelId ,
80+ stability :
81+ params . stability !== undefined && params . stability !== ''
82+ ? Number ( params . stability )
83+ : undefined ,
84+ similarityBoost :
85+ params . similarityBoost !== undefined && params . similarityBoost !== ''
86+ ? Number ( params . similarityBoost )
87+ : undefined ,
6588 } ) ,
6689 } ,
6790 } ,
@@ -70,6 +93,8 @@ export const ElevenLabsBlock: BlockConfig<ElevenLabsBlockResponse> = {
7093 text : { type : 'string' , description : 'Text to convert' } ,
7194 voiceId : { type : 'string' , description : 'Voice identifier' } ,
7295 modelId : { type : 'string' , description : 'Model identifier' } ,
96+ stability : { type : 'number' , description : 'Voice stability 0.0-1.0' } ,
97+ similarityBoost : { type : 'number' , description : 'Similarity boost 0.0-1.0' } ,
7398 apiKey : { type : 'string' , description : 'ElevenLabs API key' } ,
7499 } ,
75100
0 commit comments