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

maybe use sounddevice.wait() at end of program? #2

Open
jprovidenza opened this issue Apr 8, 2019 · 1 comment
Open

maybe use sounddevice.wait() at end of program? #2

jprovidenza opened this issue Apr 8, 2019 · 1 comment

Comments

@jprovidenza
Copy link

The code currently uses
time.sleep("4")
to delay at the end of the program while audio is played.

You could use:
sounddevice.wait()
to play the file, wait until it is finished, then exit. For short files, this avoids having to
wait extra time after the audio has played.

Very nice program! Thanks!

John P

@actondev
Copy link
Owner

oh! thanks for the advice and for your comment!
hope to remember to upload this change shortly heh

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