|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.getflourish.stt.STT
public class STT
Converts speech to text using the x-webkit-speech technology found in Chrome.
Field Summary | |
---|---|
static int |
ERROR
|
static int |
RECORDING
|
static int |
SUCCESS
|
static int |
TRANSCRIBING
|
Constructor Summary | |
---|---|
STT(processing.core.PApplet _p)
|
|
STT(processing.core.PApplet _p,
boolean history)
|
Method Summary | |
---|---|
void |
begin()
Starts a record |
void |
disableAutoRecord()
|
void |
disableAutoThreshold()
Disables the analysis of the environmental volume after initialization. |
void |
disableDebug()
|
void |
disableHistory()
Records will be deleted |
void |
dispose()
|
void |
draw()
|
void |
enableAutoRecord()
Enables the automatic recording if the set voulme threshold has been reached |
void |
enableAutoRecord(float threshold)
Enables the automatic recording if the given voulme threshold has been reached |
void |
enableAutoThreshold()
Enables the analysis of the environmental volume after initialization. |
void |
enableDebug()
Enables logging of events like recording, transcribing, success, error. |
void |
enableHistory()
Records will be kept in the data folder |
void |
end()
Ends a record |
java.lang.String |
getLanguage()
|
ddf.minim.Minim |
getMinimInstance()
Returns the Minim instance for access in programs that need to use Minim beside STT |
float |
getThreshold()
|
float |
getVolume()
|
void |
setLanguage(java.lang.String language)
|
void |
setThreshold(float threshold)
Sets the volume threshold that is used to recognize speech and to filter background noise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RECORDING
public static final int SUCCESS
public static final int ERROR
public static final int TRANSCRIBING
Constructor Detail |
---|
public STT(processing.core.PApplet _p, boolean history)
_p
- instance of PApplethistory
- indicates whether or not recordings are stored in the data folderpublic STT(processing.core.PApplet _p)
_p
- instance of PAppletMethod Detail |
---|
public void draw()
public void enableDebug()
public void disableDebug()
public float getThreshold()
public void setThreshold(float threshold)
public float getVolume()
public void enableHistory()
public void disableHistory()
public void enableAutoThreshold()
public void disableAutoThreshold()
public void enableAutoRecord()
public void enableAutoRecord(float threshold)
threshold
- the threshold that can be checked with getVolume()public void disableAutoRecord()
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- en, de, fr, etc. If the language is not supported it will automatically fall back to English.public void dispose()
public ddf.minim.Minim getMinimInstance()
public void begin()
public void end()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |