AudioProfile enum Null safety

音频属性。

Constants

Default → const AudioProfile

默认设置。

  • 通信场景下,该选项代表指定 32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。
  • 直播场景下,该选项代表指定 48 kHz 采样率,语音编码,单声道,编码码率最大值为 64 Kbps。
@JsonValue(0)
const AudioProfile(0)
MusicHighQuality → const AudioProfile

指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 96 Kbps。

@JsonValue(4)
const AudioProfile(4)
MusicHighQualityStereo → const AudioProfile

指定 48 kHz 采样率,音乐编码,双声道,编码码率最大值为 128 Kbps。

@JsonValue(5)
const AudioProfile(5)
MusicStandard → const AudioProfile

指定 48 kHz 采样率,音乐编码,单声道,编码码率最大值为 64 Kbps。

@JsonValue(2)
const AudioProfile(2)
MusicStandardStereo → const AudioProfile

指定 48 kHz采样率,音乐编码,双声道,编码码率最大值为 80 Kbps。

@JsonValue(3)
const AudioProfile(3)
SpeechStandard → const AudioProfile

指定 32 kHz 采样率,语音编码,单声道,编码码率最大值为 18 Kbps。

@JsonValue(1)
const AudioProfile(1)
values → const List<AudioProfile>

A constant List of the values in this enum, in order of their declaration.

const List<AudioProfile>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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