aboutsummaryrefslogtreecommitdiff
path: root/backends/text-to-speech
diff options
context:
space:
mode:
authorThierry Crozat2019-07-28 16:24:45 +0100
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitbac880816b0442e504833bd9eeb3d782bcdd5fac (patch)
treef2fe5d5c0794d242e6eb16003502fca0eeda6713 /backends/text-to-speech
parent5baa023ed0d30024ddc3ef58442e193987becb64 (diff)
downloadscummvm-rg350-bac880816b0442e504833bd9eeb3d782bcdd5fac.tar.gz
scummvm-rg350-bac880816b0442e504833bd9eeb3d782bcdd5fac.tar.bz2
scummvm-rg350-bac880816b0442e504833bd9eeb3d782bcdd5fac.zip
TTS: Stop or pause speaking on word boundaries in macOS implementation
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r--backends/text-to-speech/macosx/macosx-text-to-speech.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/text-to-speech/macosx/macosx-text-to-speech.mm b/backends/text-to-speech/macosx/macosx-text-to-speech.mm
index 46a05e6c98..281d92f926 100644
--- a/backends/text-to-speech/macosx/macosx-text-to-speech.mm
+++ b/backends/text-to-speech/macosx/macosx-text-to-speech.mm
@@ -69,13 +69,14 @@ bool MacOSXTextToSpeechManager::say(Common::String text, Common::String encoding
}
bool MacOSXTextToSpeechManager::stop() {
- [synthesizer stopSpeaking];
+ // Should we use NSSpeechImmediateBoundary, or even NSSpeechSentenceBoundary?
+ [synthesizer stopSpeakingAtBoundary:NSSpeechWordBoundary];
return true;
}
bool MacOSXTextToSpeechManager::pause() {
- // Should we use NSSpeechWordBoundary, or even NSSpeechSentenceBoundary?
- [synthesizer pauseSpeakingAtBoundary:NSSpeechImmediateBoundary];
+ // Should we use NSSpeechImmediateBoundary, or even NSSpeechSentenceBoundary?
+ [synthesizer pauseSpeakingAtBoundary:NSSpeechWordBoundary];
return true;
}