Constructor and Description |
---|
Speech(File passedFilePath,
String passedBasename)
Creates a new instance of Speech given a file path
|
Modifier and Type | Method and Description |
---|---|
String |
getBasename() |
int |
getDuration()
Gets duration of the speech file
|
File |
getFile() |
int |
getFileCount()
Get the number of files in filePath containing basename in their file name.
|
File |
getFilePath()
Gets the file path for the speech file
|
static void |
play(File soundFile,
SourceDataLine line,
int outputMode)
Plays a sound file once via the indicated sourcedataline.
|
static void |
play(String soundFilePathString,
SourceDataLine line,
int outputMode)
Plays a sound file once via the indicated sourcedataline.
|
void |
setBasename(String name) |
void |
setFilePath(File newPath) |
static void |
stopPlaying() |
void |
updateFileCount()
Determines how many recordings a prompt has
|
public void updateFileCount()
public int getDuration()
public File getFilePath()
public void setFilePath(File newPath)
public String getBasename()
public void setBasename(String name)
public File getFile()
public int getFileCount()
public static void play(String soundFilePathString, SourceDataLine line, int outputMode)
soundFilePathString
- soundFilePathStringline
- lineoutputMode
- outputModepublic static void play(File soundFile, SourceDataLine line, int outputMode)
soundFile
- soundFileline
- lineoutputMode
- outputModepublic static void stopPlaying()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.