Package org.opencastproject.sox.remote
Class SoxServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.sox.remote.SoxServiceRemoteImpl
- All Implemented Interfaces:
SoxService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.sox.api.SoxService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet audio statistics, using that track's audio streams.Normalize the audio stream of that track.voidsetRemoteServiceManager(ServiceRegistry serviceRegistry) Sets the remote service manager.voidsetTrustedHttpClient(TrustedHttpClient trustedHttpClient) Sets the trusted http clientMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Constructor Details
-
SoxServiceRemoteImpl
public SoxServiceRemoteImpl()
-
-
Method Details
-
analyze
Get audio statistics, using that track's audio streams.- Specified by:
analyzein interfaceSoxService- Parameters:
sourceAudioTrack- The source audio track- Returns:
- The receipt for this audio processing job.
- Throws:
MediaPackageException- if the mediapackage is invalidSoxException- if audio processing fails- See Also:
-
normalize
public Job normalize(Track sourceAudioTrack, Float targetRmsLevDb) throws MediaPackageException, SoxException Normalize the audio stream of that track.- Specified by:
normalizein interfaceSoxService- Parameters:
sourceAudioTrack- The source audio tracktargetRmsLevDb- The target RMS Lev dB- Returns:
- The receipt for this audio processing job
- Throws:
MediaPackageException- if the mediapackage is invalidSoxException- if audio processing fails- See Also:
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
trustedHttpClient-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
serviceRegistry-
-