openscilab / nava Goto Github PK
View Code? Open in Web Editor NEW๐ต Playing Sounds in Python
License: MIT License
๐ต Playing Sounds in Python
License: MIT License
Add logo
Decorators cannot handle keyword arguments
>>> from nava import play
>>> play(sound_path="alarm.wav")
Play sound
Traceback (most recent call last):
...
IndexError: tuple index out of range
Windows 10
Python 3.8
nava.__version__
)Nava 0.1
Supporting playing sound in Jupyter notebook environment
No response
No response
No response
Support async mode
The decorator hides the parameters of the function
Windows 10
Python 3.8
nava.__version__
)Nava 0.1
We should use @wraps
from functools
module like here
Support loop
Orphan processes bug
import time
from nava import play, stop
for _ in range(1000):
sound_id = play("alarm.wav", async_mode=True)
time.sleep(4)
stop(sound_id)
Normal behavior
Receiving numerous resource warnings related to a large number of orphan processes
Ubuntu 18.04
Python 3.9
nava.__version__
)Nava v0.3
Add Nava to Conda
Add tests for different platforms
We use subprocess
to play sound in Linux and macOS (__play_linux
and __play_mac
functions) so we should prevent possible shell injections from sound_path
.
@input_check
)sound_path
should be a pathAdd CLI options
nava alarm.wav
nava --file="alarm.wav"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.