Det oppdaterte finner man her
https://github.com/yt-dlp/yt-dlp
flask --app hello run
pipx install flask
pipx install yt_dlp
pipx install urllib3
pipx install functions-framework
pipx install google-cloud-storage
pipx install essentia
pipx install essentia-tensorflow
mac os x
brew install pipx
brew install ffmpeg
brew install ffprobe
brew install black
brew install killport
pipx ensurepath
yt-dlp --audio-format mp3 -o "test.mp3" https://www.youtube.com/watch?v=7E-cwdnsiow
Eksempel her: https://github.com/cobanov/audio-genre-detection/tree/main
On mac OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
killport 7475 && functions-framework --target=handler --port=7475
From a starting point this service seems.
https://github.com/GoogleCloudPlatform/functions-framework-python
gcloud functions deploy handler --gen2 --runtime python312 --trigger-http --memory 1024 --project notefornote
gcloud functions call handler --project notefornote
FML moment https://cloud.google.com/functions/docs/writing/specifying-dependencies-python#python38
python3 -m pip download -r requirements.txt --only-binary=:all: \
-d deps \
--python-version 3.12.3 \
--platform manylinux2014_x86_64 \
--implementation cp
The analysis service is booted with a token that make it possible to talk with a sentral server.
- written in python.
- could be dumb, that is orchestrated from a sentral point
- sentral server could hit this server with all it need to