Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Selection to audio breaks around 770 words #60

Open
MTGMAD opened this issue Oct 18, 2024 · 1 comment
Open

Export Selection to audio breaks around 770 words #60

MTGMAD opened this issue Oct 18, 2024 · 1 comment

Comments

@MTGMAD
Copy link

MTGMAD commented Oct 18, 2024

I work with large text blocks and when I select Aloud: Export selection to audio it works great for text blocks under 770 words, but when I try above that says 780 words it looks like it is going to work, but then I get failed to export Audio.

@adrianlyjak
Copy link
Owner

oops, @MTGMAD thanks, I seem to have overlooked that the max number of characters for a single request is 4096. (https://platform.openai.com/docs/api-reference/audio/createSpeech) I'm guessing that you're running into that limit. The plugin will need to implement some sort of chunking and concatenation for a single audio export greater than that number of characters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants