Interface SoxService


public interface SoxService
Provides sound processing services with SoX
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.job.api.Job
    analyze(org.opencastproject.mediapackage.Track sourceAudioTrack)
    Get audio statistics, using that track's audio streams.
    org.opencastproject.job.api.Job
    normalize(org.opencastproject.mediapackage.Track sourceAudioTrack, Float targetRmsLevDb)
    Normalize the audio stream of that track.
  • Field Details

  • Method Details

    • analyze

      org.opencastproject.job.api.Job analyze(org.opencastproject.mediapackage.Track sourceAudioTrack) throws org.opencastproject.mediapackage.MediaPackageException, SoxException
      Get audio statistics, using that track's audio streams.
      Parameters:
      sourceAudioTrack - The source audio track
      Returns:
      The receipt for this audio processing job.
      Throws:
      org.opencastproject.mediapackage.MediaPackageException - if the mediapackage is invalid
      SoxException - if audio processing fails
    • normalize

      org.opencastproject.job.api.Job normalize(org.opencastproject.mediapackage.Track sourceAudioTrack, Float targetRmsLevDb) throws org.opencastproject.mediapackage.MediaPackageException, SoxException
      Normalize the audio stream of that track.
      Parameters:
      sourceAudioTrack - The source audio track
      targetRmsLevDb - The target RMS Lev dB
      Returns:
      The receipt for this audio processing job
      Throws:
      org.opencastproject.mediapackage.MediaPackageException - if the mediapackage is invalid
      SoxException - if audio processing fails