Realtime Audio on Android with Python, Kivy and Audiostream (low level library)
ฝัง
- เผยแพร่เมื่อ 4 มิ.ย. 2024
- This tutorial demonstrates how to use the library audiostream to create a Android app with Python and Kivy which can play and manipulate a sinewave in realtime. The example app was programmed with Python, the Kivy framework, VS Code. GWSL and the Ubuntu Subsystem.
If anything is unclear, feel free to ask and write a comment.
▬ Links ► ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Code of this tutorial (Audio):
github.com/denczo/kivy_examples
Dev Setup:
• Python Development Set...
Build and Deploy the app:
• Build & Deploy Kivy Py...
Kivy Garden Graph:
kivy.org/doc/stable/api-kivy....
kivy-garden.github.io/graph/f...
Audiostream:
github.com/kivy/audiostream
audiostream.readthedocs.io/en...
github.com/kivy/audiostream/i...
Visualisations:
www.desmos.com/calculator/dax... (Linear Interpolation)
www.desmos.com/calculator/eeu... (Discontinuity)
▬ Commands ► ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Required libraries and tools:
sudo apt-get update -y
sudo apt-get install python3
sudo apt install python3-pip
sudo apt install git
pip3 install kivy
pip3 install numpy
pip3 install kivy-garden.graph
sudo apt-get install libsdl1.2-dev
sudo apt-get install libsdl-mixer1.2-dev
pip3 install git+github.com/kivy/audiostream.git
▬ Chapters ► ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► 0:00 - Intro
► 1:11 - Audio theory
► 3:29 - Coding: Setup
► 4:19 - Coding: Audio Player
► 12:08 - Coding: Threading
► 18:03 - Smoother transitions
► 18:52 - Run App on Android
► 19:34 - Outro
▬ Programming ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► VS Code
► GWSL (Microsoft Store)
► Python 3.8.1
► Kivy 2.0
► Audiostream
▬ Editing ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Sony Vegas Pro Edit 14
► OBS
► Samson Go Mic
► Framework Laptop Webcam - วิทยาศาสตร์และเทคโนโลยี
This video is part of an ongoing tutorial series with the Kivy framework. Dev setup, basics of Kivy and deployment are explained in more detail in separate videos. Make sure to check out the playlist!
Thank you so much! I have been searching so much how to figure out recording audio with Python on Android. Audiostream seems to be answer, I'll study it. I can thank you enough!
Hello...can you help me to install the library AudioStream please?
Can you make tutorial about saving file in private storage using kivy app on android I have a lot of problem about it and still doesn't work
what do you by payaudio is not supported by Android? can't you write a recipes for it and make it work?
what is the link for the application making for android?
My Lion, my Bear.
May I know how you install audiostream?
Hey Mark! You simply have to clone the repository github.com/kivy/audiostream and run "sudo python setup.py install" (there is a setup.py inside of the repo). If you have issues installing it, here might be the solution for it: github.com/kivy/audiostream/issues/23#issuecomment-388734483. I'll add that to the description. Happy Coding! :)
@@fullstacklab Did you use Windows CMD?
在桌面电脑上播放声音的Kivy程序在Android上无法运行,怎么解决?
Well, I had to use a translator but to answer your question: If audio is not working on your android device then run your app with the android debug bridge. In such a case it usually has to do with the buildozer.spec file, e.g. the library was not specified inside of the buildozer.spec or there was a spelling error. Cheers.
@@fullstacklab sorry,i am not good at english,so have to chat with you in chinese,you done this way?