Interface SoundAnnotationConfiguration.Builder
-
- All Implemented Interfaces:
-
com.pspdfkit.annotations.configuration.AnnotationConfiguration.Builder
public interface SoundAnnotationConfiguration.Builder implements AnnotationConfiguration.Builder<T>
Interface for configuration builder. Use builder to get an instance implementing this interface.
-
-
Method Summary
Modifier and Type Method Description abstract SoundAnnotationConfiguration.Builder
setAudioRecordingTimeLimit(@IntRange(from = 1) int recordingTimeLimitMs)
Sets audio recording time limit. abstract SoundAnnotationConfiguration.Builder
setAudioRecordingSampleRate(@IntRange(from = 8000) int sampleRate)
Sets sample rate used for audio recording. abstract SoundAnnotationConfiguration
build()
Builds the annotation configuration from values configured by this builder. -
-
Method Detail
-
setAudioRecordingTimeLimit
@NonNull() abstract SoundAnnotationConfiguration.Builder setAudioRecordingTimeLimit(@IntRange(from = 1) int recordingTimeLimitMs)
Sets audio recording time limit. Recording will automatically stop after this limit to ensure that you never run out of memory.
- Parameters:
recordingTimeLimitMs
- Recording time limit in milliseconds.
-
setAudioRecordingSampleRate
@NonNull() abstract SoundAnnotationConfiguration.Builder setAudioRecordingSampleRate(@IntRange(from = 8000) int sampleRate)
Sets sample rate used for audio recording. Based on the PDF spec, 8000, 11025, or 22050 samples per second are most widely supported. 44100 usually works great as well.
- Parameters:
sampleRate
- Sample rate, in samples per second.
-
build
@NonNull() abstract SoundAnnotationConfiguration build()
Builds the annotation configuration from values configured by this builder.
-
-
-
-