diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfb94f367..d6158a73c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: ammaraskar/sphinx-action@master + with: + docs-folder: "docs/" + pre-build-command: "pip install sphinx-markdown-tables nbsphinx jinja2 recommonmark sphinx_rtd_theme" - uses: ammaraskar/sphinx-action@master with: docs-folder: "docs_cn/" @@ -22,7 +26,12 @@ jobs: run: | mkdir public touch public/.nojekyll - cp -r docs_cn/_build/html/* public/ + mkdir public/en + touch public/en/.nojekyll + cp -r docs/_build/html/* public/en/ + mkdir public/cn + touch public/cn/.nojekyll + cp -r docs_cn/_build/html/* public/cn/ - name: deploy github.io pages if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' diff --git a/README.md b/README.md index 3f63c6b03..2e08de8da 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [**News**](https://github.com/alibaba-damo-academy/FunASR#whats-new) | [**Highlights**](#highlights) | [**Installation**](#installation) -| [**Docs**](https://alibaba-damo-academy.github.io/FunASR/index.html) +| [**Docs**](https://alibaba-damo-academy.github.io/FunASR/cn/index.html) | [**Tutorial**](https://github.com/alibaba-damo-academy/FunASR/wiki#funasr%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C) | [**Papers**](https://github.com/alibaba-damo-academy/FunASR#citations) | [**Runtime**](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/runtime) @@ -42,7 +42,7 @@ pip install --editable ./ For more details, please ref to [installation](https://github.com/alibaba-damo-academy/FunASR/wiki) ## Usage -For users who are new to FunASR and ModelScope, please refer to [FunASR Docs](https://alibaba-damo-academy.github.io/FunASR/index.html). +For users who are new to FunASR and ModelScope, please refer to [FunASR Docs](https://alibaba-damo-academy.github.io/FunASR/cn/index.html). ## Contact diff --git a/funasr/datasets/iterable_dataset.py b/funasr/datasets/iterable_dataset.py index 2001df95a..2f97e78b9 100644 --- a/funasr/datasets/iterable_dataset.py +++ b/funasr/datasets/iterable_dataset.py @@ -224,7 +224,7 @@ class IterableESPnetDataset(IterableDataset): name = self.path_name_type_list[i][1] _type = self.path_name_type_list[i][2] if _type == "sound": - audio_type = os.path.basename(value).split(".")[1].lower() + audio_type = os.path.basename(value).split(".")[-1].lower() if audio_type not in SUPPORT_AUDIO_TYPE_SETS: raise NotImplementedError( f'Not supported audio type: {audio_type}') @@ -326,7 +326,7 @@ class IterableESPnetDataset(IterableDataset): # 2.a. Load data streamingly for value, (path, name, _type) in zip(values, self.path_name_type_list): if _type == "sound": - audio_type = os.path.basename(value).split(".")[1].lower() + audio_type = os.path.basename(value).split(".")[-1].lower() if audio_type not in SUPPORT_AUDIO_TYPE_SETS: raise NotImplementedError( f'Not supported audio type: {audio_type}')