Greetings!
The Azure Cognitive Services' Text-to-Speech (TTS) API has a limitation that restricts the generation of audio files to a maximum of 10 minutes. This is a known product limitation. To generate audio files longer than 10 minutes, you should use the Text-to-Speech batch synthesizer for asynchronous applications. The batch synthesizer allows for handling longer text inputs and can produce extended audio outputs, although it is not designed for real-time processing and will need to be managed asynchronously.
Resources:
For more information, please see the following links:
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help. Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.