Realtime Audio on Android with Python, Kivy and Audiostream (low level library)
Описание
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):
https://github.com/denczo/kivy_examples
Dev Setup:
https://www.youtube.com/watch?v=iJUM306kqHA&feature=youtu.be
Build and Deploy the app:
https://www.youtube.com/watch?v=pzsvN3fuBA0
Kivy Garden Graph:
https://kivy.org/doc/stable/api-kivy.garden.html
https://kivy-garden.github.io/graph/flower.html
Audiostream:
https://github.com/kivy/audiostream
https://audiostream.readthedocs.io/en/latest/
https://github.com/kivy/audiostream/issues/2 #issuecomment-388734483
Visualisations:
https://www.desmos.com/calculator/dax3msmoec (Linear Interpolation)
https://www.desmos.com/calculator/eeub07aqei (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+https://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
Рекомендуемые видео



















