videosdk-plugins-elevenlabs 0.0.30__tar.gz → 0.0.32__tar.gz

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.

Potentially problematic release.


This version of videosdk-plugins-elevenlabs might be problematic. Click here for more details.

@@ -2,13 +2,12 @@ myenv/
2
2
  venv/
3
3
  env/
4
4
  __pycache__/
5
-
5
+ .venv/
6
6
  .env
7
7
  .env.local
8
8
  test_env/
9
9
  dist/
10
10
  .DS_Store
11
-
12
11
  node_modules/
13
12
  credentials.json
14
13
  .Python
@@ -16,3 +15,5 @@ build/
16
15
  eggs/
17
16
  sdist/
18
17
  wheels/
18
+ docs/
19
+ agent-sdk-reference/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: videosdk-plugins-elevenlabs
3
- Version: 0.0.30
3
+ Version: 0.0.32
4
4
  Summary: VideoSDK Agent Framework plugin for ElevenLabs
5
5
  Author: videosdk
6
6
  License-Expression: Apache-2.0
@@ -12,7 +12,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
12
12
  Classifier: Topic :: Multimedia :: Video
13
13
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
14
  Requires-Python: >=3.11
15
- Requires-Dist: videosdk-agents>=0.0.30
15
+ Requires-Dist: videosdk-agents>=0.0.32
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  # VideoSDK ElevenLabs Plugin
@@ -20,7 +20,7 @@ classifiers = [
20
20
  "Topic :: Multimedia :: Video",
21
21
  "Topic :: Scientific/Engineering :: Artificial Intelligence",
22
22
  ]
23
- dependencies = ["videosdk-agents>=0.0.30"]
23
+ dependencies = ["videosdk-agents>=0.0.32"]
24
24
 
25
25
  [tool.hatch.version]
26
26
  path = "videosdk/plugins/elevenlabs/version.py"
@@ -31,16 +31,29 @@ class ElevenLabsTTS(TTS):
31
31
  def __init__(
32
32
  self,
33
33
  *,
34
+ api_key: str | None = None,
34
35
  model: str = DEFAULT_MODEL,
35
36
  voice: str = DEFAULT_VOICE_ID,
36
37
  speed: float = 1.0,
37
- api_key: str | None = None,
38
38
  response_format: str = "pcm_24000",
39
39
  voice_settings: VoiceSettings | None = None,
40
40
  base_url: str = API_BASE_URL,
41
41
  enable_streaming: bool = True,
42
42
  inactivity_timeout: int = WS_INACTIVITY_TIMEOUT,
43
43
  ) -> None:
44
+ """Initialize the ElevenLabs TTS plugin.
45
+
46
+ Args:
47
+ api_key (Optional[str], optional): ElevenLabs API key. Uses ELEVENLABS_API_KEY environment variable if not provided. Defaults to None.
48
+ model (str): The model to use for the TTS plugin. Defaults to "eleven_flash_v2_5".
49
+ voice (str): The voice to use for the TTS plugin. Defaults to "EXAVITQu4vr4xnSDxMaL".
50
+ speed (float): The speed to use for the TTS plugin. Defaults to 1.0.
51
+ response_format (str): The response format to use for the TTS plugin. Defaults to "pcm_24000".
52
+ voice_settings (Optional[VoiceSettings], optional): The voice settings to use for the TTS plugin. Defaults to None.
53
+ base_url (str): The base URL to use for the TTS plugin. Defaults to "https://api.elevenlabs.io/v1".
54
+ enable_streaming (bool): Whether to enable streaming for the TTS plugin. Defaults to True.
55
+ inactivity_timeout (int): The inactivity timeout to use for the TTS plugin. Defaults to 300.
56
+ """
44
57
  super().__init__(
45
58
  sample_rate=ELEVENLABS_SAMPLE_RATE, num_channels=ELEVENLABS_CHANNELS
46
59
  )
@@ -0,0 +1 @@
1
+ __version__ = "0.0.32"
@@ -1 +0,0 @@
1
- __version__ = "0.0.30"