Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

schemdule-extensions-audioplay

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schemdule-extensions-audioplay

A audio player extension for schemdule.

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

schemdule-extensions-audioplay

Schemdule

Downloads

A audio player extension for Schemdule.

Install

Install dependencies:

# Install dependencies on Linux (only)
sudo apt-get install -y python3-dev libasound2-dev

# Install ffmpeg
choco install ffmpeg        # Windows
apt-get install -y ffmpeg   # Linux
brew install ffmpeg         # MacOS

Use pip:

pip install schemdule-extensions-audioplay

Or use pipx:

pipx inject schemdule schemdule-extensions-audioplay

# Upgrade
pipx upgrade schemdule --include-injected

Check if the extension installed:

schemdule ext

Usage

This extension provide a AudioPlayerPrompter and add the following extension methods on PrompterBuilder and PayloadBuilder.

class PrompterBuilder:
    def useAudioPlayer(self: PrompterBuilder, endSpace: Optional[timedelta] = None, final: bool = False) -> PrompterBuilder:
        """
        endSpace: Stop audio before next event, default 10 seconds. The empty space leads to the next event outdated.
        """
        ...

class PayloadBuilder:
    def useAudio(self, files: Iterable[str]) -> "PayloadBuilder":
        ...

Use the extension in the schema script.

# schema.py
ext("audioplay")

at(..., payloads().useAudio(["file1"]))

prompter.useAudioPlayer()

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc