diff --git a/audio/audio-encoder-lame/src/main/java/org/daisy/pipeline/audio/lame/impl/LameEncoderService.java b/audio/audio-encoder-lame/src/main/java/org/daisy/pipeline/audio/lame/impl/LameEncoderService.java index 49565f51a..1f636a2f4 100644 --- a/audio/audio-encoder-lame/src/main/java/org/daisy/pipeline/audio/lame/impl/LameEncoderService.java +++ b/audio/audio-encoder-lame/src/main/java/org/daisy/pipeline/audio/lame/impl/LameEncoderService.java @@ -47,16 +47,22 @@ public Optional newEncoder(Map params) { private static LameEncoder.LameEncodingOptions parseEncodingOptions(Map params) { LameEncoder.LameEncodingOptions opts = new LameEncoder.LameEncodingOptions(); opts.cliOptions = new String[0]; - String cliextra = params.get("org.daisy.pipeline.tts.lame.cli.options"); - if (cliextra != null) { - opts.cliOptions = cliextra.split(" "); + { + String prop = "org.daisy.pipeline.tts.lame.cli.options"; + String cliOptions = params.get(prop); + if (cliOptions != null) { + logger.warn("'" + prop + "' setting is deprecated. It may become unavailable in future version of DAISY Pipeline."); + opts.cliOptions = cliOptions.split(" "); + } } - String lamePathProp = "org.daisy.pipeline.tts.lame.path"; - opts.binpath = params.get(lamePathProp); - if (opts.binpath == null) { - Optional lpath = BinaryFinder.find("lame"); - if (lpath.isPresent()) - opts.binpath = lpath.get(); + { + String prop = "org.daisy.pipeline.tts.lame.path"; + opts.binpath = params.get(prop); + if (opts.binpath == null) { + Optional lpath = BinaryFinder.find("lame"); + if (lpath.isPresent()) + opts.binpath = lpath.get(); + } } return opts; } diff --git a/tts/tts-common/doc/index.md b/tts/tts-common/doc/index.md index cda058ceb..533ade697 100644 --- a/tts/tts-common/doc/index.md +++ b/tts/tts-common/doc/index.md @@ -328,6 +328,7 @@ tts-adapter-attbin: `org.daisy.pipeline.tts.lame.cli.options` : Additional command line options passed to lame +: Deprecated ## CSS