79587534

Date: 2025-04-22 22:22:50
Score: 4.5
Natty:
Report link

Then bookmark tags won't send events?

<bookmark mark='some_mark'/>

I've tried setting this options:

speech_config.request_word_level_timestamps()      speech_config.set_property(speechsdk.PropertyId.SpeechServiceResponse_RequestSentenceBoundary, "true")
speech_config.set_property(speechsdk.PropertyId.SpeechServiceResponse_RequestWordBoundary, "true")

synthesizer = speechsdk.SpeechSynthesizer(speech_config=self.speech_config, audio_config=audio_config)
synthesizer.synthesis_word_boundary.connect(word_boundary_handler)
synthesizer.bookmark_reached.connect(word_boundary_handler)

result = synthesizer.speak_ssml_async(text).get()

But my word_boundary_handler is still not being called, the text is formatted correctly but only has bookmark tags not wordBoundary. Is that the issue? Can you provide some sample text with word boundaries and your config?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide some
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Emilio Manzano Marcos