TtsParams class

语音合成参数

Constructors

TtsParams({String? vcn = 'x2_xiaojuan', int? speed = 50, int? pitch = 50, int? volume = 50, int? streamType = 3, TtsEngineType ent = TtsEngineType.xtts, int? bufferTime = 0, PlayMode playMode = PlayMode.sdk, bool? audioFocus = false})

Properties

audioFocus bool?
播放音频时是否抢占焦点
getter/setter pair
bufferTime int?
音频缓冲时长
getter/setter pair
ent TtsEngineType
引擎类型
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pitch int?
语调
getter/setter pair
playMode PlayMode
播放模式
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed int?
语速
getter/setter pair
streamType int?
播放音频流类型,取值参考AudioManager类,默认值:3
getter/setter pair
tag String?
合成标记
getter/setter pair
vcn String?
getter/setter pair
volume int?
音量
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCfgMap() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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