ElevenLabsSoundEffectClient class final Providers

ElevenLabs sound-effect synthesis: a JSON POST that answers with audio.

Implemented types

Constructors

ElevenLabsSoundEffectClient({required ProviderCredentials credentials, Client? httpClient, RetryPolicy retryPolicy = const RetryPolicy(), Uri? endpoint, Future<void> sleep(Duration) = Future.delayed})
Creates an ElevenLabsSoundEffectClient.

Properties

credentials ProviderCredentials
The provider credentials carrying the API key.
final
endpoint Uri?
An optional endpoint override; defaults to the public ElevenLabs host.
final
hashCode int
The hash code for this object.
no setterinherited
retryPolicy RetryPolicy
The retry policy applied to each request.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sleep Future<void> Function(Duration)
The sleep seam used between retries (injected for tests).
final

Methods

generateSoundEffect(SoundEffectRequest request, {void onProgress(GenerationProgress)?}) Future<GenerationResult>
Generates a sound effect for request.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited