{
 "app_id": "net.mkiol.SpeechNote",
 "source_url": "https://raw.githubusercontent.com/flathub/net.mkiol.SpeechNote/master/net.mkiol.SpeechNote.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-24.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=xdg-download",
  "--filesystem=xdg-desktop",
  "--filesystem=xdg-music",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-documents",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 46,
 "fetched_at": "2026-09-17T16:13:36.898748+00:00",
 "manifest": {
  "app-id": "net.mkiol.SpeechNote",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-24.08",
  "sdk": "org.kde.Sdk",
  "rename-icon": "dsnote",
  "command": "dsnote",
  "build-options": {
   "strip": false
  },
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-download",
   "--filesystem=xdg-music",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-videos",
   "--env=PYTORCH_TENSOREXPR=0",
   "--env=PYTHONPATH=/app/extensions/nvidia/lib/python3.12/site-packages:/app/extensions/amd/lib/python3.12/site-packages:/app/extensions/cpu/lib/python3.12/site-packages:/app/lib/python3.12/site-packages",
   "--env=LD_LIBRARY_PATH=/app/opt/intel/lib:/app/extensions/nvidia/lib:/app/extensions/amd/lib:/app/extensions/cpu/lib:/app/extensions/nvidia/cuda/lib64:/app/extensions/amd/rocm/lib:/app/extensions/amd/rocm/lib/llvm/lib:/app/extensions/amd/zluda",
   "--env=OPENCL_VENDOR_PATH=/app/opt/opencl/vendors",
   "--env=PERL5LIB=/app/lib/perl5/site_perl",
   "--env=QT_QUICK_CONTROLS_HOVER_ENABLED=1",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "/cmake",
   "/etc",
   "/man",
   "/dummy",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/python3.12/site-packages/__pycache__",
   "/lib/python3.12/site-packages/nvidia*",
   "/lib/python3.12/site-packages/cmake*",
   "/lib/python3.12/site-packages/git*",
   "/lib/python3.12/site-packages/Git*",
   "/lib/python3.12/site-packages/torch/test",
   "/lib/python3.12/site-packages/torch/include",
   "/lib/python3.12/site-packages/pypinyin/__pycache__",
   "/lib/python3.12/site-packages/pandas/tests",
   "/lib/python3.12/site-packages/torchvision*",
   "/lib/libSPIRV*",
   "/lib/libshaderc*",
   "/share/cmake",
   "/share/doc",
   "/share/locale",
   "/share/man",
   "/share/pkgconfig",
   "/share/runtime",
   "/share/vim",
   "/share/ffmpeg",
   "/share/aclocal",
   "/bin/spellout",
   "/bin/vulkan*",
   "/bin/speak*",
   "/bin/xdo*",
   "*.a",
   "*.la"
  ],
  "add-extensions": {
   "net.mkiol.SpeechNote.Addon": {
    "directory": "extensions",
    "no-autodownload": true,
    "autodelete": false,
    "subdirectories": true,
    "version": "stable",
    "versions": "stable;beta;test;master"
   }
  },
  "modules": [
   {
    "name": "fmt",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DFMT_DOC=OFF",
     "-DFMT_TEST=OFF",
     "-DFMT_FUZZ=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/fmtlib/fmt/releases/download/11.1.3/fmt-11.1.3.zip",
      "sha256": "7df2fd3426b18d552840c071c977dc891efe274051d2e7c47e2c83c3918ba6df"
     }
    ]
   },
   {
    "name": "openblas",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBUILD_TESTING=OFF",
     "-DBUILD_WITHOUT_LAPACK=OFF",
     "-DC_LAPACK=ON",
     "-DDYNAMIC_ARCH=ON",
     "-DBUILD_STATIC_LIBS=OFF",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "build-options": {
     "no-debuginfo": true,
     "arch": {
      "x86_64": {
       "config-opts": [
        "-DTARGET=CORE2"
       ]
      },
      "aarch64": {
       "config-opts": [
        "-DTARGET=ARMV8"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.29/OpenBLAS-0.3.29.tar.gz",
      "sha256": "38240eee1b29e2bde47ebb5d61160207dc68668a54cac62c076bb5032013b1eb"
     }
    ]
   },
   {
    "name": "mbrola",
    "buildsystem": "simple",
    "build-commands": [
     "make",
     "mkdir -p /app/bin",
     "cp Bin/mbrola /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/numediart/MBROLA/archive/refs/tags/3.3.tar.gz",
      "sha256": "c01ded2c0a05667e6df2439c1c02b011a5df2bfdf49e24a524630686aea2b558"
     }
    ]
   },
   {
    "name": "espeak",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-pic",
     "--enable-static",
     "--with-pcaudiolib=no",
     "--with-sonic=no",
     "--with-speechplayer=no",
     "--with-mbrola=yes",
     "--with-extdict-ru"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rhasspy/espeak-ng/archive/8593723f10cfd9befd50de447f14bf0a9d2a14a4.zip",
      "sha256": "cc8092f23a28ccd79b1c5e62984a4c4ac1959d2d0b8193ac208d728c620bd5ed"
     },
     {
      "type": "patch",
      "path": "patches/espeak-flatpak.patch"
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "cleanup": [
     "/lib"
    ],
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=system",
     "./b2 -j ${FLATPAK_BUILDER_N_JOBS} install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.82.0/source/boost_1_82_0.tar.bz2",
      "sha256": "a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6"
     }
    ]
   },
   {
    "name": "webrtcvad",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/webrtc-mirror/webrtc/archive/ac87c8df2780cb12c74942ec8a473718c76cb5b7.zip",
      "sha256": "9ceb1dbd7da99ec2efd6bc18ac1004d446f51e79969203b086b4dcf0ca534c68"
     },
     {
      "type": "patch",
      "path": "patches/webrtcvad.patch"
     }
    ]
   },
   {
    "name": "libstt",
    "buildsystem": "simple",
    "build-commands": [
     "chmod --recursive u+w .",
     "cp ./libstt.so /app/lib",
     "cp ./libkenlm.so /app/lib",
     "cp ./libtensorflowlite.so /app/lib",
     "cp ./libtflitedelegates.so /app/lib",
     "cp ./coqui-stt.h /app/include"
    ],
    "build-options": {
     "strip": true
    },
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "strip-components": 0,
      "url": "https://github.com/coqui-ai/STT/releases/download/v1.1.0/native_client.tflite.Linux.tar.xz",
      "sha256": "a6965f80cbfc92e403b2e4ab92e13650c76f131cbefb951b314df046c9e11799"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "strip-components": 0,
      "url": "https://github.com/coqui-ai/STT/releases/download/v1.1.0/native_client.tflite.linux.aarch64.tar.xz",
      "sha256": "5c8ce5e4bb2d8fa55f5a6ac58103d9aee6a080369bc99cd5910d2615783e1ba3"
     }
    ]
   },
   {
    "name": "vosk",
    "buildsystem": "simple",
    "build-commands": [
     "cp ./libvosk.so /app/lib",
     "cp ./vosk_api.h /app/include"
    ],
    "build-options": {
     "strip": true,
     "no-debuginfo": true
    },
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-x86_64-0.3.45.zip",
      "sha256": "bbdc8ed85c43979f6443142889770ea95cbfbc56cffb5c5dcd73afa875c5fbb2"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-aarch64-0.3.45.zip",
      "sha256": "45e95d37755deb07568e79497d7feba8c03aee5a9e071df29961aa023fd94541"
     }
    ]
   },
   {
    "name": "onnx",
    "buildsystem": "simple",
    "build-commands": [
     "cp -r --no-target-directory ./include /app/include",
     "cp -r --no-target-directory ./lib /app/lib"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-linux-x64-1.16.1.tgz",
      "sha256": "53a0f03f71587ed602e99e82773132fc634b74c2d227316fbfd4bf67181e72ed"
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/microsoft/onnxruntime/releases/download/v1.16.1/onnxruntime-linux-aarch64-1.16.1.tgz",
      "sha256": "f10851b62eb44f9e811134737e7c6edd15733d2c1549cb6ce403808e9c047385"
     }
    ]
   },
   {
    "name": "piperphonemize",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rhasspy/piper-phonemize/archive/7f7b5bd4de22f7fe24341c5bedda0dc1e33f3666.zip",
      "sha256": "6bdcb21f6c5ae0deff7c9ae26bf07b994791dc800c1962fd216727e66a409929"
     },
     {
      "type": "patch",
      "path": "patches/piperphonemize.patch"
     }
    ]
   },
   {
    "name": "spdlog",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz",
      "sha256": "ca5cae8d6cac15dae0ec63b21d6ad3530070650f68076f3a4a862ca293a858bb"
     }
    ]
   },
   {
    "name": "piper",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DPIPER_PHONEMIZE_INCLUDE=/app/include/piper-phonemize"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rhasspy/piper/archive/e268564deb779af984ac8f632c98727447632124.zip",
      "sha256": "213a31c23c862cbcd9de4231c07d32de35f4ee0b5b5dec52e9ae6dd3aa70ac12"
     },
     {
      "type": "patch",
      "path": "patches/piper.patch"
     }
    ]
   },
   {
    "name": "ssplitcpp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DSSPLIT_COMPILE_LIBRARY_ONLY=ON",
     "-DSSPLIT_PREFER_STATIC_COMPILE=ON",
     "-DBUILD_SHARED_LIBS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ugermann/ssplit-cpp/archive/49a8e12f11945fac82581cf056560965dcb641e6.zip",
      "sha256": "31b9556e539bbd35b79d9075e1a0593233b2050c277c4058fbd290985930a39b"
     },
     {
      "type": "patch",
      "path": "patches/ssplitcpp.patch"
     }
    ]
   },
   {
    "name": "pybind11",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DPYBIND11_INSTALL=ON",
     "-DPYBIND11_TEST=OFF",
     "-DPYBIND11_FINDPYTHON=ON"
    ],
    "cleanup": [
     "/share"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz",
      "sha256": "e08cb87f4773da97fa7b5f035de8763abc656d87d5773e62f6da0587d1f0ec20"
     }
    ]
   },
   {
    "name": "rnnoise",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-examples",
     "--disable-doc",
     "--disable-shared",
     "--enable-static",
     "--with-pic",
     "CFLAGS=-Dpitch_downsample=rnnoise_pitch_downsample -Dpitch_search=rnnoise_pitch_search -Dremove_doubling=rnnoise_remove_doubling -D_celt_lpc=rnnoise__celt_lpc -Dcelt_iir=rnnoise_celt_iir -D_celt_autocorr=rnnoise__celt_autocorr -Dcompute_gru=rnnoise_compute_gru -Dcompute_dense=rnnoise_compute_dense\n"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/GregorR/rnnoise-nu/archive/26269304e120499485438cd93acf5127c6908c68.zip",
      "sha256": "93a994a3d59cb89c005f0f861fd522fe268780dc0e2e2acea56945305ed0cbf1"
     }
    ]
   },
   {
    "name": "rhvoice",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DWITH_DATA=OFF",
     "-DENABLE_MAGE=OFF",
     "-DBUILD_CLIENT=OFF",
     "-DBUILD_UTILS=OFF",
     "-DBUILD_TESTS=OFF",
     "-DBUILD_SERVICE=OFF",
     "-DBUILD_SPEECHDISPATCHER_MODULE=OFF",
     "-DCMAKE_INSTALL_LIBDIR=/app/lib"
    ],
    "post-install": [
     "mkdir -p /app/share/rhvoice",
     "cp -R data /app/share/rhvoice",
     "cp -R config /app/share/rhvoice"
    ],
    "cleanup": [
     "libboost*",
     "libRHVoice_audio*",
     "/share/rhvoice"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/RHVoice/RHVoice.git",
      "commit": "846293f4f966381802131ea3c94ff12461b6058a"
     },
     {
      "type": "patch",
      "path": "patches/rhvoice.patch"
     }
    ]
   },
   {
    "name": "bergamot-fallback",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBLAS_LIB_PATH=/app/lib/libopenblas.so",
     "-DBLAS_INC_DIR=/app/include/openblas",
     "-DUSE_INTRINSICS_SSE2=ON",
     "-DUSE_INTRINSICS_SSE3=ON",
     "-DUSE_INTRINSICS_SSE41=ON",
     "-DUSE_INTRINSICS_SSE42=OFF",
     "-DUSE_INTRINSICS_FMA=OFF",
     "-DUSE_INTRINSICS_AVX=OFF",
     "-DUSE_INTRINSICS_AVX2=OFF",
     "-DUSE_INTRINSICS_AVX512=OFF",
     "-DBUILD_ARCH=x86-64"
    ],
    "post-install": [
     "mv /app/lib/libbergamot_api.so /app/lib/libbergamot_api-fallback.so"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/browsermt/bergamot-translator.git",
      "commit": "ada8c3922490cc6a507bcf81fa4882b435595323"
     },
     {
      "type": "patch",
      "path": "patches/bergamot.patch"
     }
    ]
   },
   {
    "name": "bergamot",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBLAS_LIB_PATH=/app/lib/libopenblas.so",
     "-DBLAS_INC_DIR=/app/include/openblas",
     "-DUSE_INTRINSICS_SSE2=ON",
     "-DUSE_INTRINSICS_SSE3=ON",
     "-DUSE_INTRINSICS_SSE41=ON",
     "-DUSE_INTRINSICS_SSE42=ON",
     "-DUSE_INTRINSICS_FMA=OFF",
     "-DUSE_INTRINSICS_AVX=ON",
     "-DUSE_INTRINSICS_AVX2=OFF",
     "-DUSE_INTRINSICS_AVX512=OFF",
     "-DUSE_INTRINSICS_ARMV7_NEONVFPV4=ON"
    ],
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "-DBUILD_ARCH=x86-64"
       ]
      },
      "aarch64": {
       "config-opts": [
        "-DBUILD_ARCH=armv8-a"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/browsermt/bergamot-translator.git",
      "commit": "ada8c3922490cc6a507bcf81fa4882b435595323"
     },
     {
      "type": "patch",
      "path": "patches/bergamot.patch"
     }
    ]
   },
   {
    "name": "rubberband",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=release",
     "-Dauto_features=disabled",
     "-Ddefault_library=static",
     "-Dresampler=builtin",
     "-Dfft=builtin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://breakfastquay.com/files/releases/rubberband-3.3.0.tar.bz2",
      "sha256": "d9ef89e2b8ef9f85b13ac3c2faec30e20acf2c9f3a9c8c45ce637f2bc95e576c"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-autodetect",
     "--disable-doc",
     "--disable-programs",
     "--disable-everything",
     "--enable-static",
     "--disable-shared",
     "--enable-nonfree",
     "--enable-gpl",
     "--enable-pic",
     "--enable-protocol=file",
     "--enable-filter=aresample",
     "--enable-filter=aformat",
     "--enable-filter=amix",
     "--enable-filter=anull",
     "--enable-filter=volume",
     "--enable-filter=rubberband",
     "--enable-encoder=libmp3lame",
     "--enable-encoder=libvorbis",
     "--enable-encoder=pcm_s16le",
     "--enable-encoder=libopus",
     "--enable-encoder=flac",
     "--enable-encoder=srt",
     "--enable-encoder=subrip",
     "--enable-encoder=ass",
     "--enable-encoder=ssa",
     "--enable-encoder=webvtt",
     "--enable-decoder=pcm_u8",
     "--enable-decoder=pcm_u32le",
     "--enable-decoder=pcm_u32be",
     "--enable-decoder=pcm_u24le",
     "--enable-decoder=pcm_u24be",
     "--enable-decoder=pcm_u16le",
     "--enable-decoder=pcm_u16be",
     "--enable-decoder=pcm_s8",
     "--enable-decoder=pcm_s32le",
     "--enable-decoder=pcm_s32be",
     "--enable-decoder=pcm_s24le",
     "--enable-decoder=pcm_s24be",
     "--enable-decoder=pcm_s16le",
     "--enable-decoder=pcm_s16be",
     "--enable-decoder=pcm_f64le",
     "--enable-decoder=pcm_f64be",
     "--enable-decoder=pcm_f32le",
     "--enable-decoder=pcm_f32be",
     "--enable-decoder=aac",
     "--enable-decoder=aac_fixed",
     "--enable-decoder=aac_latm",
     "--enable-decoder=mp3",
     "--enable-decoder=mp3adu",
     "--enable-decoder=mp3adufloat",
     "--enable-decoder=mp3float",
     "--enable-decoder=mp3on4",
     "--enable-decoder=mp3on4float",
     "--enable-decoder=libvorbis",
     "--enable-decoder=flac",
     "--enable-decoder=libopus",
     "--enable-decoder=speex",
     "--enable-decoder=ac3",
     "--enable-decoder=ac3_fixed",
     "--enable-decoder=eac3",
     "--enable-decoder=srt",
     "--enable-decoder=subrip",
     "--enable-decoder=ass",
     "--enable-decoder=ssa",
     "--enable-decoder=webvtt",
     "--enable-decoder=vplayer",
     "--enable-decoder=microdvd",
     "--enable-muxer=mp3",
     "--enable-muxer=ogg",
     "--enable-muxer=wav",
     "--enable-muxer=flac",
     "--enable-muxer=srt",
     "--enable-muxer=ass",
     "--enable-muxer=webvtt",
     "--enable-demuxer=aac",
     "--enable-demuxer=mp3",
     "--enable-demuxer=mov",
     "--enable-demuxer=ogg",
     "--enable-demuxer=matroska",
     "--enable-demuxer=flac",
     "--enable-demuxer=wav",
     "--enable-demuxer=mpegvideo",
     "--enable-demuxer=srt",
     "--enable-demuxer=ass",
     "--enable-demuxer=webvtt",
     "--enable-demuxer=microdvd",
     "--enable-parser=aac",
     "--enable-parser=aac_latm",
     "--enable-parser=ac3",
     "--enable-libmp3lame",
     "--enable-libvorbis",
     "--enable-libopus",
     "--enable-librubberband",
     "--extra-libs=-lvorbis -logg -lm"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz",
      "sha256": "40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6"
     },
     {
      "type": "patch",
      "path": "patches/ffmpeg.patch"
     }
    ]
   },
   {
    "name": "whispercpp-openblas",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_NATIVE=OFF",
     "-DGGML_BLAS=ON",
     "-DGGML_BLAS_VENDOR=OpenBLAS",
     "-DGGML_AVX=ON",
     "-DGGML_AVX2=ON",
     "-DGGML_FMA=ON",
     "-DGGML_F16C=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-openblas"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.7.1.tar.gz",
      "sha256": "97f19a32212f2f215e538ee37a16ff547aaebc54817bd8072034e02466ce6d55"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp.patch"
     }
    ]
   },
   {
    "name": "whispercpp-fallback1",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_NATIVE=OFF",
     "-DGGML_BLAS=ON",
     "-DGGML_BLAS_VENDOR=OpenBLAS",
     "-DGGML_AVX=ON",
     "-DGGML_AVX2=OFF",
     "-DGGML_FMA=OFF",
     "-DGGML_F16C=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-fallback1"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.7.1.tar.gz",
      "sha256": "97f19a32212f2f215e538ee37a16ff547aaebc54817bd8072034e02466ce6d55"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp.patch"
     }
    ]
   },
   {
    "name": "whispercpp-fallback",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_NATIVE=OFF",
     "-DGGML_BLAS=ON",
     "-DGGML_BLAS_VENDOR=OpenBLAS",
     "-DGGML_AVX=OFF",
     "-DGGML_AVX2=OFF",
     "-DGGML_FMA=OFF",
     "-DGGML_F16C=OFF",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-fallback"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.7.1.tar.gz",
      "sha256": "97f19a32212f2f215e538ee37a16ff547aaebc54817bd8072034e02466ce6d55"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp.patch"
     }
    ]
   },
   {
    "name": "opencl-headers",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/OpenCL-Headers.git",
      "commit": "4fdcfb0ae675f2f63a9add9552e0af62c2b4ed30"
     }
    ]
   },
   {
    "name": "clblast",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "build-options": {
     "no-debuginfo": true
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DTUNERS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/CNugteren/CLBlast/archive/refs/tags/1.6.3.tar.gz",
      "sha256": "c05668c7461e8440fce48c9f7a8966a6f9e0923421acd7c0357ece9b1d83f20e"
     }
    ]
   },
   {
    "name": "whispercpp-clblast",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DWHISPER_CLBLAST=ON",
     "-DWHISPER_NO_AVX2=ON",
     "-DWHISPER_NO_FMA=ON",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-clblast"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.6.2.tar.gz",
      "sha256": "da7988072022acc3cfa61b370b3c51baad017f1900c3dc4e68cb276499f66894"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp-clblast.patch"
     }
    ]
   },
   {
    "name": "libnumbertext",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-static=true",
     "--enable-shared=false",
     "--with-pic=yes"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Numbertext/libnumbertext/archive/a4b0225813b015a0f796754bc6718be20dd9943c.zip",
      "sha256": "eb4f91e4c97bb47f8cb7a31d80fdd500024bd9160c9045cdd8dff28beeac4b7a"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -fi"
      ]
     }
    ]
   },
   {
    "name": "opencl-vendors",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir vendors",
     "echo \"libnvidia-opencl.so\" > vendors/nvidia.icd",
     "echo \"libMesaOpenCL.so.1\" > vendors/mesa.icd",
     "echo \"/app/extensions/amd/rocm/lib/libamdocl64.so\" > vendors/amdocl64.icd",
     "mkdir -p /app/opt/opencl",
     "cp -r vendors /app/opt/opencl/"
    ]
   },
   {
    "name": "numa",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-pic"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/numactl/numactl/releases/download/v2.0.16/numactl-2.0.16.tar.gz",
      "sha256": "1b242f893af977a1d31af6ce9d6b8dafdd2d8ec3dc9207f7c2dc0d3446e7c7c8"
     }
    ]
   },
   {
    "name": "qhotkey",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "no-debuginfo": true
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Skycoder42/QHotkey/archive/cd72a013275803fce33e028fc8b05ae32248da1f.zip",
      "sha256": "55995114e8b5947cb6a59a19a53840eaf81fddc420fd3d180dcb0db9d8d33e13"
     },
     {
      "type": "patch",
      "path": "patches/qhotkey.patch"
     }
    ]
   },
   {
    "name": "april-asr",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/abb128/april-asr/archive/3308e68442664552de593957cad0fa443ea183dd.zip",
      "sha256": "0640fc16a43018afb1db9f17e93f545d7ac1f07e4bc47ba318d2c7311bef2df5"
     }
    ]
   },
   {
    "name": "oneapi",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-options": {
     "no-debuginfo": true
    },
    "cleanup": [
     "/opt/oneapi"
    ],
    "build-commands": [
     "sh l_BaseKit_p_2024.0.0.49564_offline.sh --extract-folder ./oneapi -a --eula accept --silent --install-dir ${FLATPAK_DEST}/opt/oneapi",
     "chmod -R +w ${FLATPAK_DEST}/opt/oneapi"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/20f4e6a1-6b0b-4752-b8c1-e5eacba10e01/l_BaseKit_p_2024.0.0.49564_offline.sh",
      "sha256": "f6613cb9c79fbf61c2e541144b8d5c70be845e071f29feb5686b64481528276d"
     }
    ]
   },
   {
    "name": "onednn",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "build-options": {
     "no-debuginfo": true
    },
    "cleanup": [
     "/bin"
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DONEDNN_LIBRARY_TYPE=STATIC",
     "-DONEDNN_BUILD_EXAMPLES=OFF",
     "-DONEDNN_BUILD_TESTS=OFF",
     "-DONEDNN_ENABLE_WORKLOAD=INFERENCE",
     "-DONEDNN_ENABLE_PRIMITIVE=CONVOLUTION;REORDER",
     "-DONEDNN_BUILD_GRAPH=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/oneapi-src/oneDNN/archive/refs/tags/v3.3.1.tar.gz",
      "sha256": "e0b7a9452162e854cf08b4e90bcd1b382b9903ace6a61503a872573880d24c3f"
     }
    ]
   },
   "python3-modules-x86-64.yaml",
   {
    "name": "phonemizer-patch",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "patch --batch --unified -p1 --directory=${FLATPAK_DEST}/lib/python3.12/site-packages/phonemizer -i \"$(realpath .)\"/phonemizer.patch"
    ],
    "sources": [
     {
      "type": "file",
      "path": "patches/phonemizer.patch"
     }
    ]
   },
   {
    "name": "python3-pybind11",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "cleanup": [
     "/bin",
     "/lib/python3.12/site-packages/pybind11*"
    ],
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pybind11\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/06/55/9f73c32dda93fa4f539fafa268f9504e83c489f460c380371d94296126cd/pybind11-2.11.1-py3-none-any.whl",
      "sha256": "33cdd02a6453380dd71cc70357ce388ad1ee8d32bd0e38fc22b273d050aa29b3"
     }
    ]
   },
   {
    "name": "ctranslate2",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "build-options": {
     "no-debuginfo": true,
     "env": {
      "CTRANSLATE2_ROOT": "/app/extensions/cpu"
     }
    },
    "cleanup": [
     "/extensions/cpu/bin",
     "/extensions/cpu/include",
     "/extensions/cpu/lib/cmake"
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_CLI=OFF",
     "-DCUDA_DYNAMIC_LOADING=ON",
     "-DOPENMP_RUNTIME=COMP",
     "-DWITH_MKL=ON",
     "-DWITH_DNNL=ON",
     "-DWITH_RUY=ON",
     "-DINTEL_ROOT=/app/opt/oneapi",
     "-DCMAKE_CXX_FLAGS=-msse4.1",
     "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,noexecstack",
     "-DCMAKE_INSTALL_PREFIX=/app/extensions/cpu",
     "-DCMAKE_SYSTEM_PREFIX_PATH=/app"
    ],
    "post-install": [
     "rm -rf ${FLATPAK_DEST}/lib/python3.12/site-packages/ctranslate2*",
     "mkdir -p ${FLATPAK_DEST}/extensions/cpu",
     "cd python && python setup.py bdist_wheel",
     "pip3 install --verbose --exists-action=i --no-index --prefix=${FLATPAK_DEST}/extensions/cpu --no-build-isolation python/dist/*.whl",
     "strip ${FLATPAK_DEST}/extensions/cpu/lib/libctranslate2.so.4.3.1"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/OpenNMT/CTranslate2.git",
      "commit": "v4.3.1"
     },
     {
      "type": "patch",
      "path": "patches/ctranslate2.patch"
     }
    ]
   },
   {
    "name": "html2md",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBUILD_EXE=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/tim-gromeyer/html2md/archive/refs/tags/v1.6.4.tar.gz",
      "sha256": "e34c80981d6ee5f4a699985dc4a68b0b280542a5c5e5780fdebc3ba0ca30553d"
     },
     {
      "type": "patch",
      "path": "patches/html2md.patch"
     }
    ]
   },
   {
    "name": "maddy",
    "buildsystem": "simple",
    "build-commands": [
     "cp -r include/maddy ${FLATPAK_DEST}/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/progsource/maddy/archive/refs/tags/1.3.0.tar.gz",
      "sha256": "561681f8c8d2b998c153cda734107a0bc1dea4bb0df69fd813922da63fa9f3e7"
     }
    ]
   },
   {
    "name": "openvino",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/opt/intel/openvino",
     "cp -r runtime ${FLATPAK_DEST}/opt/intel/openvino",
     "mkdir -p ${FLATPAK_DEST}/opt/intel/lib",
     "set -e\ncd runtime/lib/intel64\nfor f in *.so*; do\n  if [ -f $f ]; then\n    echo \"copying $f => ${FLATPAK_DEST}/opt/intel/lib\"\n    cp -P $f ${FLATPAK_DEST}/opt/intel/lib\n  fi\ndone\n"
    ],
    "cleanup": [
     "/opt/intel/openvino",
     "/opt/intel/lib/*_paddle_*",
     "/opt/intel/lib/*_pytorch_*",
     "/opt/intel/lib/*_tensorflow_*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.1/linux/l_openvino_toolkit_ubuntu22_2024.1.0.15008.f4afc983258_x86_64.tgz",
      "sha256": "69f15878f54d7b61eb54eb5b2631741f147e85383539f5436a6672fb07c459d2"
     }
    ]
   },
   {
    "name": "whispercpp-openvino",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_NATIVE=OFF",
     "-DGGML_BLAS=ON",
     "-DGGML_BLAS_VENDOR=OpenBLAS",
     "-DWHISPER_OPENVINO=ON",
     "-DOpenVINO_DIR=/app/opt/intel/openvino/runtime/cmake",
     "-DGGML_AVX=ON",
     "-DGGML_AVX2=OFF",
     "-DGGML_FMA=OFF",
     "-DGGML_F16C=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-openvino"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.7.1.tar.gz",
      "sha256": "97f19a32212f2f215e538ee37a16ff547aaebc54817bd8072034e02466ce6d55"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp.patch"
     }
    ]
   },
   {
    "name": "whispercpp-vulkan",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DGGML_NATIVE=OFF",
     "-DGGML_VULKAN=ON",
     "-DGGML_AVX=ON",
     "-DGGML_AVX2=OFF",
     "-DGGML_FMA=OFF",
     "-DGGML_F16C=ON",
     "-DBUILD_SHARED_LIBS=ON",
     "-DWHISPER_BUILD_TESTS=OFF",
     "-DWHISPER_BUILD_EXAMPLES=OFF",
     "-DCMAKE_C_FLAGS=-O3",
     "-DCMAKE_CXX_FLAGS=-O3",
     "-DWHISPER_TARGET_NAME=whisper-vulkan"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.7.1.tar.gz",
      "sha256": "97f19a32212f2f215e538ee37a16ff547aaebc54817bd8072034e02466ce6d55"
     },
     {
      "type": "patch",
      "path": "patches/whispercpp.patch"
     }
    ]
   },
   {
    "name": "tbb",
    "only-arches": [
     "x86_64"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/opt/intel/lib",
     "chmod u+x ./l_tbb_oneapi_p_2021.12.0.499_offline.sh",
     "./l_tbb_oneapi_p_2021.12.0.499_offline.sh  -a --eula accept --cli --silent --install-dir=./",
     "set -e\ncd tbb/latest/lib\nfor f in *.so*; do\n  if [ -f $f ]; then\n    echo \"copying $f => ${FLATPAK_DEST}/opt/intel/lib\"\n    cp -P $f ${FLATPAK_DEST}/opt/intel/lib\n  fi\ndone\n"
    ],
    "cleanup": [
     "/opt/intel/lib/*_debug*"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b31f6b79-10aa-4119-a437-48fe2775633b/l_tbb_oneapi_p_2021.12.0.499_offline.sh",
      "sha256": "13e981cb4d9d3f72058cc136f8cdedf6ba9af225ae317f91b59e2050b0d49e43"
     }
    ]
   },
   {
    "name": "xdo",
    "buildsystem": "simple",
    "build-commands": [
     "make",
     "make PREFIX=${FLATPAK_DEST} install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jordansissel/xdotool/archive/33092d8a74d60c9ad3ab39c4f05b90e047ea51d8.zip",
      "sha256": "cba1c7d0c23cc60cd0b1f5483f84296ff91360598e2c19c57395aec530af99ad"
     },
     {
      "type": "patch",
      "path": "patches/xdo.patch"
     }
    ]
   },
   {
    "name": "sam",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/s-macke/SAM/archive/a7b36efac730957b59471a42a45fd779f94d77dd.zip",
      "sha256": "342e245c84b14945b33dd8b272373eee517d239c612763ec01d3fa3bbee6bcb1"
     },
     {
      "type": "patch",
      "path": "patches/sam.patch"
     }
    ]
   },
   {
    "name": "dsnote",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DWITH_FLATPAK=ON",
     "-DWITH_DESKTOP=ON",
     "-DDOWNLOAD_LIBSTT=OFF",
     "-DBUILD_VOSK=OFF",
     "-DBUILD_LIBARCHIVE=OFF",
     "-DBUILD_FMT=OFF",
     "-DBUILD_WHISPERCPP=OFF",
     "-DBUILD_WEBRTCVAD=OFF",
     "-DBUILD_OPENBLAS=OFF",
     "-DBUILD_XZ=OFF",
     "-DBUILD_RNNOISE=OFF",
     "-DBUILD_PYBIND11=OFF",
     "-DBUILD_PYTHON_MODULE=OFF",
     "-DBUILD_ESPEAK=OFF",
     "-DBUILD_PIPER=OFF",
     "-DBUILD_SSPLITCPP=OFF",
     "-DBUILD_RHVOICE=OFF",
     "-DBUILD_BERGAMOT=OFF",
     "-DBUILD_RUBBERBAND=OFF",
     "-DBUILD_FFMPEG=OFF",
     "-DBUILD_TAGLIB=OFF",
     "-DBUILD_LIBNUMBERTEXT=OFF",
     "-DBUILD_QHOTKEY=OFF",
     "-DBUILD_APRILASR=OFF",
     "-DBUILD_HTML2MD=OFF",
     "-DBUILD_MADDY=OFF",
     "-DBUILD_XDO=OFF",
     "-DBUILD_SAM=OFF"
    ],
    "post-install": [
     "install -d ${FLATPAK_DEST}/extensions"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mkiol/dsnote.git",
      "commit": "02a2f5a63a205a182f09a658e91370765bb0f657"
     }
    ]
   }
  ]
 }
}