mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 22:26:48 +00:00
Support installing the voices if the voice data signature has changed.
This commit is contained in:
@@ -173,6 +173,15 @@ public class DownloadVoiceData extends Activity {
|
||||
// Make sure the output file is readable.
|
||||
doChmod(outputFile);
|
||||
}
|
||||
|
||||
final String version = CheckVoiceData.readContent(mContext.getResources().openRawResource(R.raw.espeakdata_version));
|
||||
final File outputFile = new File(mOutput, "espeak-data/version");
|
||||
mExtractedFiles.add(outputFile);
|
||||
|
||||
final FileOutputStream outputStream = new FileOutputStream(outputFile);
|
||||
outputStream.write(version.getBytes(), 0, version.length());
|
||||
outputStream.close();
|
||||
doChmod(outputFile);
|
||||
}
|
||||
|
||||
private void removeExtractedFiles() {
|
||||
|
||||
Reference in New Issue
Block a user