gradio-annotatedaudio


Namegradio-annotatedaudio JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
Summaryaudio component with speaker annotations
upload_time2024-04-22 11:36:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords gradio-custom-component gradio-template-audio pyannote.audio speaker diarization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ANNOTATED AUDIO GRADIO COMPONENT

This repository regroups `pyannote` custom `gradio` components.

## Installation

To install components (still in devlopment) contained in this reposetory, follow these instructions.

0 - Create a virtual environment (for example using `micromamba`) and activate it
```shell
micromamba create -n pyannote-gradio
micromamba activate pyannote-gradio
```

1 - Install python 3.8+:
```shell
micromamba install python=3.10 -c conda-forge
```

2 - Install `pyannote-audio` and `gradio`:
```shell
pip install -U pyannote.audio gradio
```

3 - Install npm 9+ and node.js v16.14+
```shell
nvm install node
npm install -g npm
```

4 - Clone this repository in your favorite directory
```shell
git clone git@github.com:clement-pages/pyannote-gradio.git
cd pyannote-gradio/annotatedaudio
```

Then, you can use the component in development mode:
```shell
gradio cc install
gradio cc dev
```


## Keyboard shortcuts

The following table summarizes available keyboard shortcuts for the `AnnotatedAudio` component:

| Shortcut                                      | Action                                                                |
| --------------------------------------------- | --------------------------------------------------------------------- |
| `SPACE`                                       | Toggle play / pause                                                   |
| `ENTER`                                       | Create annotation at current time                                     |
| `SHIFT + ENTER`                               | Split annotation at current time                                      |
| `A`, `B`, `C`, ..., `Z`                       | Set active label. If there is a selected annotation, update its label |
| `LEFT` or `RIGHT`                             | Edit start time of selected annotation (if any) or move time cursor   |
| `SHIFT + LEFT` or `SHIFT + RIGHT`             | Same, but faster                                                      |
|`ALT + LEFT` or `ALT + RIGHT`                  | Edit end time of selected annotation                                  |
| `SHIFT + ALT + LEFT` or `SHIFT + ALT + RIGHT` | Same, but faster                                                      |
| `TAB`                                         | Select next annotation                                                |
| `SHIFT + TAB`                                 | Select previous annotation                                            |
|`BACKSAPCE`                                    | Delete selected annotation and select the previous one                |
|`DELETE` or `SHIFT + BACKSPACE`                | Delete selected region and select the next one                        |
|`ESC`                                          | Unselect selected annotation and / or label                           |
| `UP` or `DOWN`                                | Zoom in/out                                                           |

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gradio-annotatedaudio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "gradio-custom-component, gradio-template-Audio, pyannote.audio, speaker diarization",
    "author": null,
    "author_email": "YOUR NAME <YOUREMAIL@domain.com>",
    "download_url": "https://files.pythonhosted.org/packages/24/42/df77ee2dfba09600f6ab6e9f6457395093bc58842a5ee6a7060c135330ec/gradio_annotatedaudio-0.1.3.tar.gz",
    "platform": null,
    "description": "# ANNOTATED AUDIO GRADIO COMPONENT\n\nThis repository regroups `pyannote` custom `gradio` components.\n\n## Installation\n\nTo install components (still in devlopment) contained in this reposetory, follow these instructions.\n\n0 - Create a virtual environment (for example using `micromamba`) and activate it\n```shell\nmicromamba create -n pyannote-gradio\nmicromamba activate pyannote-gradio\n```\n\n1 - Install python 3.8+:\n```shell\nmicromamba install python=3.10 -c conda-forge\n```\n\n2 - Install `pyannote-audio` and `gradio`:\n```shell\npip install -U pyannote.audio gradio\n```\n\n3 - Install npm 9+ and node.js v16.14+\n```shell\nnvm install node\nnpm install -g npm\n```\n\n4 - Clone this repository in your favorite directory\n```shell\ngit clone git@github.com:clement-pages/pyannote-gradio.git\ncd pyannote-gradio/annotatedaudio\n```\n\nThen, you can use the component in development mode:\n```shell\ngradio cc install\ngradio cc dev\n```\n\n\n## Keyboard shortcuts\n\nThe following table summarizes available keyboard shortcuts for the `AnnotatedAudio` component:\n\n| Shortcut                                      | Action                                                                |\n| --------------------------------------------- | --------------------------------------------------------------------- |\n| `SPACE`                                       | Toggle play / pause                                                   |\n| `ENTER`                                       | Create annotation at current time                                     |\n| `SHIFT + ENTER`                               | Split annotation at current time                                      |\n| `A`, `B`, `C`, ..., `Z`                       | Set active label. If there is a selected annotation, update its label |\n| `LEFT` or `RIGHT`                             | Edit start time of selected annotation (if any) or move time cursor   |\n| `SHIFT + LEFT` or `SHIFT + RIGHT`             | Same, but faster                                                      |\n|`ALT + LEFT` or `ALT + RIGHT`                  | Edit end time of selected annotation                                  |\n| `SHIFT + ALT + LEFT` or `SHIFT + ALT + RIGHT` | Same, but faster                                                      |\n| `TAB`                                         | Select next annotation                                                |\n| `SHIFT + TAB`                                 | Select previous annotation                                            |\n|`BACKSAPCE`                                    | Delete selected annotation and select the previous one                |\n|`DELETE` or `SHIFT + BACKSPACE`                | Delete selected region and select the next one                        |\n|`ESC`                                          | Unselect selected annotation and / or label                           |\n| `UP` or `DOWN`                                | Zoom in/out                                                           |\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "audio component with speaker annotations",
    "version": "0.1.3",
    "project_urls": null,
    "split_keywords": [
        "gradio-custom-component",
        " gradio-template-audio",
        " pyannote.audio",
        " speaker diarization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae93992a71d576c20f8b2a2da1bb98e011a18971967ea4c41ad943e391d890b2",
                "md5": "2f66d9e550077583d60732db48e04381",
                "sha256": "c7ef407e2d354b6edad3cc0911efa80f0ef8452046288639b95455765dcbf810"
            },
            "downloads": -1,
            "filename": "gradio_annotatedaudio-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f66d9e550077583d60732db48e04381",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 172694,
            "upload_time": "2024-04-22T11:36:41",
            "upload_time_iso_8601": "2024-04-22T11:36:41.619217Z",
            "url": "https://files.pythonhosted.org/packages/ae/93/992a71d576c20f8b2a2da1bb98e011a18971967ea4c41ad943e391d890b2/gradio_annotatedaudio-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2442df77ee2dfba09600f6ab6e9f6457395093bc58842a5ee6a7060c135330ec",
                "md5": "e7252d8e91c854bf9575bc3a2af8d333",
                "sha256": "9efb064a36873391e6f9c4e14a4f3d7643684dee3745907e3c731c2c232f1b9f"
            },
            "downloads": -1,
            "filename": "gradio_annotatedaudio-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e7252d8e91c854bf9575bc3a2af8d333",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 195431,
            "upload_time": "2024-04-22T11:36:44",
            "upload_time_iso_8601": "2024-04-22T11:36:44.015643Z",
            "url": "https://files.pythonhosted.org/packages/24/42/df77ee2dfba09600f6ab6e9f6457395093bc58842a5ee6a7060c135330ec/gradio_annotatedaudio-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 11:36:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gradio-annotatedaudio"
}
        
Elapsed time: 3.42802s