ospeak icon indicating copy to clipboard operation
ospeak copied to clipboard

Better handling of input string length limit

Open jheinem1 opened this issue 1 year ago • 0 comments

It appears that OpenAI's TTS API has a length limit of 4096 tokens, and the CLI throws a pretty nasty python error if the input string exceeds this length.

image

I would suggest at least catching this error and throwing something more readable.

jheinem1 avatar Jan 08 '24 08:01 jheinem1