hyphenate_SDK4.0 5.0.0
hyphenate java IM SDK
 
Loading...
Searching...
No Matches
com.hyphenate.chat.EMAudioParams Class Reference

Classes

enum  AudioFormat
 

Public Member Functions

 EMAudioParams ()
 
AudioFormat getFormat ()
 
void setFormat (AudioFormat format)
 
int getSampleRate ()
 
void setSampleRate (int sampleRate)
 
int getBitsPerSample ()
 
void setBitsPerSample (int bitsPerSample)
 
int getChannels ()
 
void setChannels (int channels)
 

Detailed Description

Voice parameters for local voice file recognition.

Constructor & Destructor Documentation

◆ EMAudioParams()

com.hyphenate.chat.EMAudioParams.EMAudioParams ( )

Constructor.

Member Function Documentation

◆ getBitsPerSample()

int com.hyphenate.chat.EMAudioParams.getBitsPerSample ( )

Gets the bit depth per sample of the voice file(in bits), for example, 16.

Returns
The bit depth of the voice file.

◆ getChannels()

int com.hyphenate.chat.EMAudioParams.getChannels ( )

Gets the number of channels of the voice file. For example, 1 indicates a mono voice file.

Returns
The number of channels of the voice file.

◆ getFormat()

AudioFormat com.hyphenate.chat.EMAudioParams.getFormat ( )

Gets the format of the voice file.

Returns
The format of the voice file.

◆ getSampleRate()

int com.hyphenate.chat.EMAudioParams.getSampleRate ( )

Gets the sampling rate of the voice file(in Hz).

Returns
The sampling rate of the voice file.

◆ setBitsPerSample()

void com.hyphenate.chat.EMAudioParams.setBitsPerSample ( int bitsPerSample)

Sets the bit depth per sample of the voice file(in bits).

Parameters
bitsPerSampleThe bit depth of the voice file.

◆ setChannels()

void com.hyphenate.chat.EMAudioParams.setChannels ( int channels)

Sets the number of channels of the voice file.

Parameters
channelsThe number of channels of the voice file.

◆ setFormat()

void com.hyphenate.chat.EMAudioParams.setFormat ( AudioFormat format)

Sets the format of the voice file.

Parameters
formatThe format of the voice file.

◆ setSampleRate()

void com.hyphenate.chat.EMAudioParams.setSampleRate ( int sampleRate)

Sets the sampling rate of the voice file(in Hz).

Parameters
sampleRateThe sampling rate of the voice file.

The documentation for this class was generated from the following file: