SpeechUtil has functions to help integrate YobeSDK APIs.
More...
SpeechUtil has functions to help integrate YobeSDK APIs.
◆ GetStatusFromResults()
static Status com.yobe.speech.SpeechUtil.GetStatusFromResults |
( |
Object[] |
results | ) |
|
|
static |
GetStatusFromResults gets the status from the ProcessBuffer return Object array.
- Parameters
-
results | the Object array returned by BioListener.ProcessBuffer. |
- Returns
- The status of the engine.
◆ GetAudioFromResults()
static short[] com.yobe.speech.SpeechUtil.GetAudioFromResults |
( |
Object[] |
results | ) |
|
|
static |
GetAudioFromResults gets the processed audio from the ProcessBuffer return Object array.
- Parameters
-
results | the Object array from the call to ProcessBuffer. |
- Returns
- The processed audio of the engine.
◆ GetLicenseStatus()
static native boolean com.yobe.speech.SpeechUtil.GetLicenseStatus |
( |
String |
license | ) |
|
|
static |
GetLicenseStatus gets the status of the given Yobe license.
- Parameters
-
license | This is a license given to you with the library. |
- Returns
- This function returns a true if you have a valid license.
◆ GetLicenseEndDate()
static native String com.yobe.speech.SpeechUtil.GetLicenseEndDate |
( |
String |
license | ) |
|
|
static |
GetLicenseEndDate gets the end date of the Yobe license.
- Parameters
-
license | This is a license given to you with the library. |
- Returns
- The date that the Yobe library license expires. Format: DD/MM/YYYY
◆ GetLicenseStartDate()
static native String com.yobe.speech.SpeechUtil.GetLicenseStartDate |
( |
String |
license | ) |
|
|
static |
GetLicenseStartDate gets the start date of the Yobe license.
- Parameters
-
license | This is a license given to you with the library. |
- Returns
- The date that the Yobe library license starts. Format: DD/MM/YYYY
◆ LibVersion()
static native String com.yobe.speech.SpeechUtil.LibVersion |
( |
| ) |
|
|
static |
LibVersion gets the current Yobe library version.
- Returns
- This returns C string of the version of the Yobe library. Format:
<Major>.<Interim>.<Minor>
◆ GetBufferSizeTime()
static native double com.yobe.speech.SpeechUtil.GetBufferSizeTime |
( |
| ) |
|
|
static |
Use this to get the input/output buffer length, 1.024
seconds.
- Returns
- This returns the audio buffer length in seconds.
◆ GetOutputBufferSizeSamples()
static native int com.yobe.speech.SpeechUtil.GetOutputBufferSizeSamples |
( |
| ) |
|
|
static |
Use this to get the output buffer size, 32,768
samples.
- Returns
- This function returns the output buffer size in samples.
◆ GetInputBufferSizeSamples()
static native int com.yobe.speech.SpeechUtil.GetInputBufferSizeSamples |
( |
| ) |
|
|
static |
Use this to get the input buffer size, 32,768
samples.
- Returns
- This function returns the input buffer size in samples.
◆ GetOutputChannelCount()
static native short com.yobe.speech.SpeechUtil.GetOutputChannelCount |
( |
| ) |
|
|
static |
This method returns the output channel count of the Yobe library.
- Returns
- This function returns number of output channels.
◆ GetInputChannelCount()
static native short com.yobe.speech.SpeechUtil.GetInputChannelCount |
( |
| ) |
|
|
static |
This method returns the input channel count of the Yobe library.
- Returns
- This function returns number of expected input channels.
◆ GetSamplingRate()
static native int com.yobe.speech.SpeechUtil.GetSamplingRate |
( |
| ) |
|
|
static |
This function gets the sampling rate for all input/output audio, 16,000
samples per second.
- Returns
- This method returns the sampling rate of the Yobe library.
◆ StdError()
static native String com.yobe.speech.SpeechUtil.StdError |
( |
Status |
status | ) |
|
|
static |
StdError translates a Yobe Status code into a more readable string.
- Parameters
-
status | The status you want to check. |
- Returns
- This function returns the readable C string for given Yobe Status
The documentation for this class was generated from the following file:
- speech/src/main/java/com/yobe/speech/SpeechUtil.java