Replies: 1 comment
-
I'm not sure this necessarily needs to live in the framework. We don't really prevent max input size for basic Driver interactions. We could put this logic in an Engine, but that feels overkill. In the case of the Pulling a snippet you've shared: prompt_str = self.prompt_joiner.join(prompts).strip()
new_prompts = [
prompt_str[i : i + self.text_to_speech_driver.max_characters]
for i in range(0, len(prompt_str), self.text_to_speech_driver.max_characters)
]
return [self.text_to_speech_driver.try_text_to_audio(prompt=prompt) for prompt in new_prompts] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
OpenAI's
tts-1
model has an input character limit of 4096. The driver should be updated to split up API calls with this max limit in mind.Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions