Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUDIO_DATA
The abstraction of audio data.
|
static java.lang.String |
TIMESTAMP
The timestamp of when the Audio item was generated.
|
EOS, TIME_CREATED
Modifier and Type | Method and Description |
---|---|
static PStreamProvider |
getFromStorage()
Provide all Audio items in local file system.
|
static PStreamProvider |
record(long duration)
Provide an Audio item.
|
static PStreamProvider |
recordPeriodic(long durationPerRecord,
long interval)
Provide a live stream of Audio items.
|
containsField, equals, excludeFields, getAsBoolean, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValueByField, includeFields, isEndOfStream, setFieldValue, toDebugString, toJson, toMap, toString
@PSItemField(type=java.lang.Long.class) public static final java.lang.String TIMESTAMP
@PSItemField(type=AudioData.class) public static final java.lang.String AUDIO_DATA
public static PStreamProvider record(long duration)
duration
- the time duration of audio.public static PStreamProvider recordPeriodic(long durationPerRecord, long interval)
durationPerRecord
- the time duration of each audio record, in milliseconds.interval
- the time interval between each two records, in milliseconds.public static PStreamProvider getFromStorage()