ElevenLabsClient class
ElevenLabs HTTP client implementation
This module handles all HTTP communication with the ElevenLabs API. ElevenLabs provides text-to-speech and speech-to-text services.
Constructors
- ElevenLabsClient.new(ElevenLabsConfig config)
Properties
- config → ElevenLabsConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
Logger instance for debugging
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getContentType(
Response response) → String? - Get response headers from last request
-
getJson(
String endpoint) → Future< Map< String, dynamic> > - Make a GET request and return JSON response
-
getList(
String endpoint) → Future< List> - Make a GET request and return list response
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postBinary(
String endpoint, Map< String, dynamic> data, {Map<String, String> ? queryParams}) → Future<Uint8List> - Make a POST request and return binary response (for TTS)
-
postFormData(
String endpoint, FormData formData, {Map< String, String> ? queryParams}) → Future<Map< String, dynamic> > - Make a POST request with form data and return JSON response (for STT)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited