Open
Description
Hi,
when requesting speech synthesis which contains an invalid Ipa phone token, then the java SDK (version 1.44.0) returns a SpeechSynthesisResult with ResultReason=SynthesizingAudioCompleted which is wrong. I expect an error-like result reason.
When using the same SSML in the Azure Speech Studio, then I get a correct error:
I am using the SpeechSynthesizer.SpeakSsml method with the following SSML:
sample-ssml.txt
I also tried SpeechSynthesisCancellationDetails.fromResult(result), but that leads to the following exception (I guess because that method is only forseen for ResultReason=Cancelled):
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 3
at com.microsoft.cognitiveservices.speech.SpeechSynthesisCancellationDetails.<init>(Unknown Source)
at com.microsoft.cognitiveservices.speech.SpeechSynthesisCancellationDetails.fromResult(Unknown Source)
Best regards,
Simon
Metadata
Metadata
Assignees
Labels
No labels