Class AudioReader.Builder

java.lang.Object
com.digimarc.dms.readers.audio.AudioReader.Builder
Enclosing class:
AudioReader

public static class AudioReader.Builder extends Object
  • Constructor Details

    • Builder

      protected Builder(SdkSession sdkSession)
      Builder's constructor
      Parameters:
      sdkSession - SdkSession object initialized with a valid license key.
  • Method Details

    • setSymbologies

      @NonNull public AudioReader.Builder setSymbologies(int symbologyMask)
      Set the symbologies that this reader will detect.
      Parameters:
      symbologyMask - A bitmask value containing the audio symbologies that the reader should use.
      Returns:
      Builder
    • setReaderOptions

      @NonNull public AudioReader.Builder setReaderOptions(@Nullable ReaderOptions options)
      Set of options that this reader will use.
      Parameters:
      options - A dictionary of flags and settings for the reader. The available entries are documented separately.
      Returns:
      Builder
    • setSampleRate

      @NonNull public AudioReader.Builder setSampleRate(int sampleRate)
      Parameters:
      sampleRate - Audio sample rate of the incoming data.
      Returns:
      Builder
    • setChannelCount

      @NonNull public AudioReader.Builder setChannelCount(int channels)
      Parameters:
      channels - Number of audio channels in the incoming data.
      Returns:
      Builder
    • build

      @NonNull public AudioReader build() throws ReaderException
      Build a reader using the settings specified.
      Returns:
      A new reader object
      Throws:
      ReaderException - An exception will be thrown if an invalid symbology (i.e. not in BaseReader.AudioSymbology) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.