Skip to content

Commit 0568d25

Browse files
committed
sentence boundary
1 parent 62f8cc6 commit 0568d25

File tree

1 file changed

+3
-0
lines changed
  • articles/cognitive-services/Speech-Service/includes/how-to/speech-synthesis

1 file changed

+3
-0
lines changed

articles/cognitive-services/Speech-Service/includes/how-to/speech-synthesis/java.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ public class SpeechSynthesis {
220220
public static void main(String[] args) throws InterruptedException, ExecutionException {
221221

222222
SpeechConfig speechConfig = SpeechConfig.fromSubscription(speechKey, speechRegion);
223+
224+
// Required for WordBoundary event sentences.
225+
speechConfig.setProperty(PropertyId.SpeechServiceResponse_RequestSentenceBoundary, "true");
223226

224227
String speechSynthesisVoiceName = "en-US-JennyNeural";
225228

0 commit comments

Comments
 (0)