NEASRCaptionConfig class

Configuration for ASR (speech-to-text) captions.

Annotations
  • @JsonSerializable.new()

Constructors

NEASRCaptionConfig({String? srcLanguage, List<String?>? srcLanguages, String? dstLanguage, List<String?>? dstLanguages, bool? needTranslateSameLanguage})
NEASRCaptionConfig.fromJson(Map<String, dynamic> json)
factory

Properties

dstLanguage String?
Target language for captions (deprecated, prefer dstLanguages).
final
dstLanguages List<String?>?
Target languages for captions.
final
hashCode int
The hash code for this object.
no setterinherited
needTranslateSameLanguage bool?
Whether to translate when source and target languages are the same.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
srcLanguage String?
Source language of the captions. Defaults to AUTO if not specified.
final
srcLanguages List<String?>?
Multiple possible source languages for captions. Empty by default.
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