zach commited on
Commit
f8ddf74
·
1 Parent(s): 36b195f

Improve ElevenLabs integration documentation

Browse files
Files changed (1) hide show
  1. src/integrations/elevenlabs_api.py +4 -3
src/integrations/elevenlabs_api.py CHANGED
@@ -6,16 +6,17 @@ It includes functionality for API request handling and processing API responses.
6
 
7
  Key Features:
8
  - Encapsulates all logic related to the ElevenLabs TTS API.
9
- - Implements retry logic for handling transient API errors.
10
  - Handles received audio and processes it for playback on the web.
11
  - Provides detailed logging for debugging and error tracking.
 
12
 
13
  Classes:
14
- - ElevenLabsConfig: Immutable configuration for interacting with Elevenlabs' TTS API.
15
  - ElevenLabsError: Custom exception for ElevenLabs API-related errors.
16
 
17
  Functions:
18
- - text_to_speech_with_elevenlabs: synthesizes speech from text using ElevenLabs' TTS API.
19
  """
20
 
21
  # Standard Library Imports
 
6
 
7
  Key Features:
8
  - Encapsulates all logic related to the ElevenLabs TTS API.
9
+ - Implements retry logic using Tenacity for handling transient API errors.
10
  - Handles received audio and processes it for playback on the web.
11
  - Provides detailed logging for debugging and error tracking.
12
+ - Utilizes robust error handling (EAFP) to validate API responses.
13
 
14
  Classes:
15
+ - ElevenLabsConfig: Immutable configuration for interacting with ElevenLabs' TTS API.
16
  - ElevenLabsError: Custom exception for ElevenLabs API-related errors.
17
 
18
  Functions:
19
+ - text_to_speech_with_elevenlabs: Synthesizes speech from text using ElevenLabs' TTS API.
20
  """
21
 
22
  # Standard Library Imports