pywinmm


Namepywinmm JSON
Version 0.3 PyPI version JSON
download
home_pagehttps://github.com/baaziznasser/pywinmm
Summarya python library that works with win multy media dll
upload_time2022-12-02 20:55:52
maintainer
docs_urlNone
authornacer baaziz
requires_python>=3.4
licenseGPL-3.0
keywords pywinmm windows multy media winmm.dll pyaudio mp3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pywinmm:
this python library can help you to control your audio files where it support a lot of file formats.\
video files will be supported through updates\
this library is using the winmulty media dll (winmm.dll) that comes with windows.\
am trying to make it simple as i can\
so please support with ideas or you can help on github project\
https://github.com/baaziznasser/pywinmm

## install pywinmm
you can install pywinmm through the pypi by using\
	pip install pywinmm

## what's new
* aded PlaySound function, that can use to play a wav files, play wav from resources, and play regestered wav on system
* aded MessageBeep function, this function can make a beep using the system regestered wavs
* added Beep function, this function will generate a beep using the frequency and the time that you want

## avalable functions
here is the list of avalable functions\
* load (load the file)
* loop (set or disable loop, the play function must recall after this function)
* reverce (enable or disable reverce, the play function must call after this one)
* loadrec (load the audio recorder)
* play (play the audio)
* record (start recording)
* pause (pause the player or recorder)
* resume (resume the player or the recorder)
* getlength (get the length of file or the recorded time)
* get position (get the current position)
* setposition (change the current position)
* get volume (get the current volume)
* setvolume (get the current volume)
* status (get the current status)
* stop (stop the player or the recorder)
* unload (unload the player or the recorder)
* PlaySound (play a wav from file or resource)
* MessageBeep (play a beep using system regestered wavs)
* Beep (play a beep using a frequency and time by MS)

an other functions will be aded soon.

## example of usage:
	import pywinmm
	import time
	clip = pywinmm.load(r'snd.mp3')
	print(clip.getvolume())
	clip.setvolume(200)
	print(clip.getvolume())
	clip.loop(True)
	clip.reverse(False)
	clip.play()
	print(clip.getlength())
	time.sleep(1)
	print(clip.getposition())
	clip.setposition(2000)
	print(clip.getposition())
	clip.play()
	print(clip.status())


## notes:
this library can works only with windows

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/baaziznasser/pywinmm",
    "name": "pywinmm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "pywinmm,windows multy media,winmm.dll,pyaudio,mp3",
    "author": "nacer baaziz",
    "author_email": "Nacer Baaziz <nacerbaaziz@ng-space.com>",
    "download_url": "https://files.pythonhosted.org/packages/72/3d/24aac6d85355a7531fb956edb1baeb6972b70da6db54cb5e45ceee712a92/pywinmm-0.3.tar.gz",
    "platform": null,
    "description": "# pywinmm:\r\nthis python library can help you to control your audio files where it support a lot of file formats.\\\r\nvideo files will be supported through updates\\\r\nthis library is using the winmulty media dll (winmm.dll) that comes with windows.\\\r\nam trying to make it simple as i can\\\r\nso please support with ideas or you can help on github project\\\r\nhttps://github.com/baaziznasser/pywinmm\r\n\r\n## install pywinmm\r\nyou can install pywinmm through the pypi by using\\\r\n\tpip install pywinmm\r\n\r\n## what's new\r\n* aded PlaySound function, that can use to play a wav files, play wav from resources, and play regestered wav on system\r\n* aded MessageBeep function, this function can make a beep using the system regestered wavs\r\n* added Beep function, this function will generate a beep using the frequency and the time that you want\r\n\r\n## avalable functions\r\nhere is the list of avalable functions\\\r\n* load (load the file)\r\n* loop (set or disable loop, the play function must recall after this function)\r\n* reverce (enable or disable reverce, the play function must call after this one)\r\n* loadrec (load the audio recorder)\r\n* play (play the audio)\r\n* record (start recording)\r\n* pause (pause the player or recorder)\r\n* resume (resume the player or the recorder)\r\n* getlength (get the length of file or the recorded time)\r\n* get position (get the current position)\r\n* setposition (change the current position)\r\n* get volume (get the current volume)\r\n* setvolume (get the current volume)\r\n* status (get the current status)\r\n* stop (stop the player or the recorder)\r\n* unload (unload the player or the recorder)\r\n* PlaySound (play a wav from file or resource)\r\n* MessageBeep (play a beep using system regestered wavs)\r\n* Beep (play a beep using a frequency and time by MS)\r\n\r\nan other functions will be aded soon.\r\n\r\n## example of usage:\r\n\timport pywinmm\r\n\timport time\r\n\tclip = pywinmm.load(r'snd.mp3')\r\n\tprint(clip.getvolume())\r\n\tclip.setvolume(200)\r\n\tprint(clip.getvolume())\r\n\tclip.loop(True)\r\n\tclip.reverse(False)\r\n\tclip.play()\r\n\tprint(clip.getlength())\r\n\ttime.sleep(1)\r\n\tprint(clip.getposition())\r\n\tclip.setposition(2000)\r\n\tprint(clip.getposition())\r\n\tclip.play()\r\n\tprint(clip.status())\r\n\r\n\r\n## notes:\r\nthis library can works only with windows\r\n",
    "bugtrack_url": null,
    "license": "GPL-3.0",
    "summary": "a python library that works with win multy media dll",
    "version": "0.3",
    "split_keywords": [
        "pywinmm",
        "windows multy media",
        "winmm.dll",
        "pyaudio",
        "mp3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "a949789d3eaa0f8b5e114bf3c0652b80",
                "sha256": "4b11ca39eeaff5c17c10a4a44617c22fb2afdb0f9c0969883b18f7417f504ffd"
            },
            "downloads": -1,
            "filename": "pywinmm-0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a949789d3eaa0f8b5e114bf3c0652b80",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 16679,
            "upload_time": "2022-12-02T20:55:48",
            "upload_time_iso_8601": "2022-12-02T20:55:48.866936Z",
            "url": "https://files.pythonhosted.org/packages/0c/85/8af1687ebf67f3abadc7f38a071bd98bd5c07ed4ef4a057b8d1395c7e022/pywinmm-0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "51663b91b464724cb6df2da58571aee8",
                "sha256": "16a0920c93ddb1dd1d90899fcd11bc20aa1b9d12b34a04a0d653f0bc8c2db73f"
            },
            "downloads": -1,
            "filename": "pywinmm-0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "51663b91b464724cb6df2da58571aee8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 16667,
            "upload_time": "2022-12-02T20:55:52",
            "upload_time_iso_8601": "2022-12-02T20:55:52.142586Z",
            "url": "https://files.pythonhosted.org/packages/72/3d/24aac6d85355a7531fb956edb1baeb6972b70da6db54cb5e45ceee712a92/pywinmm-0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-02 20:55:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "baaziznasser",
    "github_project": "pywinmm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pywinmm"
}
        
Elapsed time: 0.01474s