Voice class Null safety

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. [...]
read-only, inherited
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").
read / write
name String?
The name of this voice. [...]
read / write
naturalSampleRateHertz int?
The natural sample rate (in hertz) for this voice.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
ssmlGender String?
The gender of this voice. Possible string values are: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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