kxxt / aspeak

A simple text-to-speech client for Azure TTS API.
MIT License
494 stars 57 forks source link

Error: Speech synthesis canceled: CancellationReason.Error #7

Closed BonexP closed 2 years ago

BonexP commented 2 years ago

when i run: aspeak -l zh-CN -f 从美丽的室友开始.txt -o 从美丽的室友开始.wav the txt file has 90k chars and 279KB. and then it shows: Error: Speech synthesis canceled: CancellationReason.Error Connection was closed by the remote host. Error code: 1007. Error details: Websocket message size cannot exceed 65536 bytes USP state: 3. Received audio size: 0 bytes. then I only used the first paragraph(4k letters and 12.8KB),and it works well.

imo,it may cause by too large file.

kxxt commented 2 years ago

Yes, and it is documented here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-services-quotas-and-limits#text-to-speech-quotas-and-limits-per-speech-resource#general

I will point out this limitation in the documentation soon.