Skip to content

Commit

Permalink
Make all Pipeline properties uniform
Browse files Browse the repository at this point in the history
i.e. make them all start with "org.daisy.pipeline". This includes the
TTS properties, which now start with "org.daisy.pipeline.tts".

see daisy/pipeline-assembly#141
  • Loading branch information
bertfrees committed Jan 25, 2018
1 parent d5b5631 commit 1028ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ public EncodingOptions parseEncodingOptions(Map<String, String> params) {
LameEncodingOptions opts = new LameEncodingOptions();

opts.cliOptions = new String[0];
String cliextra = params.get("lame.cli.options");
String cliextra = params.get("org.daisy.pipeline.tts.lame.cli.options");
if (cliextra != null) {
opts.cliOptions = cliextra.split(" ");
}

String lamePathProp = "lame.path";
String lamePathProp = "org.daisy.pipeline.tts.lame.path";
opts.binpath = params.get(lamePathProp);
if (opts.binpath == null) {
Optional<String> lpath = BinaryFinder.find("lame");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public AudioBufferTest(byte[] data, int size) {

@Before
public void cleanProperties() {
System.setProperty("host.protection", "true");
System.setProperty("org.daisy.pipeline.tts.host.protection", "true");
}

private static byte[] mp3ToPCM(AudioFormat originalFormat, String mp3File)
Expand Down Expand Up @@ -185,7 +185,7 @@ private boolean isValid(AudioFormat sourceFormat) throws Throwable {

@Test
public void noHostProtection() throws Throwable {
System.setProperty("host.protection", "false");
System.setProperty("org.daisy.pipeline.tts.host.protection", "false");
boolean valid = isValid(new AudioFormat(8000, 8, 1, true, true));
Assert.assertTrue(valid);
}
Expand Down

0 comments on commit 1028ef0

Please sign in to comment.