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) |
Voice parameters for local voice file recognition.
| com.hyphenate.chat.EMAudioParams.EMAudioParams | ( | ) |
Constructor.
| int com.hyphenate.chat.EMAudioParams.getBitsPerSample | ( | ) |
Gets the bit depth per sample of the voice file(in bits), for example, 16.
| int com.hyphenate.chat.EMAudioParams.getChannels | ( | ) |
Gets the number of channels of the voice file. For example, 1 indicates a mono voice file.
| AudioFormat com.hyphenate.chat.EMAudioParams.getFormat | ( | ) |
Gets the format of the voice file.
| int com.hyphenate.chat.EMAudioParams.getSampleRate | ( | ) |
Gets the sampling rate of the voice file(in Hz).
| void com.hyphenate.chat.EMAudioParams.setBitsPerSample | ( | int | bitsPerSample | ) |
Sets the bit depth per sample of the voice file(in bits).
| bitsPerSample | The bit depth of the voice file. |
| void com.hyphenate.chat.EMAudioParams.setChannels | ( | int | channels | ) |
Sets the number of channels of the voice file.
| channels | The number of channels of the voice file. |
| void com.hyphenate.chat.EMAudioParams.setFormat | ( | AudioFormat | format | ) |
Sets the format of the voice file.
| format | The format of the voice file. |
| void com.hyphenate.chat.EMAudioParams.setSampleRate | ( | int | sampleRate | ) |
Sets the sampling rate of the voice file(in Hz).
| sampleRate | The sampling rate of the voice file. |