Voice class

Description of a voice supported by the TTS service.

Constructors

Voice({List<String>? languageCodes, String? name, int? naturalSampleRateHertz, String? ssmlGender})
Voice.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
languageCodes List<String>?
The languages that this voice supports, expressed as [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g. "en-US", "es-419", "cmn-tw").
getter/setter pair
name String?
The name of this voice.
getter/setter pair
naturalSampleRateHertz int?
The natural sample rate (in hertz) for this voice.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ssmlGender String?
The gender of this voice. Possible string values are:
getter/setter pair

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