BowlerKernel
TimeCodedViseme.java
Go to the documentation of this file.
1 package com.neuronrobotics.bowlerstudio.lipsync;
2 
3 import com.neuronrobotics.bowlerstudio.AudioStatus;
4 
5 public class TimeCodedViseme {
6  AudioStatus status;
7  double start;
8  double end;
9  double total;
10 
11  public TimeCodedViseme(AudioStatus st, double s, double e, double t) {
12  status = st;
13  start = s;
14  end = e;
15  total = t;
16  }
17 
18  double getStartPercentage() {
19  return ((start / total) * 100.0);
20  }
21 
22  double getEndPercentage() {
23  return ((end / total) * 100.0);
24  }
25 
26  public String toString() {
27  return status.toString() + " start percent " + getStartPercentage() + " ends at " + getEndPercentage();
28  }
29 }
TimeCodedViseme(AudioStatus st, double s, double e, double t)