YobeSDK Android 0.2.3
 
Loading...
Searching...
No Matches
com.yobe.speech.SpeechUtil Class Reference

SpeechUtil has functions to help integrate YobeSDK APIs. More...

Static Public Member Functions

static Status GetStatusFromResults (Object[] results)
 
static short[] GetAudioFromResults (Object[] results)
 
static native boolean GetLicenseStatus (String license)
 
static native String GetLicenseEndDate (String license)
 
static native String GetLicenseStartDate (String license)
 
static native String LibVersion ()
 LibVersion gets the current Yobe library version.
 
static native double GetBufferSizeTime ()
 Use this to get the input/output buffer length, 1.024 seconds.
 
static native int GetOutputBufferSizeSamples ()
 
static native int GetInputBufferSizeSamples ()
 
static native short GetOutputChannelCount ()
 
static native short GetInputChannelCount ()
 
static native int GetSamplingRate ()
 
static native String StdError (Status status)
 

Detailed Description

SpeechUtil has functions to help integrate YobeSDK APIs.

Member Function Documentation

◆ GetStatusFromResults()

static Status com.yobe.speech.SpeechUtil.GetStatusFromResults ( Object[]  results)
static

GetStatusFromResults gets the status from the ProcessBuffer return Object array.

Parameters
resultsthe 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
resultsthe 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
licenseThis 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
licenseThis 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
licenseThis 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
statusThe 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: