Skip to content

Wrong ResultReason when using invalid de-DE-Ipa phone token #2873

Open
@sc-nm

Description

@sc-nm

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:

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions