public class Tester
extends java.lang.Object
| Constructor and Description |
|---|
Tester() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<float[]> |
generateDistinctSpeakers(int vectorSize,
int vectorsCount,
int speakersCount)
Generates artificial input with distinct speakers based
|
static void |
main(java.lang.String[] args) |
static void |
printIntervals(java.util.ArrayList<SpeakerCluster> speakers) |
static void |
printSpeakerIntervals(java.util.ArrayList<SpeakerCluster> speakers,
java.lang.String fileName) |
static void |
testDistinctSpeakerIdentification(int vectorSize,
int vectorsCount,
int speakersCount)
Test method for SpeakerIdentification, based on artificial input with
non-repeated speakers
|
static void |
testRepeatedSpeakerIdentification(int vectorSize,
int vectorsCount,
int speakersCount,
int repeatFactor)
Test method for SpeakerIdentification, based on artificial input with
repeated speakers
|
static void |
testSpeakerIdentification(java.lang.String inputFile)
Tests SpeakerIdentification on input file given as parameter.
|
static java.lang.String |
time(int seconds)
Returns string version of the given time in miliseconds
|
public static java.util.ArrayList<float[]> generateDistinctSpeakers(int vectorSize,
int vectorsCount,
int speakersCount)
vectorSize - The dimension of a feature vectorvectorsCount - The number of features vectors per speakersspeakersCount - The number of speakerspublic static java.lang.String time(int seconds)
seconds - seconds to convertpublic static void printIntervals(java.util.ArrayList<SpeakerCluster> speakers)
speakers - An array of clusters for which it is needed to be printed the
speakers intervalspublic static void printSpeakerIntervals(java.util.ArrayList<SpeakerCluster> speakers, java.lang.String fileName) throws java.io.IOException
speakers - An array of clusters for which it is needed to be printed the
speakers intervalsfileName - the file to print tojava.io.IOException - if error occurredpublic static void testDistinctSpeakerIdentification(int vectorSize,
int vectorsCount,
int speakersCount)
vectorSize - number of features (Segment.FEATURES_SIZE)vectorsCount - number of frames for each speakerspeakersCount - number of speakerspublic static void testRepeatedSpeakerIdentification(int vectorSize,
int vectorsCount,
int speakersCount,
int repeatFactor)
vectorSize - number of features (Segment.FEATURES_SIZE)vectorsCount - number of frames for each speakerspeakersCount - number of speakersrepeatFactor - number of times the input should be repeatedpublic static void testSpeakerIdentification(java.lang.String inputFile)
throws java.io.IOException
inputFile - the input file that needs to be diarizedjava.io.IOException - if IO went wrongpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException