playsound - PyPI

文章推薦指數: 80 %
投票人數:10人

Pure Python, cross platform, single function module with no dependencies for playing sounds. Skiptomaincontent Switchtomobileversion SearchPyPI Search playsound1.3.0 pipinstallplaysound CopyPIPinstructions Latestversion Released: Jul24,2021 PurePython,crossplatform,singlefunctionmodulewithnodependenciesforplayingsounds. Navigation Projectdescription Releasehistory Downloadfiles Projectlinks Homepage Statistics GitHubstatistics: Stars: Forks: Openissues/PRs: ViewstatisticsforthisprojectviaLibraries.io,orbyusingourpublicdatasetonGoogleBigQuery Meta License:MITLicense(MIT) Author:TaylorMarks Tags sound, playsound, music, wave, wav, mp3, media, song, play, audio Maintainers TaylorSMarks Classifiers DevelopmentStatus 5-Production/Stable IntendedAudience Developers License OSIApproved::MITLicense OperatingSystem OSIndependent ProgrammingLanguage Python::2 Python::2.3 Python::2.4 Python::2.5 Python::2.6 Python::2.7 Python::3 Python::3.1 Python::3.2 Python::3.3 Python::3.4 Python::3.5 Python::3.6 Python::3.7 Python::3.8 Python::3.9 Topic Multimedia::Sound/Audio::MIDI Multimedia::Sound/Audio::Players Multimedia::Sound/Audio::Players::MP3 Projectdescription Projectdetails Releasehistory Downloadfiles Projectdescription PurePython,crossplatform,singlefunctionmodulewithnodependenciesforplayingsounds. Installation Installviapip: $pipinstallplaysound Done. Ifyouinsistonthe(slightly)harderwayofinstalling,fromsource, youknowhowtodoitalreadyanddon’tneedmyhelp. Thelatestversionofthesourcecodecanbefoundat: https://github.com/TaylorSMarks/playsound QuickStart Onceyou’veinstalled,youcanreallyquicklyverifiedthatitworkswithjustthis: >>>fromplaysoundimportplaysound >>>playsound('/path/to/a/sound/file/you/want/to/play.mp3') Documentation Theplaysoundmodulecontainsonlyonething-thefunction(alsonamed)playsound. Itrequiresoneargument-thepathtothefilewiththesoundyou’dliketoplay.Thismaybealocalfile,oraURL. There’sanoptionalsecondargument,block,whichissettoTruebydefault.SettingittoFalsemakesthefunctionrunasynchronously. OnWindows,useswindll.winmm.WAVEandMP3havebeentestedandareknowntowork.Otherfileformatsmayworkaswell. OnOSX,usesAppKit.NSSound.WAVEandMP3havebeentestedandareknowntowork.Ingeneral,anythingQuickTimecanplay,playsoundshouldbeabletoplay,forOSX. OnLinux,usesGStreamer.KnowntoworkonUbuntu14.04andElementaryOSLoki.IexpectanyLinuxdistrowithastandardgnomedesktopexperienceshouldwork. Ifyou’dlikeotherLinuxdistros(oranyotherOS)towork,submitaPRaddinginsupportforit,butpleasemakesureitpassesthetests(seebelow). Testing Playsoundincludesasmallsetoftests-ifyou’remakingaPR,pleaseensurethatyouhavenoregressionsandallthetestspassonyourlocalsystem. AlsomakesurethatTravis-CI,whichrunsthesetestsagainstWindowsServer2016,macOS10.11(ElCapitan,2015)and11.3(BigSur,2020),Ubuntu14(Trusty),andUbuntu18(Bionic),forbothPython2.7and3.9,fullypasses. YoucanchecktheTravis-CIstatusforPlaysoundhere:https://travis-ci.com/github/TaylorSMarks/playsound/builds Copyright ThissoftwareisCopyright(c)2021TaylorMarks. SeethebundledLICENSEfileformoreinformation. Projectdetails Projectlinks Homepage Statistics GitHubstatistics: Stars: Forks: Openissues/PRs: ViewstatisticsforthisprojectviaLibraries.io,orbyusingourpublicdatasetonGoogleBigQuery Meta License:MITLicense(MIT) Author:TaylorMarks Tags sound, playsound, music, wave, wav, mp3, media, song, play, audio Maintainers TaylorSMarks Classifiers DevelopmentStatus 5-Production/Stable IntendedAudience Developers License OSIApproved::MITLicense OperatingSystem OSIndependent ProgrammingLanguage Python::2 Python::2.3 Python::2.4 Python::2.5 Python::2.6 Python::2.7 Python::3 Python::3.1 Python::3.2 Python::3.3 Python::3.4 Python::3.5 Python::3.6 Python::3.7 Python::3.8 Python::3.9 Topic Multimedia::Sound/Audio::MIDI Multimedia::Sound/Audio::Players Multimedia::Sound/Audio::Players::MP3 Releasehistory Releasenotifications| RSSfeed Thisversion 1.3.0 Jul24,2021 1.2.2 Jun29,2017 1.2.1 Feb28,2016 1.2.0 Feb20,2016 1.1.0 Jan27,2016 1.0.0 Jan25,2016 Downloadfiles Downloadthefileforyourplatform.Ifyou'renotsurewhichtochoose,learnmoreaboutinstallingpackages. SourceDistribution playsound-1.3.0.tar.gz (7.7kB viewhashes) Uploaded Jul24,2021 source Close Hashesforplaysound-1.3.0.tar.gz Hashesforplaysound-1.3.0.tar.gz Algorithm Hashdigest SHA256 cc6ed11d773034b0ef624e6bb4bf50f4b76b8414a59ce6d38afb89b423297ced Copy MD5 e50e650bf09732c35e20204b57fef9cd Copy BLAKE2-256 678cc9f46b4b194126c4abb12e96321a6bea5c8dcc5c0e4d97622c14dfabe299 Copy Close English español français 日本語 português(Brasil) українська Ελληνικά Deutsch 中文(简体) 中文(繁體) русский עברית esperanto Supportedby AWS Cloudcomputing Datadog Monitoring Facebook/Instagram PSFSponsor Fastly CDN Google ObjectStorageandDownloadAnalytics Huawei PSFSponsor Microsoft PSFSponsor NVIDIA PSFSponsor Pingdom Monitoring Salesforce PSFSponsor Sentry Errorlogging StatusPage Statuspage



請為這篇文章評分?