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

102 Views Asked by At

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.

2

There are 2 best solutions below

0
Yuriy N. On

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

0
Yulin Li On

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