You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
438 B

# -*- coding: utf-8 -*-
Sound notification plugin using gstreamer
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst # noqa: E402
_player = Gst.ElementFactory.make("playbin", "player")
def connect_plugin(sound_file):
"""Entry point for sound file"""
_player.set_property("uri", "file://" + sound_file)