Skip to content

Commit

Permalink
Add audio tagging APKs for WearOS. (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Apr 17, 2024
1 parent 5f2aec8 commit 9a9c78d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ on:
- '.github/workflows/build-doc.yml'
- 'docs/**'

schedule:
# minute (0-59)
# hour (0-23)
# day of the month (1-31)
# month (1-12)
# day of the week (0-6)
# nightly build at 23:50 UTC time every day
- cron: "50 23 * * *"

workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -87,10 +96,12 @@ jobs:
./generate-tts-engine.py
./generate-speaker-identification.py
./generate-audio-tagging.py
./generate-audio-tagging-wearos.py
mv -v apk.html ../build/html/onnx/tts/
mv -v apk-engine.html ../build/html/onnx/tts/
mv -v apk-speaker-identification.html ../build/html/onnx/speaker-identification/apk.html
mv -v apk-audio-tagging.html ../build/html/onnx/audio-tagging/apk.html
mv -v apk-audio-tagging-wearos.html ../build/html/onnx/audio-tagging/apk-wearos.html
cd ..
rm -rf huggingface
Expand Down
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import datetime
import os
import re
import sys
Expand All @@ -20,8 +21,9 @@

# -- Project information -----------------------------------------------------

year = datetime.date.today().year
project = "sherpa"
copyright = "2022-2023, sherpa development team"
copyright = f"2022-{year}, sherpa development team"
author = "sherpa development team"


Expand Down
1 change: 1 addition & 0 deletions docs/source/onnx/android/build-sherpa-onnx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and ``text-to-speech`` (TTS).
- ``SherpaOnnxVadAsr``
- ``SherpaOnnxSpeakerIdentification``
- ``SherpaOnnxAudioTagging``
- ``SherpaOnnxAudioTaggingWearOs``


Install Android Studio
Expand Down
5 changes: 5 additions & 0 deletions docs/source/onnx/audio-tagging/android.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _audio-tagging-android:

Android
=======

Expand All @@ -6,3 +8,6 @@ You can find Android APKs for each model at the following page
`<https://k2-fsa.github.io/sherpa/onnx/audio-tagging/apk.html>`_

Please follow :ref:`sherpa-onnx-android` to build Android APKs from source.

If you want to run audio tagging on your WearOS watches, please see
:ref:`audio-tagging-wearos`.
1 change: 1 addition & 0 deletions docs/source/onnx/audio-tagging/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ its temporal localization.

./pretrained_models.rst
./android.rst
./wearos.rst
13 changes: 13 additions & 0 deletions docs/source/onnx/audio-tagging/wearos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.. _audio-tagging-wearos:

WearOS
======

You can find APKs for WearOS of each model at the following page

`<https://k2-fsa.github.io/sherpa/onnx/audio-tagging/apk-wearos.html>`_

Please follow :ref:`sherpa-onnx-android` to build APKs for WearOS from source.

If you want to run audio tagging on your Android phones, please see
:ref:`audio-tagging-android`.

0 comments on commit 9a9c78d

Please sign in to comment.