From 0a2c1374704e3e68eddbbf52c42887a00eea6a6d Mon Sep 17 00:00:00 2001 From: SuperKogito Date: Tue, 11 Jun 2024 01:23:44 +0200 Subject: [PATCH 1/5] add kbes dataset --- src/ser-datasets.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ser-datasets.json b/src/ser-datasets.json index d5fed6b..0abcf38 100644 --- a/src/ser-datasets.json +++ b/src/ser-datasets.json @@ -1,4 +1,18 @@ { + "KBES": { + "Year": 2023, + "Content": "900 audio signals from 35 actors (20 females and 15 males). Each emotion is represented with two intensity levels (low & high)", + "Emotions": "angry, disgusted, happy, neutral, sad", + "Format": "Audio", + "Size": "0.337 GB", + "Language": "Bangla", + "Paper": "KBES: A dataset for realistic Bangla speech emotion recognition with intensity level", + "Access": "Open", + "License": "CC BY 4.0", + "Dataset-link": "https://data.mendeley.com/datasets/vsn37ps3rx/4", + "Paper-link": "https://www.sciencedirect.com/science/article/pii/S2352340923008107", + "License-link": "https://creativecommons.org/licenses/by/4.0/" + }, "Hi, KIA": { "Year": 2022, "Content": "A shared short Wakeup Word database focusing on perceived emotion in speech The dataset contains 488 Wakeup Word speech", From e8d14411ca727ac09ef1fd869bff22975301b322 Mon Sep 17 00:00:00 2001 From: SuperKogito Date: Tue, 11 Jun 2024 01:24:10 +0200 Subject: [PATCH 2/5] add build docs workflow --- .github/workflows/deploy_docs.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deploy_docs.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml new file mode 100644 index 0000000..8d3aad3 --- /dev/null +++ b/.github/workflows/deploy_docs.yml @@ -0,0 +1,41 @@ +name: Build and Deploy Sphinx Documentation + +on: + push: + branches: + - master + workflow_run: + workflows: ["Urls checking"] + types: + - completed + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.7' + + - name: Install dependencies + run: | + cd src + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Build Sphinx documentation + run: | + cd src + make html + + - name: Deploy to GitHub Pages + if: success() + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/html From c81af4ba08099f4e456feacbb54627c574d31faf Mon Sep 17 00:00:00 2001 From: SuperKogito Date: Tue, 11 Jun 2024 01:27:23 +0200 Subject: [PATCH 3/5] add json validation workflow --- .github/workflows/validate_json.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/validate_json.yml diff --git a/.github/workflows/validate_json.yml b/.github/workflows/validate_json.yml new file mode 100644 index 0000000..3744647 --- /dev/null +++ b/.github/workflows/validate_json.yml @@ -0,0 +1,30 @@ +name: Validate JSON + +on: + pull_request: + paths: + - 'src/ser-datasets.json' + +jobs: + validate-json: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.7' + + - name: Install dependencies + run: | + cd src + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Validate JSON + run: | + cd src + python validate_json.py From a2394af3757f5ba82b1b618cfa3e34667a5242a2 Mon Sep 17 00:00:00 2001 From: SuperKogito Date: Tue, 11 Jun 2024 01:27:39 +0200 Subject: [PATCH 4/5] add json validation python script --- src/validate_json.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/validate_json.py diff --git a/src/validate_json.py b/src/validate_json.py new file mode 100644 index 0000000..1691667 --- /dev/null +++ b/src/validate_json.py @@ -0,0 +1,18 @@ +import json +import sys + +def validate_json(file_path): + try: + with open(file_path, 'r') as f: + json.load(f) + print(f"JSON file at {file_path} is valid.") + except json.JSONDecodeError as e: + print(f"Invalid JSON file at {file_path}: {e}") + sys.exit(1) + except Exception as e: + print(f"Error reading JSON file at {file_path}: {e}") + sys.exit(1) + + +if __name__ == "__main__": + validate_json('ser-datasets.json') From db7769eb5144c42b708387e838051e21f33dd9ef Mon Sep 17 00:00:00 2001 From: SuperKogito Date: Tue, 11 Jun 2024 01:33:01 +0200 Subject: [PATCH 5/5] update files generation workflow --- .github/workflows/generate_files.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/generate_files.yml b/.github/workflows/generate_files.yml index 4869f46..1a47679 100644 --- a/.github/workflows/generate_files.yml +++ b/.github/workflows/generate_files.yml @@ -1,9 +1,6 @@ name: Generate CSV and README on: - push: - paths: - - 'src/ser-datasets.json' pull_request: paths: - 'src/ser-datasets.json'