YobeSDK Android 0.3.2
 
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)
 GetStatusFromResults gets the status from the ProcessBuffer return Object array.
 
static boolean GetUserVerificationResults (Object[] results)
 
static short[] GetAudioFromResults (Object[] results)
 GetAudioFromResults gets the processed audio from the ProcessBuffer return Object array.
 
static native boolean GetLicenseStatus (String license)
 GetLicenseStatus gets the status of the given Yobe license.
 
static native String GetLicenseEndDate (String license)
 GetLicenseEndDate gets the end date of the Yobe license.
 
static native String GetLicenseStartDate (String license)
 GetLicenseStartDate gets the start date of the Yobe license.
 
static native String LibVersion ()
 LibVersion gets the version of the Yobe library.
 
static native double GetBufferSizeTime ()
 GetBufferSizeTime gets the input/output buffer size in time units, 1.024 seconds.
 
static native int GetOutputBufferSizeSamples ()
 Use this to get the output buffer size, 32,768 samples.
 
static native int GetInputBufferSizeSamples ()
 Use this to get the input buffer size, 32,768 samples.
 
static native short GetOutputChannelCount ()
 This method returns the output channel count of the Yobe library.
 
static native short GetInputChannelCount ()
 This method returns the input channel count of the Yobe library.
 
static native int GetSamplingRate ()
 This function gets the sampling rate for all input/output audio, 16,000 samples per second.
 
static native String StdError (Status status)
 StdError translates a Yobe Status code into a more readable string.
 

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 version of the Yobe library.

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

GetBufferSizeTime gets the input/output buffer size in time units, 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: