mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-09 12:53:05 +02:00
Addressing comments from a475cd4d33.
This commit is contained in:
@@ -43,6 +43,7 @@ public class StatusAnnouncerTask implements PeriodicTask {
|
||||
/**
|
||||
* The rate at which announcements are spoken.
|
||||
*/
|
||||
// @VisibleForTesting
|
||||
static final float TTS_SPEECH_RATE = 0.9f;
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,7 @@ public class StatusAnnouncerTask implements PeriodicTask {
|
||||
*/
|
||||
private void onTtsInit(int status) {
|
||||
Log.i(MyTracksConstants.TAG, "TrackRecordingService.TTS init: " + status);
|
||||
this.ready = (status == TextToSpeech.SUCCESS);
|
||||
this.ready = status == TextToSpeech.SUCCESS;
|
||||
|
||||
if (ready) {
|
||||
// Force the language to be the same as the string we will be speaking,
|
||||
|
||||
Reference in New Issue
Block a user