In the previous recipe, Converting audio using services, we built a system that will convert audio files to a variety of formats using services. By itself, the system doesn't do anything, and relies on services to do the actual file conversion. We will now create an example service.
We will place the new service in the
audio_conversion extension. If you've previously downloaded the extension, it should have the service we're about to create. Feel free to skip ahead to the How it works... section.
If you're creating your own service, make sure that you place it in a separate extension, and list
audio_conversion under dependencies.
1. Define the service in
t3lib_extMgm::addService($_EXTKEY, 'audioConversion' /* sv type */, 'tx_audioconversion_sv1' /* sv key */, array( 'title' => 'WAV', 'description' => 'Converts to WAV', 'subtype' => '', 'available' => TRUE, 'priority' => 50, 'quality' => 50, ...