Skip to content

Create interactive annotation interface in R and Shiny for speech corpus

License

Notifications You must be signed in to change notification settings

buhem/TextGridShiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextGridShiny - Create interactive annotation interfaces for speech with R and Shiny

      Copyright 2018 Mohamed El Idrissi. Licensed under the MIT license.

Introduction

TextGridShiny allows to read TextGrid files, from the software PRAAT, and to display annotations describing representations of sound recordings. In addition, it is possible to interact with the created visual annotation by adding tiers and labels. Note that this package is in development.

Installation

TextGridShiny is available through both CRAN and GitHub:

To install the stable CRAN version:

install.packages("TextGridShiny")

To install the latest development version from GitHub:

install.packages("devtools")
devtools::install_github("buhem/TextGridShiny")

Usage

Interactivity

This widget allows the user to interact with it. You can easily add tiers or change the items' text. For that, you need to double-click on an item. Then a dialog box opens displaying the choices in question.

Interactivity1

Plus, it lets you remove or add labels which can be positioned on the timeline at the place chosen to annotate your data. The width of the item can be manually adjusted and resized. The removal of a label can be realized by clicking on the cross icon who appears if you select the item. But a label is added by double-clicking in an empty space on the tier.

In Shiny

TextGridShiny offers the possibility of being connected to a Shiny app by adding TextGridShinyOutput() inside the UI function and renderTextGridShiny(TextGridShiny()) inside the server function.

In R Markdown Document

R Markdown can create a HTML document and you can include in it Shiny packages. For invoking them, you need to indicate at the beggining of the document, in the front-matter, the fact that you are going to use Shiny.

---
runtime: shiny
---

Then merely put down in the chunk these lines of code.

```{r, echo=FALSE}
library(TextGridShiny)
renderTextGridShiny(TextGridShiny())
```

Demo

Click here to view a live demo of TextGridShiny.

Limitations

For now, the dialog box doesn't work in some OS' like iOS.

About

Create interactive annotation interface in R and Shiny for speech corpus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published