CustomSound class

Constructors

CustomSound(AICommand _command)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soundData Map?
getter/setter pair

Methods

getVoiceInfo(int voiceType, {int timeout = 10}) Future<bool>
获取报警声音 voicetype 0---人脸侦测报警提 示音 1---人形侦测报警提 示音 2---烟感报警提示音 3---移动侦测报警提 示音 4---离岗检测提示音 5---哭声检测提示音 6---在岗监测提示音 7---烟火相机火焰提示音 8---烟火相机烟雾提示音
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setVoiceInfo(String? voiceUrl, String voiceName, int swtich, int voicetype, {bool playInDevice = false, int timeout = 20, String playTimes = '3'}) Future<bool>
设置报警声音 param voiceUrl 下载服务器地址 param voiceName 文件名 param swtich 0无声音 1 有声音 param voicetype 0---人脸侦测报警提 示音 1---人形侦测报警提 示音 2---烟感报警提示音 3---移动侦测报警提 示音 4---离岗检测提示音 5---哭声检测提示音 6---在岗监测提示音 7---烟火相机火焰提示音 8---烟火相机烟雾提示音 param playInDevice 是否让设备播放
toString() String
A string representation of this object.
inherited

Operators

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