Command-line tool to play audio using OpenSL ES.
Available in Termux for installation with:
packages install play-audio
Run man play-audio
for usage instructions.
Command-line tool to play audio using OpenSL ES.
Home Page: https://termux.com
License: Apache License 2.0
So I cannot run it on my armv7l device:
u0_a159@localhost:~$ play-audio Word\ Crimes.mp3
/data/data/com.termux/files/usr/libexec/play-audio: 1: /data/data/com.termux/files/usr/libexec/play-audio: �ELF��: not found
/data/data/com.termux/files/usr/libexec/play-audio: 4: /data/data/com.termux/files/usr/libexec/play-audio: Syntax error: "(" unexpected
u0_a159@localhost:~$ $PREFIX/libexec/play-audio
bash: /data/data/com.termux/files/usr/libexec/play-audio: cannot execute binary file: Exec format error
u0_a159@localhost:~$ file !!
file $PREFIX/libexec/play-audio
/data/data/com.termux/files/usr/libexec/play-audio: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, not stripped
u0_a159@localhost:~$
I got an error when
$ play-audio foo.mp3
CANNOT LINK EXECUTABLE DEPENDENCIES: library "libc++_shared.so" not found
I have successfully played the required mp3 file but how to stop the file and how to make all audio controls
Could be played by other audio player.
OS: android 7.1
change the attached file to be s.opus and then play
s.zip
Hello,
I integrated this code on my project and I'm playing some sounds depending on events.
I added a threadpool implementation to make the song playing asynchronous.
It works, but after some sound plays I get "play-audio: underflow when prefetching data"
from the opensl_prefetch_callback(SLPrefetchStatusItf caller, void *pContext, SLuint32 event)
callback ?
Please can you explain me what does that mean ?
Hello,
It would be very nice to be able to pipe in pcm streams via standart in.
I know there's an effort to get pulse audio working in the meantime, but if we can get this one option, a wrapper can be written to make a media player with this function.
I was thinking something like play-audio +1:39 somefile.mp3
I would program it myself, but I don't have a computer to sit at and I saw there are errors compiling the player in Termux.
$ play-audio
CANNOT LINK EXECUTABLE "play-audio": cannot locate symbol "EVP_MD_CTX_init" referenced by "/system/lib64/libsqlite.so"...
$ uname -m
aarch64
Is it possible to compile this from Termux directly? I have tried doing so, but I get a ton of "undefined reference" errors from libraries in /system/lib.
Ultimately, I would like to use OpenSL to build and run little realtime audio apps on my android device.
Thanks,
-P
how to have play-audio play lazy 8 loop?
In my android phone the default volume steps are 15. Can i finer control volumne using play-audio. Or is there any package which can control volume easily from command line and more precisely
Hello,
Is it possible to adapt your code to play an audio from a wav or mp3 file by passing the path ?
Thanks
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.