TTSResponse class
Text-to-Speech response with metadata
Constructors
- 
          TTSResponse({required List<int> audioData, String? contentType, double? duration, int? sampleRate, String? voice, String? model, UsageInfo? usage, AudioAlignment? alignment, AudioAlignment? normalizedAlignment, String? requestId})
- 
          
            const
- 
          TTSResponse.fromJson(Map<String, dynamic> json)
- 
          
            factory
Properties
- alignment → AudioAlignment?
- 
  Character-level timing alignment (ElevenLabs specific)
  final
- 
  audioData
  → List<int> 
- 
  Audio data as bytes
  final
- contentType → String?
- 
  Content type (e.g., 'audio/mpeg')
  final
- duration → double?
- 
  Audio duration in seconds
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- model → String?
- 
  Model used for generation
  final
- normalizedAlignment → AudioAlignment?
- 
  Normalized character-level timing alignment (ElevenLabs specific)
  final
- requestId → String?
- 
  Request ID for continuity (ElevenLabs specific)
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- sampleRate → int?
- 
  Sample rate
  final
- usage → UsageInfo?
- 
  Usage information if available
  final
- voice → String?
- 
  Voice used for generation
  final
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited