You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/includes/how-to/speech-synthesis/java.md
+101-5Lines changed: 101 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,17 +198,113 @@ public static void main(String[] args) {
198
198
199
199
## Subscribe to synthesizer events
200
200
201
+
You might want more insights about the text-to-speech processing and results. For example, you might want to know when the synthesizer starts and stops, or you might want to know about other events encountered during synthesis.
202
+
201
203
While using the [SpeechSynthesizer](/java/api/com.microsoft.cognitiveservices.speech.speechsynthesizer) for text-to-speech, you can subscribe to the events in this table:
202
204
203
205
[!INCLUDE [Event types](events.md)]
204
206
205
-
Here's an example that shows how to subscribe to the `BookmarkReached` event for speech synthesis.
207
+
Here's an example that shows how to subscribe to events for speech synthesis. You can follow the instructions in the [quickstart](../../../get-started-text-to-speech.md?pivots=java), but replace the contents of that `SpeechSynthesis.java` file with the following Java code.
0 commit comments