vscode-extensions.ms-vscode.vscode-speech: init at 0.16.0

Enables speech-to-text and text-to-speech capabilities in VS Code.
This commit is contained in:
Patrick Hobusch
2026-01-14 22:44:31 +01:00
parent 35a2f8ffbc
commit ff1fd23148
2 changed files with 79 additions and 0 deletions
@@ -3407,6 +3407,8 @@ let
ms-vscode.vscode-js-profile-table = callPackage ./ms-vscode.vscode-js-profile-table { };
ms-vscode.vscode-speech = callPackage ./ms-vscode.vscode-speech { };
ms-vscode-remote.remote-containers = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "remote-containers";
@@ -0,0 +1,77 @@
{
lib,
vscode-utils,
vscode-extension-update-script,
autoPatchelfHook,
stdenv,
alsa-lib,
libuuid,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef =
let
sources = {
"x86_64-linux" = {
arch = "linux-x64";
hash = "sha256-dZwOBehoYEqaYskvcPB55IKnG1CMToioyUJXlndqorA=";
};
"x86_64-darwin" = {
arch = "darwin-x64";
hash = "sha256-b6LobvVngC0TFuWTC9JBQrECkoX7ewLNCpCROkXHk20=";
};
"aarch64-linux" = {
arch = "linux-arm64";
hash = "sha256-/EaOfoubfq1ufwB7TTQ2hqmh1ZJiZ1+B6QeYu3MoFPI=";
};
"aarch64-darwin" = {
arch = "darwin-arm64";
hash = "sha256-JhZWNlGXljsjmT3/xDi9Z7I4a2vsi/9EkWYbnlteE98=";
};
};
in
{
name = "vscode-speech";
publisher = "ms-vscode";
version = "0.16.0";
}
// sources.${stdenv.hostPlatform.system}
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
autoPatchelfHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
stdenv.cc.cc.lib
alsa-lib
libuuid
];
# Prevent fixup phase from shrinking RPATHs - we need the Release directory
# in the RPATH for dlopen to find libMicrosoft.CognitiveServices.Speech.extension.audio.sys.so
dontPatchELF = true;
# libMicrosoft.CognitiveServices.Speech.core.so uses dlopen to load audio.sys.so at runtime.
# autoPatchelfHook patches direct dependencies but can't detect dlopen calls,
# so we add the Release directory to RPATH.
appendRunpaths = lib.optionals stdenv.hostPlatform.isLinux [
"${placeholder "out"}/share/vscode/extensions/ms-vscode.vscode-speech/node_modules/@vscode/node-speech/build/Release"
];
passthru.updateScript = vscode-extension-update-script { };
meta = {
description = "Enables speech-to-text and text-to-speech capabilities in VS Code";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-speech";
homepage = "https://github.com/microsoft/vscode";
license = lib.licenses.unfree;
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
maintainers = with lib.maintainers; [ pathob ];
};
}