Yuriy N.
Yuriy N.

Reputation: 6107

Azure Text to Speech: Error code: 1007. Error details: SSML must contain a maximum of 50 voice elements

I use Azure text to speech and I got this exception:

Error code: 1007. Error details: SSML must contain a maximum of 50 voice elements. Actual 90.

But my SSML contains only 45 voice elements.

Upvotes: 1

Views: 300

Answers (2)

Yulin Li
Yulin Li

Reputation: 426

You can use batch synthesis api which doesn't have voice element count limit.

Upvotes: 0

Yuriy N.
Yuriy N.

Reputation: 6107

Figured myself. Azure TTS service actually counting both voice and audio elements. Error description somehow misleading, it should be mentioning audio elements as well.

Upvotes: 0

Related Questions