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

Add support for playing audio in video outputs #65

Open
mktip opened this issue Oct 28, 2022 · 2 comments
Open

Add support for playing audio in video outputs #65

mktip opened this issue Oct 28, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@mktip
Copy link

mktip commented Oct 28, 2022

This request might be out of scope for the project overall, and if that's the case please ignore it.

I was wondering if its possible to add a feature where one would be able to start playing a specific audio file after a specific point in the script (for example after displaying a specific command). This might be helpful in cases where one would like to make some educational material or even for documentation purposes, or onboardings.

Constructs to play the audio and to concurrently play or await for the audio once played might be useful to serve the above purposes. "ID" constructs might be added to also micro control the awaiting, to specify for which audio should the player wait if multiple ones where playing at the same time.

Adding such feature might be used as follows if one was to edit them into the sample in the readme:


# Where should we write the GIF?
Output demo.mp4

...

# Pause for dramatic effect...
Sleep 500ms


## plays the specified audio file
PlayAudio two-Inception-style-BRAAMS-followed-in-succession.wav

## awaits for the played audio to finish before continuing with the demo
AwaitAudio 

# Run the command by pressing enter.
Enter

...

Is this feature making the project into a declarative sort of term video editing tool? Yeah kinda, but I was thinking maybe its simple enough that it could serve a specific niche, as using full blown video editors for simple tool demos or documentation purposes can be really frustrating and an overkill.

@mmp-schmitt
Copy link

Interesting, ... this leads to another idea. Would it be possible to add keyboard sounds whenever keyboard input is simulated? With some random delays between keyboard inputs it would look like a human typed it.

@muesli muesli added the enhancement New feature or request label Oct 30, 2022
@adriens
Copy link

adriens commented Nov 14, 2022

Interesting, ... this leads to another idea. Would it be possible to add keyboard sounds whenever keyboard input is simulated? With some random delays between keyboard inputs it would look like a human typed it.

Exactly... I was just thinking of that to make the illusion even better 😄

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

No branches or pull requests

4 participants