| }; | }; | ||||
| public static File getDataPath(Context context) { | public static File getDataPath(Context context) { | ||||
| return new File(context.getDir("voices", MODE_PRIVATE), "espeak-data"); | |||||
| return new File(context.getDir("voices", MODE_PRIVATE), "espeak-ng-data"); | |||||
| } | } | ||||
| public static boolean hasBaseResources(Context context) { | public static boolean hasBaseResources(Context context) { |
| } | } | ||||
| final String version = FileUtils.read(mContext.getResources().openRawResource(R.raw.espeakdata_version)); | final String version = FileUtils.read(mContext.getResources().openRawResource(R.raw.espeakdata_version)); | ||||
| final File outputFile = new File(mOutput, "espeak-data/version"); | |||||
| final File outputFile = new File(mOutput, "espeak-ng-data/version"); | |||||
| FileUtils.write(outputFile, version); | FileUtils.write(outputFile, version); | ||||
| return RESULT_OK; | return RESULT_OK; |