Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help wanted] Support tinyalsa #202

Open
csukuangfj opened this issue May 18, 2023 · 1 comment
Open

[Help wanted] Support tinyalsa #202

csukuangfj opened this issue May 18, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@csukuangfj
Copy link
Collaborator

People want to use https://github.com/k2-fsa/sherpa-ncnn/blob/master/sherpa-ncnn/csrc/sherpa-ncnn-alsa.cc on Android.
However, it is not easy to compile its dependency alsa-lib for Android.

Here comes tinyalsa https://github.com/tinyalsa/tinyalsa
It is straightforward to cross-compile tinyalsa for Android with the following commands

#!/usr/bin/env bash

ANDROID_NDK=/ceph-fj/fangjun/software/android-sdk/ndk/21.0.6113669

mkdir -p build
cd build

cmake \
  -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
  -DANDROID_ABI="arm64-v8a" \
  -DANDROID_PLATFORM=android-21 \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_SHARED_LIBS=ON \
  -DTINYALSA_BUILD_EXAMPLES=OFF \
  -DTINYALSA_BUILD_UTILS=OFF \
  ..

make -j 3

TODOs

Use

as a reference to support tinyalsa. We need to implement the following files

  • sherpa-ncnn-tinyalsa.cc
  • tinyalsa.h
  • tinyalsa.cc

Support from the community is highly welcome.

@csukuangfj csukuangfj added the help wanted Extra attention is needed label May 18, 2023
@csukuangfj csukuangfj changed the title Support tinyalsa [Help wanted] Support tinyalsa May 18, 2023
@csukuangfj
Copy link
Collaborator Author

https://github.com/Samsung/TizenRT/blob/master/docs/HowToUseTinyAlsa.md
might be helpful for this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant