@alquimia-ai/tools 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2038,20 +2038,27 @@ var StabilityProvider = class extends StableDiffusionProvider {
2038
2038
  // src/providers/eleven-labs.ts
2039
2039
  import { ElevenLabsClient, ElevenLabs } from "elevenlabs";
2040
2040
  import axios3 from "axios";
2041
- var requestSpecs = {
2041
+ var defaultVoiceSettings = {
2042
+ stability: 0.7,
2043
+ similarity_boost: 0.3,
2044
+ style: 0.2
2045
+ };
2046
+ var defaultRequestSpecs = {
2042
2047
  optimize_streaming_latency: ElevenLabs.OptimizeStreamingLatency.Zero,
2043
2048
  output_format: ElevenLabs.OutputFormat.Mp344100128,
2044
- model_id: "eleven_multilingual_v1",
2045
- language: "es",
2046
- voice_settings: {
2047
- stability: 0.1,
2048
- similarity_boost: 0.15,
2049
- style: 0.2
2050
- }
2049
+ model_id: "eleven_multilingual_v2",
2050
+ language: "es"
2051
2051
  };
2052
2052
  var ElevenLabsWhisperProvider = class extends WhisperProvider {
2053
2053
  constructor(config) {
2054
2054
  super(config);
2055
+ this.requestSpecs = {
2056
+ ...defaultRequestSpecs,
2057
+ voice_settings: {
2058
+ ...defaultVoiceSettings,
2059
+ ...config.voiceSettings
2060
+ }
2061
+ };
2055
2062
  this.client = new ElevenLabsClient(config);
2056
2063
  }
2057
2064
  async speechToText(audio) {
@@ -2092,7 +2099,7 @@ var ElevenLabsWhisperProvider = class extends WhisperProvider {
2092
2099
  `/v1/text-to-speech/${this.config.voiceId}`,
2093
2100
  {
2094
2101
  text,
2095
- ...requestSpecs
2102
+ ...this.requestSpecs
2096
2103
  },
2097
2104
  { responseType: "blob" }
2098
2105
  );