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

Output generated via command line tool not saved if prompt is very long #102

Open
theelefant opened this issue Aug 11, 2023 · 1 comment

Comments

@theelefant
Copy link

OS: Windows 11

As per subject line: Output generated via command line tool not saved if prompt is very long.
When limiting the string for example to only 10 characters in "save_wave(waveform, save_path, name="%s_%s" % (get_time(), text[:10]))" then the generated files are saved.

@jacksonlevine
Copy link

jacksonlevine commented Oct 9, 2024

Seconding this! I am also on windows 11.

Libsndfile outputs a system error if I use an even slightly long prompt. I let a prompt generate overnight and the entire thing was wasted because it didn't save the damn file.

This is the error, edited to remove the prompt, but just imagine a sentence about as long as the above part of this message (I.e. a perfectly reasonable prompt length, in fact very short for a prompt):

soundfile.LibsndfileError: Error opening './output\\generation\\09_10_2024_11_59_38_My prompt here': System error.

I am guessing that this could be extremely easily fixed by allowing specifying the output filename. I might pull request this.

In retrospect, it was probably ill-advised to use the entire prompt as the file name.

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