mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 06:32:20 +00:00
Implement SpeechSynthesis.getChannelCount in Java.
This commit is contained in:
@@ -49,6 +49,8 @@ public class SpeechSynthesis {
|
||||
public static final int AGE_YOUNG = 12;
|
||||
public static final int AGE_OLD = 60;
|
||||
|
||||
public static final int CHANNEL_COUNT_MONO = 1;
|
||||
|
||||
static {
|
||||
System.loadLibrary("ttsespeak");
|
||||
|
||||
@@ -96,7 +98,7 @@ public class SpeechSynthesis {
|
||||
}
|
||||
|
||||
public int getChannelCount() {
|
||||
return nativeGetChannelCount();
|
||||
return CHANNEL_COUNT_MONO;
|
||||
}
|
||||
|
||||
public int getAudioFormat() {
|
||||
@@ -341,8 +343,6 @@ public class SpeechSynthesis {
|
||||
|
||||
private native final int nativeGetSampleRate();
|
||||
|
||||
private native final int nativeGetChannelCount();
|
||||
|
||||
private native final int nativeGetAudioFormat();
|
||||
|
||||
private native final int nativeGetBufferSizeInMillis();
|
||||
|
||||
Reference in New Issue
Block a user