Skip to content
Permalink
Browse files

First pass at reading TTS Files

  • Loading branch information
davidzof committed May 4, 2015
1 parent 53a6ea1 commit c94e09eec9b3d86e96a97027af509ed37f792519
Showing with 1,097 additions and 11 deletions.
  1. +10 −2 README.md
  2. +9 −9 src/com/wattzap/model/RLVReader.java
  3. +951 −0 src/com/wattzap/model/TTSReader.java
  4. +127 −0 test/com/wattzap/model/TTSReaderTest.java
@@ -10,14 +10,22 @@ see: http://www.wattzap.com/ for more information
Basic Architecture
==================

Wattzap is a Java Swing based application. You will need Java version 7 or later. An "Enterprise Bus" pattern is used for
Wattzap is a Java Swing based application. An "Enterprise Bus" pattern is used for
internal communication.

Mac OSX IMPORTANT
=================

Due to an issue with VLC and Java the 1.6r45 JVM is used on Mac OSX. Please make sure your changes are compatible with this version
of the compiler/libraries.

Building
========

Install Apache Ant and use the build.xml file

$ ant -f build.xml

Video Playback
==============

@@ -27,4 +35,4 @@ Copy plugins, libvcl.dll and libvlccore.dll to the Wattzap home directory.
Working on the Project
======================

If you want to contribute to WattzAp.
Feel free to contribute bug fixes, improvements etc to WattzAp. You can fork the project for your own purposes if you wish.
@@ -30,14 +30,14 @@
*/
@RouteAnnotation
public class RLVReader extends RouteReader {
public static final int RLV_VIDEO_INFO = 2010;
public static final int RLV_FRAME_DISTANCE_MAPPING = 2020;
public static final int RLV_INFOBOX = 2030;
public static final int RLV_COURSE_INFO = 2040;
public static final int RLV_FINGERPRINT = 2000; // RLV (.rlv)
public static final int PGMF_FINGERPRINT = 1000;
public static final int PGMF_INFORMATION = 1010;
public static final int PGMF_PROGRAM = 1020;
private static final int RLV_VIDEO_INFO = 2010;
private static final int RLV_FRAME_DISTANCE_MAPPING = 2020;
private static final int RLV_INFOBOX = 2030;
private static final int RLV_COURSE_INFO = 2040;
private static final int RLV_FINGERPRINT = 2000; // RLV (.rlv)
private static final int PGMF_FINGERPRINT = 1000;
private static final int PGMF_INFORMATION = 1010;
private static final int PGMF_PROGRAM = 1020;

private Charset iso88591charset = Charset.forName("ISO-8859-1");
private double totalDistance = 0.0;
@@ -119,7 +119,7 @@ public double getMinSlope() {
public void load(String filename) {
totalDistance = 0.0;
maxSlope = 0;
minSlope = 0;
minSlope = 0; // TODO, if min slope is say 5% then this will give wrong value
maxPower = 0;

filename = filename.substring(0, filename.lastIndexOf('.'));

0 comments on commit c94e09e

Please sign in to comment.
You can’t perform that action at this time.