diff --git a/audio/husky/prebuilt/libspeechenhancer/Android.bp b/audio/husky/prebuilt/libspeechenhancer/Android.bp new file mode 100644 index 0000000..9d4a232 --- /dev/null +++ b/audio/husky/prebuilt/libspeechenhancer/Android.bp @@ -0,0 +1,43 @@ +// Copyright (C) 2024 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +soong_namespace { +} + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_prebuilt_library_shared { + name: "libspeechenhancer", + vendor: true, + owner: "google", + proprietary: true, + allow_undefined_symbols: true, + arch: { + arm64: { + srcs: ["arm64/libspeechenhancer.so"], + }, + }, + + shared_libs: [ + "libcutils", + "libEGL", + "libGLESv2", + "libbinder_ndk", + "liblog", + "libsync", + "libz", + "libnativewindow", + ], +} diff --git a/audio/husky/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/husky/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so new file mode 100644 index 0000000..861ef15 Binary files /dev/null and b/audio/husky/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so differ diff --git a/audio/shiba/prebuilt/libspeechenhancer/Android.bp b/audio/shiba/prebuilt/libspeechenhancer/Android.bp new file mode 100644 index 0000000..9d4a232 --- /dev/null +++ b/audio/shiba/prebuilt/libspeechenhancer/Android.bp @@ -0,0 +1,43 @@ +// Copyright (C) 2024 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +soong_namespace { +} + +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +cc_prebuilt_library_shared { + name: "libspeechenhancer", + vendor: true, + owner: "google", + proprietary: true, + allow_undefined_symbols: true, + arch: { + arm64: { + srcs: ["arm64/libspeechenhancer.so"], + }, + }, + + shared_libs: [ + "libcutils", + "libEGL", + "libGLESv2", + "libbinder_ndk", + "liblog", + "libsync", + "libz", + "libnativewindow", + ], +} diff --git a/audio/shiba/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so b/audio/shiba/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so new file mode 100644 index 0000000..861ef15 Binary files /dev/null and b/audio/shiba/prebuilt/libspeechenhancer/arm64/libspeechenhancer.so differ diff --git a/device-husky.mk b/device-husky.mk index 3ecaa35..3bf6cde 100644 --- a/device-husky.mk +++ b/device-husky.mk @@ -162,6 +162,13 @@ endif PRODUCT_PROPERTY_OVERRIDES += \ ro.audio.spatializer_enabled=true +# HdMic Audio +PRODUCT_SOONG_NAMESPACES += device/google/shusky/audio/husky/prebuilt/libspeechenhancer +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.app.audio.gsenet.version=1 +PRODUCT_PACKAGES += \ + libspeechenhancer + # Audio CCA property PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.cca.enabled=false diff --git a/device-shiba.mk b/device-shiba.mk index a75fe17..c17f544 100644 --- a/device-shiba.mk +++ b/device-shiba.mk @@ -150,6 +150,13 @@ endif PRODUCT_PROPERTY_OVERRIDES += \ ro.audio.spatializer_enabled=true +# HdMic Audio +PRODUCT_SOONG_NAMESPACES += device/google/shusky/audio/shiba/prebuilt/libspeechenhancer +PRODUCT_PROPERTY_OVERRIDES += \ + persist.vendor.app.audio.gsenet.version=1 +PRODUCT_PACKAGES += \ + libspeechenhancer + # Audio CCA property PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.cca.enabled=false