mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 05:46:19 +00:00
Report the eSpeak version in the main activity.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2012 Reece H. Dunn
|
||||
* Copyright (C) 2012-2013 Reece H. Dunn
|
||||
* Copyright (C) 2011 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -78,6 +78,10 @@ public class SpeechSynthesis {
|
||||
nativeDestroy();
|
||||
}
|
||||
|
||||
public static String getVersion() {
|
||||
return nativeGetVersion();
|
||||
}
|
||||
|
||||
public int getSampleRate() {
|
||||
return nativeGetSampleRate();
|
||||
}
|
||||
@@ -185,6 +189,8 @@ public class SpeechSynthesis {
|
||||
|
||||
private native final boolean nativeDestroy();
|
||||
|
||||
private native final static String nativeGetVersion();
|
||||
|
||||
private native final int nativeGetSampleRate();
|
||||
|
||||
private native final int nativeGetChannelCount();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2012 Reece H. Dunn
|
||||
* Copyright (C) 2012-2013 Reece H. Dunn
|
||||
* Copyright (C) 2009 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -177,6 +177,9 @@ public class eSpeakActivity extends Activity {
|
||||
mInformation.add(new Pair<String,String>(availableVoices, Integer.toString(mVoices.size())));
|
||||
}
|
||||
|
||||
final String version = getString(R.string.tts_version);
|
||||
mInformation.add(new Pair<String,String>(version, SpeechSynthesis.getVersion()));
|
||||
|
||||
final String statusText;
|
||||
switch (mState) {
|
||||
case ERROR:
|
||||
|
||||
Reference in New Issue
Block a user